Problem with updating 11.10

Asked by Christopher Serella

following the instructions here:

My initial problem was two unmet dependences for firefox menu bar and thunderbird, these i believe will resolve when i am able to update to the latest firefox package.

I keep running into the same problem when depmod attempts to run. There were errors at each run of depmod as you will be able to tell from the paste below. any assistance would be great. Please bear in mind that i am a complete novice with linux and this ubuntu installation is my migration from windows so i am not familiar with the terminology.

chris@chris-939Dual-SATA2:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for chris:
chris@chris-939Dual-SATA2:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
chris@chris-939Dual-SATA2:~$ uname -a
Linux chris-939Dual-SATA2 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 athlon i386 GNU/Linux
chris@chris-939Dual-SATA2:~$ sudo rm /var/lib/apt/lists/lock
rm: cannot remove `/var/lib/apt/lists/lock': No such file or directory
chris@chris-939Dual-SATA2:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup

chris@chris-939Dual-SATA2:~$
chris@chris-939Dual-SATA2:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
chris@chris-939Dual-SATA2:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
chris@chris-939Dual-SATA2:~$ sudo rm -rf /var/lib/dpkg/updates/*
chris@chris-939Dual-SATA2:~$ sudo rm -rf /var/lib/apt/lists
chris@chris-939Dual-SATA2:~$ sudo rm /var/cache/apt/*.bin
chris@chris-939Dual-SATA2:~$ sudo mkdir /var/lib/apt/lists
chris@chris-939Dual-SATA2:~$ sudo mkdir /var/lib/apt/lists/partial
chris@chris-939Dual-SATA2:~$ LANG=C;sudo apt-get clean
chris@chris-939Dual-SATA2:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
chris@chris-939Dual-SATA2:~$ 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.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.0.0-16-generic (3.0.0-16.28) ...
Running depmod.
Failed to run depmod
dpkg: error processing linux-image-3.0.0-16-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.0.0-16-generic; however:
  Package linux-image-3.0.0-16-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.0.0.16.19); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                            No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                        Errors were encountered while processing:
 linux-image-3.0.0-16-generic
 linux-image-generic
 linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
chris@chris-939Dual-SATA2:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric-security InRelease
Get:1 http://archive.ubuntu.com oneiric Release.gpg [198 B]
Get:2 http://archive.ubuntu.com oneiric-security Release.gpg [198 B]
Get:3 http://archive.ubuntu.com oneiric Release [40.8 kB]
Ign http://archive.canonical.com oneiric InRelease
Get:4 http://archive.canonical.com oneiric Release.gpg [198 B]
Get:5 http://archive.ubuntu.com oneiric-security Release [40.8 kB]
Get:6 http://archive.canonical.com oneiric Release [5922 B]
Get:7 http://archive.ubuntu.com oneiric/main Sources [877 kB]
Get:8 http://archive.canonical.com oneiric/partner Sources [2284 B]
Get:9 http://archive.canonical.com oneiric/partner i386 Packages [3939 B]
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Ign http://archive.canonical.com oneiric/partner Translation-en_GB
Ign http://archive.canonical.com oneiric/partner Translation-en
Get:10 http://archive.ubuntu.com oneiric/restricted Sources [5351 B]
Get:11 http://archive.ubuntu.com oneiric/universe Sources [4677 kB]
Get:12 http://archive.ubuntu.com oneiric/multiverse Sources [149 kB]
Get:13 http://archive.ubuntu.com oneiric/main i386 Packages [1226 kB]
Get:14 http://archive.ubuntu.com oneiric/restricted i386 Packages [8216 B]
Get:15 http://archive.ubuntu.com oneiric/universe i386 Packages [4468 kB]
Get:16 http://archive.ubuntu.com oneiric/multiverse i386 Packages [119 kB]
Get:17 http://archive.ubuntu.com oneiric/main TranslationIndex [3289 B]
Get:18 http://archive.ubuntu.com oneiric/multiverse TranslationIndex [2265 B]
Get:19 http://archive.ubuntu.com oneiric/restricted TranslationIndex [2263 B]
Get:20 http://archive.ubuntu.com oneiric/universe TranslationIndex [2640 B]
Get:21 http://archive.ubuntu.com oneiric-security/main Sources [29.3 kB]
Get:22 http://archive.ubuntu.com oneiric-security/restricted Sources [14 B]
Get:23 http://archive.ubuntu.com oneiric-security/universe Sources [10.8 kB]
Get:24 http://archive.ubuntu.com oneiric-security/multiverse Sources [1645 B]
Get:25 http://archive.ubuntu.com oneiric-security/main i386 Packages [80.2 kB]
Get:26 http://archive.ubuntu.com oneiric-security/restricted i386 Packages [14 B]
Get:27 http://archive.ubuntu.com oneiric-security/universe i386 Packages [28.6 kB]
Get:28 http://archive.ubuntu.com oneiric-security/multiverse i386 Packages [3355 B]
Get:29 http://archive.ubuntu.com oneiric-security/main TranslationIndex [73 B]
Get:30 http://archive.ubuntu.com oneiric-security/multiverse TranslationIndex [72 B]
Get:31 http://archive.ubuntu.com oneiric-security/restricted TranslationIndex [70 B]
Get:32 http://archive.ubuntu.com oneiric-security/universe TranslationIndex [73 B]
Get:33 http://archive.ubuntu.com oneiric/main Translation-en_GB [69.0 kB]
Get:34 http://archive.ubuntu.com oneiric/main Translation-en [701 kB]
Get:35 http://archive.ubuntu.com oneiric/multiverse Translation-en_GB [68.5 kB]
Get:36 http://archive.ubuntu.com oneiric/multiverse Translation-en [92.6 kB]
Get:37 http://archive.ubuntu.com oneiric/restricted Translation-en_GB [1937 B]
Get:38 http://archive.ubuntu.com oneiric/restricted Translation-en [2229 B]
Get:39 http://archive.ubuntu.com oneiric/universe Translation-en_GB [4365 B]
Get:40 http://archive.ubuntu.com oneiric/universe Translation-en [3165 kB]
Get:41 http://archive.ubuntu.com oneiric-security/main Translation-en [43.5 kB]
Get:42 http://archive.ubuntu.com oneiric-security/multiverse Translation-en [1494 B]
Get:43 http://archive.ubuntu.com oneiric-security/restricted Translation-en [14 B]
Get:44 http://archive.ubuntu.com oneiric-security/universe Translation-en [20.0 kB]
Fetched 16.0 MB in 33s (470 kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ oneiric/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_oneiric_partner_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
chris@chris-939Dual-SATA2:~$ sudo dpkg --configure -a
Setting up linux-image-3.0.0-16-generic (3.0.0-16.28) ...
Running depmod.
Failed to run depmod
dpkg: error processing linux-image-3.0.0-16-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.0.0-16-generic; however:
  Package linux-image-3.0.0-16-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.0.0.16.19); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.0.0-16-generic
 linux-image-generic
 linux-generic
chris@chris-939Dual-SATA2:~$ sudo dpkg --clear-avail
chris@chris-939Dual-SATA2:~$ 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 3 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.0.0-16-generic (3.0.0-16.28) ...
Running depmod.
Failed to run depmod
dpkg: error processing linux-image-3.0.0-16-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.0.0-16-generic; however:
  Package linux-image-3.0.0-16-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.0.0.16.19); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                            No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                        Errors were encountered while processing:
 linux-image-3.0.0-16-generic
 linux-image-generic
 linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
chris@chris-939Dual-SATA2:~$ 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 3 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.0.0-16-generic (3.0.0-16.28) ...
Running depmod.
Failed to run depmod
dpkg: error processing linux-image-3.0.0-16-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.0.0-16-generic; however:
  Package linux-image-3.0.0-16-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.0.0.16.19); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                            No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                        Errors were encountered while processing:
 linux-image-3.0.0-16-generic
 linux-image-generic
 linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
chris@chris-939Dual-SATA2:~$ 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://archive.ubuntu.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric-security InRelease
Hit http://archive.canonical.com oneiric Release.gpg
Hit http://archive.ubuntu.com oneiric Release.gpg
Hit http://archive.canonical.com oneiric Release
Hit http://archive.ubuntu.com oneiric-security Release.gpg
Hit http://archive.ubuntu.com oneiric Release
Hit http://archive.ubuntu.com oneiric-security Release
Hit http://archive.canonical.com oneiric/partner Sources
Hit http://archive.ubuntu.com oneiric/main Sources
Hit http://archive.canonical.com oneiric/partner i386 Packages
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Hit http://archive.ubuntu.com oneiric/restricted Sources
Hit http://archive.ubuntu.com oneiric/universe Sources
Hit http://archive.ubuntu.com oneiric/multiverse Sources
Hit http://archive.ubuntu.com oneiric/main i386 Packages
Hit http://archive.ubuntu.com oneiric/restricted i386 Packages
Hit http://archive.ubuntu.com oneiric/universe i386 Packages
Hit http://archive.ubuntu.com oneiric/multiverse i386 Packages
Hit http://archive.ubuntu.com oneiric/main TranslationIndex
Hit http://archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http://archive.ubuntu.com oneiric/restricted TranslationIndex
Ign http://archive.canonical.com oneiric/partner Translation-en_GB
Hit http://archive.ubuntu.com oneiric/universe TranslationIndex
Hit http://archive.ubuntu.com oneiric-security/main Sources
Hit http://archive.ubuntu.com oneiric-security/restricted Sources
Hit http://archive.ubuntu.com oneiric-security/universe Sources
Hit http://archive.ubuntu.com oneiric-security/multiverse Sources
Hit http://archive.ubuntu.com oneiric-security/main i386 Packages
Ign http://archive.canonical.com oneiric/partner Translation-en
Hit http://archive.ubuntu.com oneiric-security/restricted i386 Packages
Hit http://archive.ubuntu.com oneiric-security/universe i386 Packages
Hit http://archive.ubuntu.com oneiric-security/multiverse i386 Packages
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_GB
Hit http://archive.ubuntu.com oneiric/main Translation-en
Hit http://archive.ubuntu.com oneiric/multiverse Translation-en_GB
Hit http://archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://archive.ubuntu.com oneiric/restricted Translation-en_GB
Hit http://archive.ubuntu.com oneiric/restricted Translation-en
Hit http://archive.ubuntu.com oneiric/universe Translation-en_GB
Hit http://archive.ubuntu.com oneiric/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
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  thunderbird-locale-en thunderbird-locale-en-gb thunderbird-locale-en-us
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 372 kB of archives.
After this operation, 4096 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ oneiric-security/main thunderbird-locale-en all 1:10.0.2+build1-0ubuntu0.11.10.1 [345 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ oneiric-security/main thunderbird-locale-en-gb all 1:10.0.2+build1-0ubuntu0.11.10.1 [13.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ oneiric-security/main thunderbird-locale-en-us all 1:10.0.2+build1-0ubuntu0.11.10.1 [13.7 kB]
Fetched 372 kB in 0s (536 kB/s)
(Reading database ... 152296 files and directories currently installed.)
Preparing to replace thunderbird-locale-en 1:9.0+build2-0ubuntu0.11.10.1 (using .../thunderbird-locale-en_1%3a10.0.2+build1-0ubuntu0.11.10.1_all.deb) ...
Unpacking replacement thunderbird-locale-en ...
Preparing to replace thunderbird-locale-en-gb 1:9.0+build2-0ubuntu0.11.10.1 (using .../thunderbird-locale-en-gb_1%3a10.0.2+build1-0ubuntu0.11.10.1_all.deb) ...
Unpacking replacement thunderbird-locale-en-gb ...
Preparing to replace thunderbird-locale-en-us 1:9.0+build2-0ubuntu0.11.10.1 (using .../thunderbird-locale-en-us_1%3a10.0.2+build1-0ubuntu0.11.10.1_all.deb) ...
Unpacking replacement thunderbird-locale-en-us ...
Setting up linux-image-3.0.0-16-generic (3.0.0-16.28) ...
Running depmod.
Failed to run depmod
dpkg: error processing linux-image-3.0.0-16-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-3.0.0-16-generic; however:
  Package linux-image-3.0.0-16-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 3.0.0.16.19); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Setting up thunderbird-locale-en (1:10.0.2+build1-0ubuntu0.11.10.1) ...
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                            No apport report written because the error message indicates it's a follow-up error from a previous failure.
                                                        Setting up thunderbird-locale-en-gb (1:10.0.2+build1-0ubuntu0.11.10.1) ...
Setting up thunderbird-locale-en-us (1:10.0.2+build1-0ubuntu0.11.10.1) ...
Errors were encountered while processing:
 linux-image-3.0.0-16-generic
 linux-image-generic
 linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
chris@chris-939Dual-SATA2:~$ ^C
chris@chris-939Dual-SATA2:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Christopher Serella
Solved:
Last query:
Last reply:
Revision history for this message
Christopher Serella (9e9o1ko8b2f5-chris-0zxvj9hhx1hz) said :
#1

please ignore my last ^C line, that was my clumsy attempt at copying the terminal output

Revision history for this message
mfauzirahman (mfauzirahman) said :
#2

please try below step

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo rm -rf lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update

Revision history for this message
Christopher Serella (9e9o1ko8b2f5-chris-0zxvj9hhx1hz) said :
#3

thank you for your response, i managed to get this sorted out yesterday and forgot to make this solved, can i just ask one question further. its regards to your reply,

move list to list.old
remove list.old

was this step required? or am i missing something. its no longer an issue as i said i have this solved but im just curious.