[Bug 1011747] [NEW] dpkg lock when calling on apt-get
Harrison Steven Sherman
harrysherman.blah at gmail.com
Mon Jun 11 17:56:46 UTC 2012
Public bug reported:
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/debconf/config.dat is locked by another process: Resource temporarily unavailable
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 at bmo2:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
ttf-mscorefonts-installer
The following packages will be upgraded:
ttf-mscorefonts-installer
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/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
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-mscorefonts-installer
The following packages will be upgraded:
ttf-mscorefonts-installer
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/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ...
dpkg: warning: files list file for package `ttf-mscorefonts-installer' missing, assuming package has no files currently installed.
(Reading database ... 136547 files and directories currently installed.)
Preparing to replace ttf-mscorefonts-installer 3.4ubuntu3 (using .../ttf-mscorefonts-installer_3.4ubuntu3_all.deb) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing /var/cache/apt/archives/ttf-mscorefonts-installer_3.4ubuntu3_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/ttf-mscorefonts-installer_3.4ubuntu3_all.deb
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/debconf/config.dat
/var/cache/debconf/config.dat: 22897
which returned nothing
followed by:
pstree -s $pid
and to then report the result.
like so:
init─┬─NetworkManager─┬─dhclient
│ ├─dnsmasq
│ └─2*[{NetworkManager}]
├─accounts-daemon───{accounts-daemon}
├─atd
├─bluetoothd
├─chromium-browse─┬─chromium-browse
│ ├─chromium-browse───6*[{chromium-browse}]
│ └─27*[{chromium-browse}]
├─chromium-browse─┬─chromium-browse
│ └─chromium-browse─┬─2*[chromium-browse───3*[{chromium-br+
│ └─chromium-browse─┬─2*[{chromium-brows+
│ └─{chromium-browse}\+
├─console-kit-dae─┬─63*[{console-kit-dae}]
│ └─{console-kit-dae}\224\227
├─cron
├─cupsd
├─2*[dbus-daemon]
├─dbus-launch
├─dconf-service───2*[{dconf-service}]
├─dpkg───frontend─┬─preinst
│ └─whiptail
├─gconfd-2
├─6*[getty]
├─gnome-keyring-d───4*[{gnome-keyring-d}]
├─gnome-keyring-d
├─gvfs-afc-volume───{gvfs-afc-volume}
├─gvfs-fuse-daemo─┬─2*[{gvfs-fuse-daemo}]
│ └─{gvfs-fuse-daemo}\224\227
├─gvfs-gdu-volume
├─gvfs-gphoto2-vo
├─gvfsd
├─gvfsd-cdda
├─gvfsd-http───2*[{gvfsd-http}]
├─gvfsd-metadata
├─gvfsd-trash
├─irqbalance
├─lightdm─┬─Xorg
│ ├─lightdm─┬─lxsession─┬─lxpanel
│ │ │ ├─openbox
│ │ │ ├─polkit-gnome-au───2*[{polkit-gnome-au}]
│ │ │ ├─ssh-agent
│ │ │ ├─xscreensaver
│ │ │ └─{lxsession}
│ │ └─{lightdm}
│ └─2*[{lightdm}]
├─lxtask
├─lxterminal─┬─bash───pstree
│ ├─lxterminal
│ └─{lxterminal}
├─menu-cached
├─modem-manager
├─nm-applet───{nm-applet}
├─notification-da───{notification-da}\224\227
├─ntpd
├─oneconf-service───2*[{oneconf-service}]
├─polkitd───{polkitd}
├─python
├─rsyslogd───3*[{rsyslogd}]
├─transmission-gt───4*[{transmission-gt}]
├─udevd───2*[udevd]
├─udisks-daemon─┬─udisks-daemon
│ └─2*[{udisks-daemon}]
├─update-notifier─┬─2*[{update-notifier}]
│ └─{update-notifier}\224\227
├─upowerd───2*[{upowerd}]
├─upstart-socket-
├─upstart-udev-br
├─wpa_supplicant
├─xfce4-power-man───{xfce4-power-man}
└─xfconfd
Any help you can provide would be greatly appreciated.
Please and thank you,
MY BRAIN IS ON FIRE
** Affects: debconf (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debconf in Ubuntu.
https://bugs.launchpad.net/bugs/1011747
Title:
dpkg lock when calling on apt-get
Status in “debconf” package in Ubuntu:
New
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/debconf/config.dat is locked by another process: Resource temporarily unavailable
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 at bmo2:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
ttf-mscorefonts-installer
The following packages will be upgraded:
ttf-mscorefonts-installer
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/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
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-mscorefonts-installer
The following packages will be upgraded:
ttf-mscorefonts-installer
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/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ...
dpkg: warning: files list file for package `ttf-mscorefonts-installer' missing, assuming package has no files currently installed.
(Reading database ... 136547 files and directories currently installed.)
Preparing to replace ttf-mscorefonts-installer 3.4ubuntu3 (using .../ttf-mscorefonts-installer_3.4ubuntu3_all.deb) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing /var/cache/apt/archives/ttf-mscorefonts-installer_3.4ubuntu3_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/ttf-mscorefonts-installer_3.4ubuntu3_all.deb
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/debconf/config.dat
/var/cache/debconf/config.dat: 22897
which returned nothing
followed by:
pstree -s $pid
and to then report the result.
like so:
init─┬─NetworkManager─┬─dhclient
│ ├─dnsmasq
│ └─2*[{NetworkManager}]
├─accounts-daemon───{accounts-daemon}
├─atd
├─bluetoothd
├─chromium-browse─┬─chromium-browse
│ ├─chromium-browse───6*[{chromium-browse}]
│ └─27*[{chromium-browse}]
├─chromium-browse─┬─chromium-browse
│ └─chromium-browse─┬─2*[chromium-browse───3*[{chromium-br+
│ └─chromium-browse─┬─2*[{chromium-brows+
│ └─{chromium-browse}\+
├─console-kit-dae─┬─63*[{console-kit-dae}]
│ └─{console-kit-dae}\224\227
├─cron
├─cupsd
├─2*[dbus-daemon]
├─dbus-launch
├─dconf-service───2*[{dconf-service}]
├─dpkg───frontend─┬─preinst
│ └─whiptail
├─gconfd-2
├─6*[getty]
├─gnome-keyring-d───4*[{gnome-keyring-d}]
├─gnome-keyring-d
├─gvfs-afc-volume───{gvfs-afc-volume}
├─gvfs-fuse-daemo─┬─2*[{gvfs-fuse-daemo}]
│ └─{gvfs-fuse-daemo}\224\227
├─gvfs-gdu-volume
├─gvfs-gphoto2-vo
├─gvfsd
├─gvfsd-cdda
├─gvfsd-http───2*[{gvfsd-http}]
├─gvfsd-metadata
├─gvfsd-trash
├─irqbalance
├─lightdm─┬─Xorg
│ ├─lightdm─┬─lxsession─┬─lxpanel
│ │ │ ├─openbox
│ │ │ ├─polkit-gnome-au───2*[{polkit-gnome-au}]
│ │ │ ├─ssh-agent
│ │ │ ├─xscreensaver
│ │ │ └─{lxsession}
│ │ └─{lightdm}
│ └─2*[{lightdm}]
├─lxtask
├─lxterminal─┬─bash───pstree
│ ├─lxterminal
│ └─{lxterminal}
├─menu-cached
├─modem-manager
├─nm-applet───{nm-applet}
├─notification-da───{notification-da}\224\227
├─ntpd
├─oneconf-service───2*[{oneconf-service}]
├─polkitd───{polkitd}
├─python
├─rsyslogd───3*[{rsyslogd}]
├─transmission-gt───4*[{transmission-gt}]
├─udevd───2*[udevd]
├─udisks-daemon─┬─udisks-daemon
│ └─2*[{udisks-daemon}]
├─update-notifier─┬─2*[{update-notifier}]
│ └─{update-notifier}\224\227
├─upowerd───2*[{upowerd}]
├─upstart-socket-
├─upstart-udev-br
├─wpa_supplicant
├─xfce4-power-man───{xfce4-power-man}
└─xfconfd
Any help you can provide would be greatly appreciated.
Please and thank you,
MY BRAIN IS ON FIRE
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debconf/+bug/1011747/+subscriptions
More information about the foundations-bugs
mailing list