Earlier, I had a problem with a package, and I (wrongly) ran this:
rm -r /var/lib/dpkg/*
See also my other question.
Now when I try to upgrade, I get this:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
masoud@masoud-PC:~$ sudo apt-get upgrade
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
and when I use: sudo dpkg --configure -a
I get this:
dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory
and for sudo apt-get upgrade -f get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
ia32-libs : Depends: ia32-libs-multiarch but it is not installable
wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu5) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
dpkg
then try to install it ;) Who knows, it would work for you..sudo apt-get -f install dpkg
– Saurav Kumar Sep 11 '13 at 17:26deboostrap
in a terminal) I can think and write an answer. – Andrea Corbellini Sep 11 '13 at 18:06/var/lib/dpkg/
are generated. None of them are in the dpkg package. – Braiam Sep 11 '13 at 23:20/var/backups
to restore most of his system files. For the post/pre inst/rm scripts he could use--unpack
for the control files, only leaving thealternatives
symlinks unreparied. – Braiam Sep 11 '13 at 23:51