Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 5698  / 1 Year ago, sat, january 21, 2023, 10:00:42

I've been trying to fix some dependencies to install cinelerra, and stupidly install libvpx1:amd64 for Sid and it casued a broken package. Synaptic could not fix it. I tried apt-get install -f and it gave me the following:



ZHD ~ # apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libvpx1 : Breaks: libvpx1:i386 (!= 1.3.0-2) but 1.2.0-2 is installed
libvpx1:i386 : Breaks: libvpx1 (!= 1.2.0-2) but 1.3.0-2 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies


I've tried removing libvpx1:amd64, and it says it cannot because libvpx1:i386 is a different version. I've tried the other way round by removing libvpx1:i386, and it says it cannot because libvpx1:amd64 is a different version. I cannot downgrade or upgrade either of these packages to try and make them the same version.



If anyone has some suggestions I'd be glad to hear!



Aptitude gives some solutions, but involves uninstalling half of my software....


More From » apt

 Answers
7

I found the answer on this page:



http://www.iasptk.com/ubuntu-fix-broken-package-best-solution



After trying



sudo dpkg --configure -a


and



sudo apt-get install -f


the problem of a broken package still exist the solution is to edit the dpkg status file manually.



sudo nano /var/lib/dpkg/status (you can use vi or gedit instead of nano)



Locate the corrupt package, and remove the whole block of information about it and save the file.



I then ran sudo apt-get update && upgrade



and it asked to install the missing package.
Everything is running good now, and I've learnt not to so boldy install packages from other releases....


[#26553] Monday, January 23, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arkcker

Total Points: 296
Total Questions: 111
Total Answers: 104

Location: Nepal
Member since Tue, Sep 8, 2020
4 Years ago
arkcker questions
Tue, Aug 17, 21, 00:08, 3 Years ago
Sun, May 14, 23, 01:04, 1 Year ago
Wed, Nov 16, 22, 03:12, 1 Year ago
Tue, Jun 1, 21, 01:29, 3 Years ago
;