Resolving package dependencies at upgrade
My 14.04 LTS has been increasingly unstable for a while and fails during various upgrade attempts - both command line as well as the software updater.
One strange symptom was that it would not recognise my user password after restart, but by using "switch user" I am able to log in ( so then it does recognise the same user and password)
During a latest attempt I'm stuck on resolving these image dependencies. How do I resolve this?
wh@wh-HP-
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies.
linux-
E: Unmet dependencies. Try using -f.
wh@wh-HP-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
linux-
Suggested packages:
fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
The following NEW packages will be installed
linux-
0 to upgrade, 2 to newly install, 0 to remove and 4 not to upgrade.
1 not fully installed or removed.
Need to get 0 B/51,6 MB of archives.
After this operation, 193 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package linux-image-
(Reading database ... 242668 files and directories currently installed.)
Preparing to unpack .../linux-
Done.
Unpacking linux-image-
Selecting previously unselected package linux-image-
Preparing to unpack .../linux-
Unpacking linux-image-
Setting up linux-image-
Running depmod.
Failed to run depmod
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-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.
linux-
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
What is the output of:
df -h; lsb_release -a; uname -a; dpkg -l | grep linux-image
Thanks
Revision history for this message
|
#2 |
wh@wh-HP-
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 104G 25G 75G 25% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 1,4G 12K 1,4G 1% /dev
tmpfs 289M 1,4M 287M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 1,5G 166M 1,3G 12% /run/shm
none 100M 92K 100M 1% /run/user
wh@wh-HP-
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
wh@wh-HP-
Linux wh-HP-Compaq-
wh@wh-HP-
ii linux-image-
ii linux-image-
iF linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
iU linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
ii linux-image-
iU linux-image-generic 3.13.0.29.35 amd64 Generic Linux kernel image
wh@wh-HP-
Revision history for this message
|
#3 |
Wow that is a lot. Lets clean that up:
sudo apt-get --purge remove linux-image-
sudo dpkg -P linux-image-
sudo apt-get --purge autoremove
Revision history for this message
|
#4 |
Then run:
sudo apt-get clean
sudo apt-get update
sudo apt-get --reinstall install linux-image-
Is it ok?
Revision history for this message
|
#5 |
Not quite :)
wh@wh-HP-
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 2 reinstalled, 0 to remove and 4 not to upgrade.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for linux-image-
During the earlier purge remove / purge autoremove and dpkg -P commands, there were also some dependency errors, however, I wasn't sure if they would stop the purge process, so I just kept going.
The complete output was...
wh@wh-HP-
[sudo] password for wh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-
The following packages will be REMOVED
linux-
linux-
0 to upgrade, 0 to newly install, 4 to remove and 4 not to upgrade.
3 not fully installed or removed.
After this operation, 339 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 247473 files and directories currently installed.)
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found memtest86+ image: /boot/memtest86
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda1
done
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found memtest86+ image: /boot/memtest86
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda1
done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found memtest86+ image: /boot/memtest86
Found memtest86+ image: /boot/memtest86
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda1
done
Purging configuration files for linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
Found memtest86+ image: /boot/memtest86
Found Ubuntu 12.04.1 LTS (12.04) on /dev/sda1
done
Purging configuration files for linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Setting up linux-image-
Running depmod.
Failed to run depmod
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-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.
linux-
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
wh@wh-HP-
Package linux-image-
Package linux-image-
(Reading database ... 238465 files and directories currently installed.)
Removing linux-image-
Purging configuration files for linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Removing linux-image-
Purging configuration files for linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Removing linux-image-
Purging configuration files for linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Removing linux-image-
Purging configuration files for linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Removing linux-image-
Purging configuration files for linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Removing linux-image-
Purging configuration files for linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
wh@wh-HP-
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 4 not to upgrade.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-
Running depmod.
Failed to run depmod
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-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.
linux-
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
wh@wh-HP-
wh@wh-HP-
Ign http://
Ign http://
Get:1 http://
Get:2 http://
Hit http://
Get:3 http://
Ign http://
Ign http://
Get:4 http://
Ign http://
Hit http://
Get:5 http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:6 http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:7 http://
Hit http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Hit http://
Hit http://
Hit http://
Get:20 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Fetched 848 kB in 1min 20s (10,6 kB/s)
Reading package lists... Done
wh@wh-HP-
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 2 reinstalled, 0 to remove and 4 not to upgrade.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for linux-image-
Revision history for this message
|
#6 |
wget https:/
chmod +x ./fixpackage
sudo ./fixpackage
Should do it.
Revision history for this message
|
#7 |
Andrew,
Thanx for preparing the fixpackage!
Ran the commands - as per the below output, but alas... 13.3.0-29 is still complaining
wh@wh-HP-
--2014-06-22 15:43:49-- https:/
Resolving dl.dropbox.com (dl.dropbox.com)... 54.225.188.186
Connecting to dl.dropbox.com (dl.dropbox.
HTTP request sent, awaiting response... 302 FOUND
Location: https:/
--2014-06-22 15:43:50-- https:/
Resolving dl.dropboxuserc
Connecting to dl.dropboxuserc
HTTP request sent, awaiting response... 200 OK
Length: 468 [text/plain]
Saving to: ‘fixpackage’
100%[==
2014-06-22 15:43:52 (12,1 MB/s) - ‘fixpackage’ saved [468/468]
wh@wh-HP-
wh@wh-HP-
[sudo] password for wh:
cp: error reading ‘/var/lib/
cp: failed to extend ‘/var/lib/
Ign http://
Ign http://
Ign http://
Ign http://
Get:1 http://
Get:2 http://
Ign http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Ign http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Ign http://
Ign http://
Ign http://
Get:17 http://
Ign http://
Ign http://
Ign http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Get:57 http://
Get:58 http://
Get:59 http://
Get:60 http://
Get:61 http://
Get:62 http://
Get:63 http://
Get:64 http://
Get:65 http://
Get:66 http://
Get:67 http://
Get:68 http://
Get:69 http://
Get:70 http://
Get:71 http://
Get:72 http://
Get:73 http://
Get:74 http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Fetched 29,0 MB in 2min 29s (193 kB/s)
Reading package lists... Done
Setting up linux-image-
Running depmod.
Failed to run depmod
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-
linux-
linux-
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-
Running depmod.
Failed to run depmod
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-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.
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:1 http://
Hit http://
Hit http://
Get:2 http://
Hit http://
Ign http://
Ign http://
Ign http://
Hit http://
Get:3 http://
Ign http://
Ign http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
unity-
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
3 not fully installed or removed.
Need to get 489 kB of archives.
After this operation, 24,6 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://
Fetched 489 kB in 20s (23,9 kB/s)
(Reading database ... 238466 files and directories currently installed.)
Preparing to unpack .../unity-
Unpacking unity-settings-
Processing triggers for libglib2.0-0:amd64 (2.40.0-2) ...
Processing triggers for libglib2.0-0:i386 (2.40.0-2) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Setting up linux-image-
Running depmod.
Failed to run depmod
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package linux-image-
linux-
Package linux-image-
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
SetNo apport report written because the error message indicates it's a follow-up error from a previous failure.
Errors were encountered while processing:
linux-
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
wh@wh-HP-
Revision history for this message
|
#8 |
Messages like
cp: error reading ‘/var/lib/
cp: failed to extend ‘/var/lib/
potentially indicate a file system error on one of your file systems.
I recommend you try booting into a live system and perform a file system check.
Can you help with this problem?
Provide an answer of your own, or ask Willem Hart for more information if necessary.