Ran an automatic update last night, and I'm getting an error in installing two linux header packages.
It seems to be exactly the same problem as here, with exactly the same packages: https:/
louisa@Nuk:~$ sudo apt-get -f install
[sudo] password for louisa:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libbabl-0.0-0 libgegl-0.0-0 language-
language-
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-
The following NEW packages will be installed
linux-
0 to upgrade, 2 to newly install, 0 to remove and 0 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/12.7 MB of archives.
After this operation, 67.8 MB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 1188014 files and directories currently installed.)
Unpacking linux-headers-
dpkg: error processing /var/cache/
unable to create `/usr/src/
No apport report written because the error message indicates a disk full error
Unpacking linux-headers-
dpkg: error processing /var/cache/
error creating symbolic link `./usr/
No apport report written because the error message indicates a disk full error
/var/cache/
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have started purging older kernel header packages as suggested in the link above, but I've not yet been able to get the packages to install.
Help would be appreciated.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Please provide the output of the following terminal commands
uname -a
lsb_release -crid
df -h
df -i
dpkg -l | grep linux-h
dpkg -l | grep linux-i
sudo dpkg --audit
Revision history for this message
|
#2 |
louisa@Nuk:~$ uname -a
Linux Nuk 3.2.0-75-
louisa@Nuk:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
louisa@Nuk:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 19G 14G 4.2G 77% /
udev 1.8G 4.0K 1.8G 1% /dev
tmpfs 363M 900K 362M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.8G 16M 1.8G 1% /run/shm
/dev/sda1 17G 805M 16G 5% /boot
/dev/sda7 251G 24G 215G 10% /home
javafs 11G 729M 11G 7% /home/louisa/
louisa@Nuk:~$ df-i
df-i: command not found
louisa@Nuk:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda6 1220608 1218553 2055 100% /
udev 208139 510 207629 1% /dev
tmpfs 211792 454 211338 1% /run
none 211792 3 211789 1% /run/lock
none 211792 68 211724 1% /run/shm
/dev/sda1 4497920 411 4497509 1% /boot
/dev/sda7 16687104 57487 16629617 1% /home
javafs 100 -999999900 1000000000 - /home/louisa/
louisa@Nuk:~$ dpkg -l | grep linux-h
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
iU linux-headers-
iU linux-headers-
louisa@Nuk:~$ dpkg -l | grep linux-i
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
louisa@Nuk:~$ sudo dpkg --audit
[sudo] password for louisa:
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-
linux-generic-pae Complete Generic Linux kernel
linux-
louisa@Nuk:~$
Revision history for this message
|
#3 |
Ok, I see.
You have a long list of obsolete image and kernel header files installed, that have used all available disk space.
Please issue the following command. You should select the whole block of lines at once and paste it into a terminal window.
sudo dpkg --purge \
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
linux-headers-
When you have done that, issue the commands
sudo dpkg --configure -a
df -h
df -i
and copy/paste the output into this question document.
Revision history for this message
|
#4 |
[sudo] password for louisa:
(Reading database ... 1193150 files and directories currently installed.)
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
Removing linux-headers-
louisa@Nuk:~$ sudo dpkg --configure -a
[sudo] password for louisa:
dpkg: dependency problems prevent configuration of linux-headers-
linux-
Package linux-headers-
dpkg: error processing linux-headers-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-pae:
linux-generic-pae depends on linux-headers-
Package linux-headers-
dpkg: error processing linux-generic-pae (--configure):
dependency problems - leaving unconfigured
Setting up linux-headers-
Errors were encountered while processing:
linux-
linux-generic-pae
louisa@Nuk:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 19G 12G 6.0G 67% /
udev 1.8G 4.0K 1.8G 1% /dev
tmpfs 363M 904K 362M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.8G 22M 1.8G 2% /run/shm
/dev/sda1 17G 805M 16G 5% /boot
/dev/sda7 251G 24G 215G 10% /home
javafs 11G 729M 11G 7% /home/louisa/
louisa@Nuk:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda6 1220608 816781 403827 67% /
udev 208139 510 207629 1% /dev
tmpfs 211792 454 211338 1% /run
none 211792 3 211789 1% /run/lock
none 211792 96 211696 1% /run/shm
/dev/sda1 4497920 411 4497509 1% /boot
/dev/sda7 16687104 57488 16629616 1% /home
javafs 100 -999999900 1000000000 - /home/louisa/
louisa@Nuk:~$
Revision history for this message
|
#5 |
Ok, first set of obsolete packages removed. The next step must be to get the package management system back in a consistent state.
Try the commands
sudo apt-get update
sudo apt-get dist-upgrade
sudo dpkg --audit
and copy/paste the output into this question document like you have done before.
Revision history for this message
|
#6 |
Hmm, don't think that worked...
louisa@Nuk:~$ sudo apt-get update
[sudo] password for louisa:
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:1 http://
Get:2 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:3 http://
Hit http://
Get:4 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Ign http://
Get:5 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:6 http://
Hit http://
Ign http://
Hit http://
Hit http://
Ign http://
Hit http://
Get:7 http://
Get:8 http://
Hit http://
Get:9 http://
Get:10 http://
Hit http://
Ign http://
Get:11 http://
Get:12 http://
Ign http://
Ign http://
Hit http://
Ign http://
Ign http://
Get:13 http://
Get:14 http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Ign http://
Ign http://
Hit http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 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:22 http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:23 http://
Get:24 http://
Hit http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Hit http://
Hit http://
Get:31 http://
Fetched 3,542 kB in 19s (178 kB/s)
W: Failed to fetch http://
E: Some index files failed to download. They have been ignored, or old ones used instead.
louisa@Nuk:~$ sudo apt-get dist-upgrade
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.
louisa@Nuk:~$ sudo dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-
linux-generic-pae Complete Generic Linux kernel
louisa@Nuk:~$
Revision history for this message
|
#7 |
wget https:/
chmod +x ./fixpackage
sudo ./fixpackage
Revision history for this message
|
#8 |
@actionparsnip
Thank you for your input! You need to break that down for me a bit more, though. Do I copy/paste the whole script there as it is, or run each command separately?
What is the above supposed to do? Does it follow on from what Manfred has been asking me to do?
(I know, lots of questions, but I'm trying to understand what I'm doing).
Revision history for this message
|
#9 |
The commands from actionparsnip are supposed to be executed one by one.
My suggestion would have been these commands:
sudo apt-get install linux-headers-
sudo dpkg --configure -a
(I assume both possibilities will achieve similar results.)
Revision history for this message
|
#10 |
I went with Manfred's suggestion simply on the basis that I found it less scary.
These are the results:
louisa@Nuk:~$ sudo apt-get install linux-headers-
[sudo] password for louisa:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libbabl-0.0-0 libgegl-0.0-0 language-
kde-l10n-engb
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed
linux-
0 to upgrade, 1 to newly install, 0 to remove and 1 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/975 kB of archives.
After this operation, 11.4 MB of additional disk space will be used.
(Reading database ... 791466 files and directories currently installed.)
Unpacking linux-headers-
Setting up linux-headers-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Setting up linux-headers-
Setting up linux-generic-pae (3.2.0.75.89) ...
louisa@Nuk:~$ sudo dpkg --configure -a
louisa@Nuk:~$
Revision history for this message
|
#11 |
It seems to have installed. Is there any further check I can do to see whether the system is now in order?
Revision history for this message
|
#12 |
It seems that your package management system is consistent again.
Now please execute the following commands to verify if there is anything else requiring actions:
sudo dpkg --audit
sudo apt-get update
sudo apt-get autoremove
sudo apt-get dist-upgrade
df -h
df -i
dpkg -l | grep linux-h
dpkg -l | grep linux-i
Revision history for this message
|
#13 |
There is nothing to clarify on mine. It's 3 commands to copy and paste
Revision history for this message
|
#14 |
louisa@Nuk:~$ sudo dpkg --audit
[sudo] password for louisa:
louisa@Nuk:~$ sudo apt-get update
Err http://
Could not connect to repo.wuala.com:80 (78.47.0.11). - connect (111: Connection refused)
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://
Hit http://
Hit http://
Get:2 http://
Hit http://
Get:3 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:4 http://
Hit http://
Hit 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://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit 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://
Hit http://
Get:5 http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Get:6 http://
Hit http://
Hit http://
Hit http://
Ign http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:11 http://
Get:12 http://
Hit http://
Get:13 http://
Get:14 http://
Hit http://
Get:15 http://
Get:16 http://
Ign http://
Get:17 http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit 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://
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:21 http://
Hit http://
Hit http://
Hit http://
Hit http://
Fetched 2,998 kB in 17s (167 kB/s)
Reading package lists... Done
W: Failed to fetch http://
W: Some index files failed to download. They have been ignored, or old ones used instead.
louisa@Nuk:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
kde-l10n-engb language-
libgegl-0.0-0
0 to upgrade, 0 to newly install, 5 to remove and 1 not to upgrade.
After this operation, 7,433 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 799923 files and directories currently installed.)
Removing kde-l10n-engb ...
Removing libgegl-0.0-0 ...
Removing libbabl-0.0-0 ...
Removing language-
Removing language-
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for software-center ...
INFO:softwarece
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/
louisa@Nuk:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
libelf1
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Need to get 48.6 kB of archives.
After this operation, 4,096 B disk space will be freed.
Do you want to continue [Y/n]?
Get:1 http://
Fetched 48.6 kB in 0s (92.0 kB/s)
(Reading database ... 797768 files and directories currently installed.)
Preparing to replace libelf1 0.152-1ubuntu3 (using .../libelf1_
Unpacking replacement libelf1 ...
Setting up libelf1 (0.152-1ubuntu3.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
louisa@Nuk:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 19G 12G 5.9G 67% /
udev 1.8G 4.0K 1.8G 1% /dev
tmpfs 363M 896K 362M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.8G 21M 1.8G 2% /run/shm
/dev/sda1 17G 805M 16G 5% /boot
/dev/sda7 251G 24G 215G 10% /home
javafs 11G 729M 11G 7% /home/louisa/
louisa@Nuk:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda6 1220608 823095 397513 68% /
udev 208139 511 207628 1% /dev
tmpfs 211792 452 211340 1% /run
none 211792 3 211789 1% /run/lock
none 211792 44 211748 1% /run/shm
/dev/sda1 4497920 411 4497509 1% /boot
/dev/sda7 16687104 58001 16629103 1% /home
javafs 100 -999999900 1000000000 - /home/louisa/
louisa@Nuk:~$ dpkg -l | grep linux-h
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
louisa@Nuk:~$ dpkg -l | grep linux-i
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
louisa@Nuk:~$
Revision history for this message
|
#15 |
@actionparsnip
Ah. Yes. I clicked on the link and saw the script and got confused. I now realise what you meant. Sorry!
Revision history for this message
|
#16 |
Your package management system seems in a consistent state again, and installing and updating packages should work again.
The only problem that I see is for the wuala package. It seems that they have changed their repository setup or have a problem on one of their servers, and so you always receive an error message when running "sudo apt-get update". You should try getting that sorted out. I do not know anything about wuala, so I cannot help.
You should purge more obsolete kernel and header packages.
I recommend that you install the Ubuntu-tweak package (from the tualatrix/ubuntu ppa). This program contains a Janitor function, and you can easily remove obsolete kernel and header files with that function. If you regularly (say once a month) use that, you should no more run into the "no space left" situation.
Revision history for this message
|
#17 |
Thank you ever so much for your help! I'll try to sort out Wuala, and install Ubuntu tweak.
Revision history for this message
|
#18 |
Thanks Manfred Hampl, that solved my question.
Revision history for this message
|
#19 |
Hi I tried the instructions in this and can't my issue corrected
I get,
david@Devac:~$ sudo apt-get install linux-headers-
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package linux-headers-
When i try to reinstall. Can anyone please help
Revision history for this message
|
#20 |
@Dave Mac:
Please do not piggyback on somebody else's question, but create your own Launchpad question document.
Follow steps 1 to 6 of https:/
There you find a link that creates your own question document.