package manager trouble

Asked by Bram van Leeuwen

bram@bram-1005PE:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for bram:
bram@bram-1005PE:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
bram@bram-1005PE:~$ uname -a
Linux bram-1005PE 3.0.0-19-generic #33-Ubuntu SMP Thu Apr 19 19:05:57 UTC 2012 i686 i686 i386 GNU/Linux
bram@bram-1005PE:~$ sudo rm /var/lib/apt/lists/lock
bram@bram-1005PE:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
bram@bram-1005PE:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
bram@bram-1005PE:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
bram@bram-1005PE:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
bram@bram-1005PE:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
bram@bram-1005PE:~$ sudo rm -rf /var/lib/dpkg/updates/*
bram@bram-1005PE:~$ sudo rm -rf /var/lib/apt/lists
bram@bram-1005PE:~$ sudo rm /var/cache/apt/*.bin
bram@bram-1005PE:~$ sudo mkdir /var/lib/apt/lists
bram@bram-1005PE:~$ sudo mkdir /var/lib/apt/lists/partial
bram@bram-1005PE:~$ LANG=C;sudo apt-get clean
bram@bram-1005PE:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
bram@bram-1005PE:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libgladeui-1-11* linux-headers-3.0.0-12* linux-headers-3.0.0-12-generic*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
56 not fully installed or removed.
After this operation, 101 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 347992 files and directories currently installed.)
Removing libgladeui-1-11 ...
Purging configuration files for libgladeui-1-11 ...
Removing linux-headers-3.0.0-12-generic ...
Removing linux-headers-3.0.0-12 ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Setting up mawk (1.3.3-15ubuntu2.11.10) ...
Setting up libtasn1-3 (2.9-4ubuntu0.1) ...
Setting up linux-image-3.0.0-19-generic (3.0.0-19.33) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-19-generic /boot/vmlinuz-3.0.0-19-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-19-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-19-generic /boot/vmlinuz-3.0.0-19-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-19-generic /boot/vmlinuz-3.0.0-19-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-19-generic /boot/vmlinuz-3.0.0-19-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-19-generic
Found initrd image: /boot/initrd.img-3.0.0-19-generic
Found linux image: /boot/vmlinuz-3.0.0-17-generic
Found initrd image: /boot/initrd.img-3.0.0-17-generic
Found linux image: /boot/vmlinuz-3.0.0-16-generic
Found initrd image: /boot/initrd.img-3.0.0-16-generic
Found linux image: /boot/vmlinuz-3.0.0-15-generic
Found initrd image: /boot/initrd.img-3.0.0-15-generic
Found linux image: /boot/vmlinuz-3.0.0-14-generic
Found initrd image: /boot/initrd.img-3.0.0-14-generic
Found linux image: /boot/vmlinuz-3.0.0-13-generic
Found initrd image: /boot/initrd.img-3.0.0-13-generic
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found linux image: /boot/vmlinuz-2.6.38-11-generic
Found initrd image: /boot/initrd.img-2.6.38-11-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
Setting up ubuntu-sso-client (1.4.1-0ubuntu1) ...
Setting up libapt-inst1.3 (0.8.16~exp5ubuntu13.3) ...
Setting up apt-utils (0.8.16~exp5ubuntu13.3) ...
Setting up libssl0.9.8 (0.9.8o-7ubuntu1.2) ...
Setting up upstart (1.3-0ubuntu12) ...
Setting up apt-transport-https (0.8.16~exp5ubuntu13.3) ...
Setting up libdpkg-perl (1.16.0.3ubuntu5.1) ...
Setting up dpkg-dev (1.16.0.3ubuntu5.1) ...
Setting up firefox (12.0+build1-0ubuntu0.11.10.1) ...
Please restart all running instances of firefox, or you will experience problems.
Setting up firefox-branding (12.0+build1-0ubuntu0.11.10.1) ...
Setting up firefox-globalmenu (12.0+build1-0ubuntu0.11.10.1) ...
Setting up firefox-gnome-support (12.0+build1-0ubuntu0.11.10.1) ...
Setting up firefox-locale-en (12.0+build1-0ubuntu0.11.10.1) ...
Setting up firefox-locale-nl (12.0+build1-0ubuntu0.11.10.1) ...
Setting up gvfs (1.10.0-0ubuntu1.1) ...
Setting up libwbclient0 (2:3.5.11~dfsg-1ubuntu2.3) ...
Setting up libsmbclient (2:3.5.11~dfsg-1ubuntu2.3) ...
Setting up gvfs-backends (1.10.0-0ubuntu1.1) ...
Setting up gvfs-bin (1.10.0-0ubuntu1.1) ...
Setting up gvfs-fuse (1.10.0-0ubuntu1.1) ...
Setting up libmagickcore3 (8:6.6.0.4-3ubuntu1.1) ...
Setting up libmagickwand3 (8:6.6.0.4-3ubuntu1.1) ...
Setting up mysql-common (5.1.62-0ubuntu0.11.10.1) ...
Setting up libmysqlclient16 (5.1.62-0ubuntu0.11.10.1) ...
Setting up python-ubuntuone-storageprotocol (2.0.1-0ubuntu1) ...
Setting up python-ubuntuone-client (2.0.1-0ubuntu1) ...
Setting up ubuntuone-client (2.0.1-0ubuntu1) ...
Setting up libsyncdaemon-1.0-1 (2.0.1-0ubuntu1) ...
Setting up linux-image-generic (3.0.0.19.23) ...
Setting up linux-generic (3.0.0.19.23) ...
Setting up linux-headers-3.0.0-19 (3.0.0-19.33) ...
Setting up linux-headers-3.0.0-19-generic (3.0.0-19.33) ...
Examining /etc/kernel/header_postinst.d.
Setting up linux-headers-generic (3.0.0.19.23) ...
Setting up linux-libc-dev (3.0.0-19.33) ...
Setting up mysql-client-core-5.1 (5.1.62-0ubuntu0.11.10.1) ...
Setting up mysql-server-core-5.1 (5.1.62-0ubuntu0.11.10.1) ...
Setting up openssl (1.0.0e-2ubuntu4.5) ...
Setting up python-software-properties (0.81.13.4) ...
Setting up samba-common (2:3.5.11~dfsg-1ubuntu2.3) ...
Setting up samba-common-bin (2:3.5.11~dfsg-1ubuntu2.3) ...
Setting up samba (2:3.5.11~dfsg-1ubuntu2.3) ...
Setting up smbclient (2:3.5.11~dfsg-1ubuntu2.3) ...
Setting up software-properties-common (0.81.13.4) ...
Setting up software-properties-gtk (0.81.13.4) ...
Setting up thunderbird (12.0.1+build1-0ubuntu0.11.10.1) ...
Setting up thunderbird-globalmenu (12.0.1+build1-0ubuntu0.11.10.1) ...
Setting up thunderbird-gnome-support (12.0.1+build1-0ubuntu0.11.10.1) ...
Setting up xul-ext-ubufox (1.0.4-0ubuntu1) ...
Setting up ubufox (1.0.4-0ubuntu1) ...
Setting up update-manager-core (1:0.152.25.9) ...
Setting up update-manager (1:0.152.25.9) ...
Setting up winbind (2:3.5.11~dfsg-1ubuntu2.3) ...
 * Starting the Winbind daemon winbind [ OK ]
Setting up libpam-smbpass (2:3.5.11~dfsg-1ubuntu2.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
bram@bram-1005PE:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign http://extras.ubuntu.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric-updates InRelease
Ign http://archive.ubuntu.com oneiric-security InRelease
Ign http://archive.canonical.com oneiric InRelease
Get:1 http://extras.ubuntu.com oneiric Release.gpg [72 B]
Get:2 http://archive.canonical.com oneiric Release.gpg [198 B]
Get:3 http://archive.ubuntu.com oneiric Release.gpg [198 B]
Get:4 http://archive.ubuntu.com oneiric-updates Release.gpg [198 B]
Get:5 http://extras.ubuntu.com oneiric Release [9759 B]
Get:6 http://archive.canonical.com oneiric Release [5922 B]
Get:7 http://archive.ubuntu.com oneiric-security Release.gpg [198 B]
Get:8 http://archive.ubuntu.com oneiric Release [40.8 kB]
Get:9 http://archive.ubuntu.com oneiric-updates Release [40.8 kB]
Get:10 http://archive.ubuntu.com oneiric-security Release [40.8 kB]
Get:11 http://archive.canonical.com oneiric/partner i386 Packages [4333 B]
Get:12 http://extras.ubuntu.com oneiric/main Sources [2472 B]
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Get:13 http://archive.ubuntu.com oneiric/main Sources [877 kB]
Get:14 http://extras.ubuntu.com oneiric/main i386 Packages [4266 B]
Ign http://extras.ubuntu.com oneiric/main TranslationIndex
Ign http://archive.canonical.com oneiric/partner Translation-en
Ign http://extras.ubuntu.com oneiric/main Translation-en
Get:15 http://archive.ubuntu.com oneiric/restricted Sources [5351 B]
Get:16 http://archive.ubuntu.com oneiric/universe Sources [4677 kB]
Get:17 http://archive.ubuntu.com oneiric/multiverse Sources [149 kB]
Get:18 http://archive.ubuntu.com oneiric/main i386 Packages [1226 kB]
Get:19 http://archive.ubuntu.com oneiric/restricted i386 Packages [8216 B]
Get:20 http://archive.ubuntu.com oneiric/universe i386 Packages [4468 kB]
Get:21 http://archive.ubuntu.com oneiric/multiverse i386 Packages [119 kB]
Get:22 http://archive.ubuntu.com oneiric/main TranslationIndex [3289 B]
Get:23 http://archive.ubuntu.com oneiric/multiverse TranslationIndex [2265 B]
Get:24 http://archive.ubuntu.com oneiric/restricted TranslationIndex [2263 B]
Get:25 http://archive.ubuntu.com oneiric/universe TranslationIndex [2640 B]
Get:26 http://archive.ubuntu.com oneiric-updates/main Sources [139 kB]
Get:27 http://archive.ubuntu.com oneiric-updates/restricted Sources [3347 B]
Get:28 http://archive.ubuntu.com oneiric-updates/universe Sources [52.3 kB]
Get:29 http://archive.ubuntu.com oneiric-updates/multiverse Sources [3660 B]
Get:30 http://archive.ubuntu.com oneiric-updates/main i386 Packages [344 kB]
Get:31 http://archive.ubuntu.com oneiric-updates/restricted i386 Packages [6631 B]
Get:32 http://archive.ubuntu.com oneiric-updates/universe i386 Packages [113 kB]
Get:33 http://archive.ubuntu.com oneiric-updates/multiverse i386 Packages [6363 B]
Get:34 http://archive.ubuntu.com oneiric-updates/main TranslationIndex [74 B]
Get:35 http://archive.ubuntu.com oneiric-updates/multiverse TranslationIndex [72 B]
Get:36 http://archive.ubuntu.com oneiric-updates/restricted TranslationIndex [72 B]
Get:37 http://archive.ubuntu.com oneiric-updates/universe TranslationIndex [73 B]
Get:38 http://archive.ubuntu.com oneiric-security/main Sources [37.5 kB]
Get:39 http://archive.ubuntu.com oneiric-security/restricted Sources [1959 B]
Get:40 http://archive.ubuntu.com oneiric-security/universe Sources [16.1 kB]
Get:41 http://archive.ubuntu.com oneiric-security/multiverse Sources [1644 B]
Get:42 http://archive.ubuntu.com oneiric-security/main i386 Packages [118 kB]
Get:43 http://archive.ubuntu.com oneiric-security/restricted i386 Packages [3939 B]
Get:44 http://archive.ubuntu.com oneiric-security/universe i386 Packages [36.0 kB]
Get:45 http://archive.ubuntu.com oneiric-security/multiverse i386 Packages [3371 B]
Get:46 http://archive.ubuntu.com oneiric-security/main TranslationIndex [73 B]
Get:47 http://archive.ubuntu.com oneiric-security/multiverse TranslationIndex [72 B]
Get:48 http://archive.ubuntu.com oneiric-security/restricted TranslationIndex [71 B]
Get:49 http://archive.ubuntu.com oneiric-security/universe TranslationIndex [73 B]
Get:50 http://archive.ubuntu.com oneiric/main Translation-en [701 kB]
Get:51 http://archive.ubuntu.com oneiric/multiverse Translation-en [92.6 kB]
Get:52 http://archive.ubuntu.com oneiric/restricted Translation-en [2229 B]
Get:53 http://archive.ubuntu.com oneiric/universe Translation-en [3165 kB]
Get:54 http://archive.ubuntu.com oneiric-updates/main Translation-en [155 kB]
Get:55 http://archive.ubuntu.com oneiric-updates/multiverse Translation-en [3524 B]
Get:56 http://archive.ubuntu.com oneiric-updates/restricted Translation-en [1547 B]
Get:57 http://archive.ubuntu.com oneiric-updates/universe Translation-en [67.6 kB]
Get:58 http://archive.ubuntu.com oneiric-security/main Translation-en [56.2 kB]
Get:59 http://archive.ubuntu.com oneiric-security/multiverse Translation-en [1494 B]
Get:60 http://archive.ubuntu.com oneiric-security/restricted Translation-en [978 B]
Get:61 http://archive.ubuntu.com oneiric-security/universe Translation-en [24.9 kB]
Fetched 16.8 MB in 25s (660 kB/s)
Reading package lists... Done
bram@bram-1005PE:~$ sudo dpkg --configure -a
bram@bram-1005PE:~$ sudo dpkg --clear-avail
bram@bram-1005PE:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bram@bram-1005PE:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bram@bram-1005PE:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign http://archive.canonical.com oneiric InRelease
Ign http://extras.ubuntu.com oneiric InRelease
Hit http://archive.canonical.com oneiric Release.gpg
Ign http://archive.ubuntu.com oneiric InRelease
Hit http://extras.ubuntu.com oneiric Release.gpg
Ign http://archive.ubuntu.com oneiric-updates InRelease
Ign http://archive.ubuntu.com oneiric-security InRelease
Hit http://extras.ubuntu.com oneiric Release
Get:1 http://archive.ubuntu.com oneiric Release.gpg [198 B]
Hit http://archive.canonical.com oneiric Release
Get:2 http://archive.ubuntu.com oneiric-updates Release.gpg [198 B]
Get:3 http://archive.ubuntu.com oneiric-security Release.gpg [198 B]
Get:4 http://archive.ubuntu.com oneiric Release [40.8 kB]
Get:5 http://archive.ubuntu.com oneiric-updates Release [40.8 kB]
Get:6 http://archive.ubuntu.com oneiric-security Release [40.8 kB]
Hit http://extras.ubuntu.com oneiric/main Sources
Hit http://extras.ubuntu.com oneiric/main i386 Packages
Ign http://extras.ubuntu.com oneiric/main TranslationIndex
Hit http://archive.canonical.com oneiric/partner i386 Packages
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Get:7 http://archive.ubuntu.com oneiric/main Sources [877 kB]
Ign http://extras.ubuntu.com oneiric/main Translation-en
Ign http://archive.canonical.com oneiric/partner Translation-en
Get:8 http://archive.ubuntu.com oneiric/restricted Sources [5351 B]
Get:9 http://archive.ubuntu.com oneiric/universe Sources [4677 kB]
Get:10 http://archive.ubuntu.com oneiric/multiverse Sources [149 kB]
Get:11 http://archive.ubuntu.com oneiric/main i386 Packages [1226 kB]
Get:12 http://archive.ubuntu.com oneiric/restricted i386 Packages [8216 B]
Get:13 http://archive.ubuntu.com oneiric/universe i386 Packages [4468 kB]
Get:14 http://archive.ubuntu.com oneiric/multiverse i386 Packages [119 kB]
Hit http://archive.ubuntu.com oneiric/main TranslationIndex
Hit http://archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http://archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http://archive.ubuntu.com oneiric/universe TranslationIndex
Get:15 http://archive.ubuntu.com oneiric-updates/main Sources [139 kB]
Get:16 http://archive.ubuntu.com oneiric-updates/restricted Sources [3347 B]
Get:17 http://archive.ubuntu.com oneiric-updates/universe Sources [52.3 kB]
Get:18 http://archive.ubuntu.com oneiric-updates/multiverse Sources [3660 B]
Get:19 http://archive.ubuntu.com oneiric-updates/main i386 Packages [344 kB]
Get:20 http://archive.ubuntu.com oneiric-updates/restricted i386 Packages [6631 B]
Get:21 http://archive.ubuntu.com oneiric-updates/universe i386 Packages [113 kB]
Get:22 http://archive.ubuntu.com oneiric-updates/multiverse i386 Packages [6363 B]
Hit http://archive.ubuntu.com oneiric-updates/main TranslationIndex
Hit http://archive.ubuntu.com oneiric-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com oneiric-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com oneiric-updates/universe TranslationIndex
Get:23 http://archive.ubuntu.com oneiric-security/main Sources [37.5 kB]
Get:24 http://archive.ubuntu.com oneiric-security/restricted Sources [1959 B]
Get:25 http://archive.ubuntu.com oneiric-security/universe Sources [16.1 kB]
Get:26 http://archive.ubuntu.com oneiric-security/multiverse Sources [1644 B]
Get:27 http://archive.ubuntu.com oneiric-security/main i386 Packages [118 kB]
Get:28 http://archive.ubuntu.com oneiric-security/restricted i386 Packages [3939 B]
Get:29 http://archive.ubuntu.com oneiric-security/universe i386 Packages [36.0 kB]
Get:30 http://archive.ubuntu.com oneiric-security/multiverse i386 Packages [3371 B]
Hit http://archive.ubuntu.com oneiric-security/main TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/multiverse TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/restricted TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/universe TranslationIndex
Hit http://archive.ubuntu.com oneiric/main Translation-en
Hit http://archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://archive.ubuntu.com oneiric/restricted Translation-en
Hit http://archive.ubuntu.com oneiric/universe Translation-en
Hit http://archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://archive.ubuntu.com oneiric-updates/universe Translation-en
Hit http://archive.ubuntu.com oneiric-security/main Translation-en
Hit http://archive.ubuntu.com oneiric-security/multiverse Translation-en
Hit http://archive.ubuntu.com oneiric-security/restricted Translation-en
Hit http://archive.ubuntu.com oneiric-security/universe Translation-en
Fetched 12.5 MB in 19s (645 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bram@bram-1005PE:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1

Everything fine. What is your problem?

Maybe consider to clean-up kernel packages.
Those seven images and headers can be removed.
Found linux image: /boot/vmlinuz-3.0.0-16-generic
Found linux image: /boot/vmlinuz-3.0.0-15-generic
Found linux image: /boot/vmlinuz-3.0.0-14-generic
Found linux image: /boot/vmlinuz-3.0.0-13-generic
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found linux image: /boot/vmlinuz-2.6.38-11-generic

http://jaypeeonline.net/tips-tricks/howto-remove-old-ubuntu-kernels/
http://chrisjean.com/2009/03/05/cleaning-out-old-linux-kernels-in-ubuntu/

Revision history for this message
Sam_ (and-sam) said :
#2

The seventh image would be 3.0.0-17-generic, but rather keep it in case that -19 fails to boot.

Revision history for this message
Bram van Leeuwen (bramdod) said :
#3

The original problem was that the update function in my netbook with 11.10 did not show updates even after 20 days. Check function did not solve this.
Therefore I found the Package Manager Troubles page giving the 7 steps to solve the problem. I performed the actions in step5 and sent the results to you.
And yes, today (>20 hours later) an additional update was suggested and incorporated. So I think part of my problem was effectively solved.

But still, I expected that the update function would suggest an upgrade to 12.04 but that still does not happen.

Thanks anyway, Bram

Revision history for this message
Best Sam_ (and-sam) said :
#4

Notification of dist-upgrade won't happen before 'point release', which is 12.04.1 in July or rather August.
Notification of regular updates is every 14 days (afaik it was 7 days in Oneiric), for security updates immediately.

https://wiki.ubuntu.com/StableReleaseUpdates

Settings can be adjusted in software-properties, synaptic. Not sure about software-center since I don't use it.

Revision history for this message
Bram van Leeuwen (bramdod) said :
#5

Thanks Sam_, that solved my question.