opps i noticed a mistake in the code so i ran it again with the fix in it and gotCode:lubuntu@lubuntu:~$ sudo dpkg --purge --pending dpkg: error: dpkg status database is locked by another process lubuntu@lubuntu:~$
opps i noticed a mistake in the code so i ran it again with the fix in it and gotCode:lubuntu@lubuntu:~$ sudo dpkg --purge --pending dpkg: error: dpkg status database is locked by another process lubuntu@lubuntu:~$
Last edited by matt_symes; April 5th, 2013 at 11:29 PM.
Hi
Do you have update manager or software center open.
If you do then close them and re-run the commands in my last post.
If they are not open then please post the output of
andCode:ps aux | egrep "dpkg|apt|cent|manager"
Something has a lock on your dpkg status databaseCode:sudo lsof /var/lib/dpkg/status
Kind regards
Last edited by matt_symes; April 5th, 2013 at 11:28 PM.
If you believe everything you read, you better not read. ~ Japanese Proverb
If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain
Thinking about becoming an Ubuntu Member?
Code:lubuntu@lubuntu:~$ ps aux | egrep "dpkg|apt|cent|manager"root 66 0.0 0.0 0 0 ? S< 13:44 0:00 [charger_manager] root 2600 0.0 0.3 7428 1600 ? Ss 13:45 0:00 /usr/sbin/modem-manager lubuntu 4062 0.0 0.3 29656 1852 ? Ssl 13:45 0:00 xfce4-power-manager root 4308 0.0 0.1 5492 616 ? S 13:45 0:00 /sbin/dhclient -d -4 -sf /usr/lib/NetworkManager/nm-dhcp-client.action -pf /var/run/sendsigs.omit.d/network-manager.dhclient-usb0.pid -lf /var/lib/dhcp/dhclient-6ba03832-bafc-4a44-99ea-69e17e8836e0-usb0.lease -cf /var/run/nm-dhclient-usb0.conf usb0 nobody 4313 0.0 0.1 5720 972 ? S 13:45 0:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid --listen-address=127.0.1.1 --conf-file=/var/run/nm-dns-dnsmasq.conf --cache-size=0 --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d root 7786 0.0 0.1 7852 900 ? S 14:27 0:00 sudo apt-get upgrade root 7787 0.0 0.1 34680 908 ? S 14:27 0:05 apt-get upgrade root 8619 0.0 0.1 7708 624 pts/0 Ss+ 14:35 0:00 /usr/bin/dpkg --status-fd 39 --configure linux-image-3.5.0-26-generic:i386 linux-image-extra-3.5.0-26-generic:i386 linux-image-generic:i386 linux-generic:i386 libavutil51:i386 libavcodec53:i386 libavformat53:i386 libpoppler28:i386 libpoppler-glib8:i386 libpostproc52:i386 libswscale2:i386 libxslt1.1:i386 wine1.5:i386 wine1.5-i386:i386 firefox-locale-ar:i386 firefox-locale-bn:i386 firefox-locale-ca:i386 firefox-locale-cs:i386 firefox-locale-de:i386 firefox-locale-el:i386 firefox-locale-en:i386 firefox-locale-es:i386 firefox-locale-fi:i386 firefox-locale-fr:i386 firefox-locale-hi:i386 firefox-locale-hu:i386 firefox-locale-it:i386 firefox-locale-ja:i386 firefox-locale-nl:i386 firefox-locale-pl:i386 firefox-locale-pt:i386 firefox-locale-ru:i386 firefox-locale-sv:i386 firefox-locale-zh-hans:i386 poppler-utils:i386 runescape:all root 8620 0.0 0.1 7184 540 pts/0 S+ 14:35 0:00 /usr/bin/perl /var/lib/dpkg/info/linux-image-3.5.0-26-generic.postinst configure lubuntu 9884 0.0 0.1 4644 800 pts/3 S+ 16:33 0:00 egrep --color=auto dpkg|apt|cent|manager lubuntu@lubuntu:~$
Code:lubuntu@lubuntu:~$ sudo lsof /var/lib/dpkg/statuslsof: WARNING: can't stat() ext2 file system /cow Output information may be incomplete. lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/lubuntu/gvfs Output information may be incomplete. lubuntu@lubuntu:~$
when i installed Lubuntu i had issues with mounting my harddrive and had to input a code to create the folder for it to beable to mount idk if their is any other folders i might happen to be missing wich might be the cause of all my woes
Hi
You have number of apt and dpkg instances running.
From the terminal
Code:sudo kill 34680 7852 7708 7184Code:sudo dpkg --purge --pendingCode:sudo apt-get updatePost back errors and results.Code:sudo apt-get upgrade
Kind regards
If you believe everything you read, you better not read. ~ Japanese Proverb
If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain
Thinking about becoming an Ubuntu Member?
k did what u said and i got this far before another errorCode:lubuntu@lubuntu:~$ sudo kill 34680 7852 7708 7184 lubuntu@lubuntu:~$ sudo dpkg --purge --pending dpkg: error: dpkg status database is locked by another process lubuntu@lubuntu:~$
tried it as separate codes and still gotCode:lubuntu@lubuntu:~$ sudo kill 34680 lubuntu@lubuntu:~$ sudo kill 7852 lubuntu@lubuntu:~$ sudo kill 7708 lubuntu@lubuntu:~$ sudo kill 7184 lubuntu@lubuntu:~$ sudo dpkg --purge --pending dpkg: error: dpkg status database is locked by another process lubuntu@lubuntu:~$
Hi
Sorry i was looking at the wrong column. Been a long day here.
Try this
Then run those other command again.Code:sudo kill 7786 7787 8619 8620
Kind regards
If you believe everything you read, you better not read. ~ Japanese Proverb
If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain
Thinking about becoming an Ubuntu Member?
k it came up clean this timeCode:lubuntu@lubuntu:~$ sudo kill 7786 7787 8619 8620 lubuntu@lubuntu:~$ sudo dpkg --purge --pending lubuntu@lubuntu:~$
Last edited by Darkishjace; April 6th, 2013 at 12:16 AM.
Bookmarks