dpkg lock when calling on apt-get
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debconf (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
when attempting to install wine1.5 on lubuntu my system froze on the EULA agreement and I exited the terminal. Upon running apt-get autoremove to attempt a reinstall I ran into the error:
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?
I first attempted to kill the apt-get process but permission was denied, so I tried sudo killall apt-get but ran into the same problem. So I ran
rm /var/lib/dpkg/lock
follwed by
sudo dpkg --configure -a
which returned:
Processing triggers for man-db ...
debconf: DbDriver "config": /var/cache/
dpkg: error processing man-db (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libunistring0 (0.9.3-5) ...
Setting up libgettextpo0 (0.18.1.1-5ubuntu3) ...
Setting up libodbc1 (2.2.14p2-5ubuntu3) ...
Setting up cabextract (1.4-1) ...
Setting up odbcinst (2.2.14p2-5ubuntu3) ...
Setting up odbcinst1debian2 (2.2.14p2-5ubuntu3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
man-db
harry@bmo2:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
ttf-mscorefon
The following packages will be upgraded:
ttf-mscorefon
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
E: Could not get lock /var/cache/
E: Unable to lock directory /var/cache/
Thinking this error was the same as before I ran killall apt-get once again, which had returned no response, so I entered sudo apt-get autoremove to test for conflicting packages and returned:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
ttf-mscorefon
The following packages will be upgraded:
ttf-mscorefon
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/27.4 kB of archives.
After this operation, 133 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
debconf: DbDriver "config": /var/cache/
(Reading database ...
dpkg: warning: files list file for package `ttf-mscorefont
(Reading database ... 136547 files and directories currently installed.)
Preparing to replace ttf-mscorefonts
debconf: DbDriver "config": /var/cache/
dpkg: error processing /var/cache/
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
I was then notified that there was a system problem and filed a bug report, which took me to a report telling me to run
sudo fuser /var/cache/
/var/cache/
which returned nothing
followed by:
pstree -s $pid
and to then report the result.
like so:
init─┬─
│ ├─dnsmasq
│ └─2*[{NetworkMa
├─
├─atd
├─bluetoothd
├─
│ ├─chromium-
│ └─27*[{
├─
│ └─chromium-
│ └─chromium-
│ └─{chromium-
├─
│ └─{console-
├─cron
├─cupsd
├─
├─dbus-launch
├─
├─
│ └─whiptail
├─gconfd-2
├─6*[getty]
├─
├─
├─
├─
│ └─{gvfs-
├─
├─
├─gvfsd
├─gvfsd-cdda
├─
├─
├─gvfsd-trash
├─irqbalance
├─
│ ├─lightdm─
│ │ │ ├─openbox
│ │ │ ├─polkit-
│ │ │ ├─ssh-agent
│ │ │ ├─xscreensaver
│ │ │ └─{lxsession}
│ │ └─{lightdm}
│ └─2*[{lightdm}]
├─lxtask
├─
│ ├─lxterminal
│ └─{lxterminal}
├─menu-cached
├─
├─
├─
├─ntpd
├─
├─
├─python
├─
├─
├─
├─
│ └─2*[{udisks-
├─
│ └─{update-
├─
├─
├─
├─
├─
└─xfconfd
Any help you can provide would be greatly appreciated.
Please and thank you,
MY BRAIN IS ON FIRE