Getting errors updating packages

Asked by Stephanie L Poisson

slpoisson@slpoisson-desktop:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for slpoisson:
slpoisson@slpoisson-desktop:~$ sudo fuser -vvv /var/lib/dpkg/lock
slpoisson@slpoisson-desktop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
slpoisson@slpoisson-desktop:~$ uname -a
Linux slpoisson-desktop 3.0.0-20-generic #34-Ubuntu SMP Tue May 1 17:28:21 UTC 2012 i686 i686 i386 GNU/Linux
slpoisson@slpoisson-desktop:~$ sudo rm /var/lib/apt/lists/lock
slpoisson@slpoisson-desktop:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
slpoisson@slpoisson-desktop:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
slpoisson@slpoisson-desktop:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
slpoisson@slpoisson-desktop:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
slpoisson@slpoisson-desktop:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
slpoisson@slpoisson-desktop:~$ sudo rm -rf /var/lib/dpkg/updates/*
slpoisson@slpoisson-desktop:~$ sudo rm -rf /var/lib/apt/lists
slpoisson@slpoisson-desktop:~$ sudo rm /var/cache/apt/*.bin
slpoisson@slpoisson-desktop:~$ sudo mkdir /var/lib/apt/lists
slpoisson@slpoisson-desktop:~$ sudo mkdir /var/lib/apt/lists/partial
slpoisson@slpoisson-desktop:~$ LANG=C;sudo apt-get clean
slpoisson@slpoisson-desktop:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
slpoisson@slpoisson-desktop:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
slpoisson@slpoisson-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Get:1 http://archive.ubuntu.com precise Release.gpg [198 B]
Get:2 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:3 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Get:4 http://archive.ubuntu.com precise Release [49.6 kB]
Get:5 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Get:6 http://archive.ubuntu.com precise-security Release [49.6 kB]
Get:7 http://archive.ubuntu.com precise/main i386 Packages [1274 kB]
Get:8 http://archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:9 http://archive.ubuntu.com precise-updates/main i386 Packages [371 kB]
Get:10 http://archive.ubuntu.com precise-updates/main TranslationIndex [3564 B]
Get:11 http://archive.ubuntu.com precise-security/main i386 Packages [160 kB]
Get:12 http://archive.ubuntu.com precise-security/main TranslationIndex [73 B]
Get:13 http://archive.ubuntu.com precise/main Translation-en [726 kB]
Get:14 http://archive.ubuntu.com precise-updates/main Translation-en [177 kB]
Get:15 http://archive.ubuntu.com precise-security/main Translation-en [73.6 kB]
Fetched 2937 kB in 5min 39s (8662 B/s)
Reading package lists... Done
slpoisson@slpoisson-desktop:~$ sudo dpkg --configure -a
slpoisson@slpoisson-desktop:~$ sudo dpkg --clear-avail
slpoisson@slpoisson-desktop:~$ 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 62 not upgraded.
slpoisson@slpoisson-desktop:~$ 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 62 not upgraded.
slpoisson@slpoisson-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise-updates Release.gpg
Hit http://archive.ubuntu.com precise-security Release.gpg
Hit http://archive.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise-updates Release
Hit http://archive.ubuntu.com precise-security Release
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/main i386 Packages
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-security/main i386 Packages
Hit http://archive.ubuntu.com precise-security/main TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-security/main Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Failed
The following packages have unmet dependencies:
 libnspr4 : Breaks: evolution-plugins (< 3.2.0-0ubuntu2) but 2.32.2-0ubuntu7 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Question information

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You may want to run:

sudo apt-get --reinstall install linux-image-generic

You are not on the Precise kernel. You should reboot after running the command too.

Revision history for this message
Stephanie L Poisson (bdearest) said :
#2

After attempting the reinstall above, the problem still exists.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you reboot, do you boot to the Precise kernel? It is 3.2.0.29

Can you also give the output of:

apt-cache policy libnspr4 evolution-plugins

Thanks

Revision history for this message
Stephanie L Poisson (bdearest) said :
#4

Hi,

Thanks for all your help.

No, it doesn't boot into the Precise kernel, since the Precise kernel is not there--3.0.0-20 is the first one with a previous one after that.

Output of command pasted below:

slpoisson@slpoisson-desktop:~$ apt-cache policy libnspr4 evolution-plugins
libnspr4:
  Installed: 4.8.9-1ubuntu2
  Candidate: 4.8.9-1ubuntu2.1
  Version table:
     4.8.9-1ubuntu2.1 0
        500 http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
 *** 4.8.9-1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status
evolution-plugins:
  Installed: 2.32.2-0ubuntu7
  Candidate: 3.2.3-0ubuntu6
  Version table:
     3.2.3-0ubuntu6 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main i386 Packages
 *** 2.32.2-0ubuntu7 0
        100 /var/lib/dpkg/status

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

I suggest you run:

ubuntu-bug libnspr4

And report the bug

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#6
Revision history for this message
Stephanie L Poisson (bdearest) said :
#7

Tried workaround solution. I was able to get update to run, but upon restart, it still has the earlier kernel instead of the 3.2.0.29 kernel, though Synaptic Package Manager GUI indicates that the 3.2.0.29 kernel is installed.

uname -a reports the following: Linux slpoisson-desktop 3.0.0-20-generic #34-Ubuntu SMP Tue May 1 17:28:21 UTC 2012 i686 i686 i386 GNU/Linux

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#8

What is the output of this command?

ls -lia /boot

Revision history for this message
Stephanie L Poisson (bdearest) said :
#9

Output below. Precise kernel is on the list.

3383297 drwxr-xr-x 3 root root 4096 Aug 15 17:13 .
      2 drwxr-xr-x 27 root root 4096 Aug 10 12:01 ..
3383376 -rw-r--r-- 1 root root 736214 May 22 08:34 abi-2.6.38-15-generic
3383301 -rw-r--r-- 1 root root 769491 May 1 17:09 abi-3.0.0-20-generic
3383326 -rw-r--r-- 1 root root 795624 May 21 19:22 abi-3.2.0-24-generic
3383321 -rw-r--r-- 1 root root 795681 May 23 21:46 abi-3.2.0-25-generic
3383332 -rw-r--r-- 1 root root 795821 Jun 14 13:32 abi-3.2.0-26-generic
3383337 -rw-r--r-- 1 root root 795776 Jul 6 11:53 abi-3.2.0-27-generic
3383343 -rw-r--r-- 1 root root 795776 Jul 27 14:18 abi-3.2.0-29-generic
3383371 -rw-r--r-- 1 root root 137332 May 22 08:34 config-2.6.38-15-generic
3383300 -rw-r--r-- 1 root root 141994 May 1 17:09 config-3.0.0-20-generic
3383325 -rw-r--r-- 1 root root 147378 May 21 19:22 config-3.2.0-24-generic
3383318 -rw-r--r-- 1 root root 147416 May 23 21:46 config-3.2.0-25-generic
3383333 -rw-r--r-- 1 root root 147463 Jun 14 13:32 config-3.2.0-26-generic
3383336 -rw-r--r-- 1 root root 147463 Jul 6 11:53 config-3.2.0-27-generic
3383340 -rw-r--r-- 1 root root 147441 Jul 27 14:18 config-3.2.0-29-generic
3383305 drwxr-xr-x 2 root root 4096 Aug 10 12:02 grub
3383346 -rw-r--r-- 1 root root 19081846 Aug 13 20:08 initrd.img-2.6.38-15-generic
3383345 -rw-r--r-- 1 root root 19497647 Aug 15 17:13 initrd.img-3.0.0-20-generic
3383328 -rw-r--r-- 1 root root 19737150 Jun 1 20:52 initrd.img-3.2.0-24-generic
3383330 -rw-r--r-- 1 root root 19736220 Jun 22 12:22 initrd.img-3.2.0-25-generic
3383335 -rw-r--r-- 1 root root 19753859 Jun 28 18:16 initrd.img-3.2.0-26-generic
3383320 -rw-r--r-- 1 root root 19767976 Aug 10 11:41 initrd.img-3.2.0-27-generic
3383322 -rw-r--r-- 1 root root 19768720 Aug 15 17:13 initrd.img-3.2.0-29-generic
3383329 -rw-r--r-- 1 root root 176764 Nov 27 2011 memtest86+.bin
3383302 -rw-r--r-- 1 root root 178944 Nov 27 2011 memtest86+_multiboot.bin
3383369 -rw------- 1 root root 2109802 May 22 08:34 System.map-2.6.38-15-generic
3383303 -rw------- 1 root root 2134552 May 1 17:09 System.map-3.0.0-20-generic
3383327 -rw------- 1 root root 2252950 May 21 19:22 System.map-3.2.0-24-generic
3383324 -rw------- 1 root root 2253711 May 23 21:46 System.map-3.2.0-25-generic
3383331 -rw------- 1 root root 2249713 Jun 14 13:32 System.map-3.2.0-26-generic
3383338 -rw------- 1 root root 2249889 Jul 6 11:53 System.map-3.2.0-27-generic
3383344 -rw------- 1 root root 2249937 Jul 27 14:18 System.map-3.2.0-29-generic
3383370 -rw------- 1 root root 1217 May 22 08:35 vmcoreinfo-2.6.38-15-generic
3383319 -rw------- 1 root root 1215 May 1 17:11 vmcoreinfo-3.0.0-20-generic
3383377 -rw------- 1 root root 4523408 May 22 08:34 vmlinuz-2.6.38-15-generic
3383299 -rw------- 1 root root 4644352 May 1 17:09 vmlinuz-3.0.0-20-generic
3383298 -rw------- 1 root root 4864224 May 21 19:22 vmlinuz-3.2.0-24-generic
3383304 -rw------- 1 root root 4865120 May 23 21:46 vmlinuz-3.2.0-25-generic
3383334 -rw------- 1 root root 4855392 Jun 14 13:32 vmlinuz-3.2.0-26-generic
3383339 -rw------- 1 root root 4855808 Jul 6 11:53 vmlinuz-3.2.0-27-generic
3383342 -rw------- 1 root root 4855200 Jul 27 14:18 vmlinuz-3.2.0-29-generic

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#10

Please run these commands in a Terminal:

sudo apt-get remove linux-headers-2.6.38-15-generic linux-image-2.6.38-15-generic
sudo apt-get remove linux-headers-3.0.0-20-generic linux-image-3.0.0-20-generic

Then reboot your PC and select the 3.2.0-29-generic kernel during boot.

Revision history for this message
Stephanie L Poisson (bdearest) said :
#11

Tried that. Haven't rebooted since it can't find the kernels when I try to remove them.

slpoisson@slpoisson-desktop:~/Drivers$ sudo apt-get remove linux-headers-2.6.38-15-generic linux-image-2.6.38-15-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-2.6.38-15-generic
E: Couldn't find any package by regex 'linux-headers-2.6.38-15-generic'
slpoisson@slpoisson-desktop:~/Drivers$ sudo apt-get remove linux-headers-3.0.0-20-generic linux-image-3.0.0.20-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-3.0.0-20-generic' for regex 'linux-image-3.0.0.20-generic'
E: Unable to locate package linux-headers-3.0.0-20-generic
E: Couldn't find any package by regex 'linux-headers-3.0.0-20-generic'

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#12

Looks like a failed upgrade to Ubuntu 12.04. If I were you, I would back up my personal data to external storage and then perform a clean install (from scratch) of Ubuntu 12.04, while overwriting the original root partition.

Can you help with this problem?

Provide an answer of your own, or ask Stephanie L Poisson for more information if necessary.

To post a message you must log in.