Broken package after update: linux-headers, error: BrokenCount >0broken-package-after-update-linux-headers-error-brokencount-012-04 lts auto update is “broken” do I need to reinstall?I have this Broken package Error after update Error:“BrokenCount>0” I am using Ubuntu 18.04apt-get: No space left on device (12.04)/usr/src is eating up all inodesI can't update my Ubuntu!Error broken count>0Error installing a package: “trying to overwrite directory /usr/share/pixmaps”Apt errors since upgrade to 12.04Ubuntu server 12.04 dependency issues when attempting updateRhythmbox updates failingUnmet dependencies when trying to updatebroken-package-after-update-linux-headers-error-brokencount-0“Package linux-image-generic is not configured yet.” ErrorHow do I fix dependency and tar problems with linux-image-extra* package?False disk full error: apt-get unable to install or removeKodi Failed Installation on Ubuntu 16.04

Why is the Sun approximated as a black body at ~ 5800 K?

Quoting Keynes in a lecture

Animation: customize bounce interpolation

How to leave product feedback on macOS?

What happens if I try to grapple an illusory duplicate from the Mirror Image spell?

Why the "ls" command is showing the permissions of files in a FAT32 partition?

What is the meaning of the following sentence?

How do you justify more code being written by following clean code practices?

Why would five hundred and five be same as one?

El Dorado Word Puzzle II: Videogame Edition

How to make a list of partial sums using forEach

Do you waste sorcery points if you try to apply metamagic to a spell from a scroll but fail to cast it?

How to test the sharpness of a knife?

Typing CO_2 easily

Pre-Employment Background Check With Consent For Future Checks

I'm just a whisper. Who am I?

What does "tick" mean in this sentence?

Ways of geometrical multiplication

Can I run 125kHz RF circuit on a breadboard?

Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?

The Digit Triangles

Personal or impersonal in a technical resume

Difference between shutdown options

What (the heck) is a Super Worm Equinox Moon?



Broken package after update: linux-headers, error: BrokenCount >0


broken-package-after-update-linux-headers-error-brokencount-012-04 lts auto update is “broken” do I need to reinstall?I have this Broken package Error after update Error:“BrokenCount>0” I am using Ubuntu 18.04apt-get: No space left on device (12.04)/usr/src is eating up all inodesI can't update my Ubuntu!Error broken count>0Error installing a package: “trying to overwrite directory /usr/share/pixmaps”Apt errors since upgrade to 12.04Ubuntu server 12.04 dependency issues when attempting updateRhythmbox updates failingUnmet dependencies when trying to updatebroken-package-after-update-linux-headers-error-brokencount-0“Package linux-image-generic is not configured yet.” ErrorHow do I fix dependency and tar problems with linux-image-extra* package?False disk full error: apt-get unable to install or removeKodi Failed Installation on Ubuntu 16.04













7















Ubuntu 12.04.



After an update, I get a red warning icon in the system tray, warning about an error: broken count >0



Opening Update manager, I see that the broken package is linux-headers-3.2.0-33-generic-pae (new install)



Specificaly I have my ubuntu on an AspireOne with 8gb internal storage.



I tried apt-get clean as suggested in another question on this site, and tried reinstalling the package in Synaptic.



I have tried to reboot but to no avail.



I have also tried apt-get install --fix-broken and I get the following:



sudo apt-get install --fix-broken
[sudo] password for elina:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
linux-headers-3.2.0-33-generic-pae
The following NEW packages will be installed:
linux-headers-3.2.0-33-generic-pae
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
1 not fully installed or removed.
Need to get 0 B/977 kB of archives.
After this operation 11,3 MB of additional disk space will be used.
Do you want to continue [Y/n]; y
(Reading database ... 437051 files and directories currently installed.)
Unpacking linux-headers-3.2.0-33-generic-pae (from .../linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb (--unpack):
unable to create `/usr/src/linux-headers-3.2.0-33-generic-pae/include/config/usb/gspca/sonixb.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-33-generic-pae/include/config/usb/gspca/sonixb.h'): No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've tried all suggestions I could find:



sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install
sudo apt-get install --fix-broken


Then I saw that on the error there was a mention about free space. So I did a df -h and the result was:



Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7,0G 5,5G 1,1G 84% /
udev 235M 4,0K 235M 1% /dev
tmpfs 97M 816K 96M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 242M 352K 242M 1% /run/shm


I see that on my root folder I have 1.1Gb free. The broken package is



linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb


which only takes up 11.3Mb on my hard drive.



I'm soooo lost.
I really hope there is something I'm missing here. I don't want to go about reformatting this bucket. It's really not worth the time.
Any help for fixing this would be hot.










share|improve this question
























  • Could you post the output of this command? sudo parted /dev/sda print

    – MiJyn
    Nov 28 '12 at 18:28











  • of course. here it is: elina@AcerAspireONE:~$ sudo parted /dev/sda print [sudo] password for elina: Model: ATA SSDPAMM0008G1 (scsi) Disk /dev/sda: 8070MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 7546MB 7545MB primary ext4 boot 2 7547MB 8069MB 522MB extended 5 7547MB 8069MB 522MB logical linux-swap(v1)

    – escozul
    Nov 28 '12 at 22:18












  • Just I can't seem to be able to add line breaks... ??? I'm supposed to add 2 spaces at the end of each line to make the line break but no go? why?

    – escozul
    Nov 28 '12 at 22:21












  • possibly related: askubuntu.com/questions/195014/i-cant-update-my-ubuntu

    – David Cary
    Feb 5 '14 at 6:39











  • Not the same problem David. I have the solution below. The thing was with the inodes. Read my answer below.

    – escozul
    Feb 5 '14 at 12:22















7















Ubuntu 12.04.



After an update, I get a red warning icon in the system tray, warning about an error: broken count >0



Opening Update manager, I see that the broken package is linux-headers-3.2.0-33-generic-pae (new install)



Specificaly I have my ubuntu on an AspireOne with 8gb internal storage.



I tried apt-get clean as suggested in another question on this site, and tried reinstalling the package in Synaptic.



I have tried to reboot but to no avail.



I have also tried apt-get install --fix-broken and I get the following:



sudo apt-get install --fix-broken
[sudo] password for elina:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
linux-headers-3.2.0-33-generic-pae
The following NEW packages will be installed:
linux-headers-3.2.0-33-generic-pae
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
1 not fully installed or removed.
Need to get 0 B/977 kB of archives.
After this operation 11,3 MB of additional disk space will be used.
Do you want to continue [Y/n]; y
(Reading database ... 437051 files and directories currently installed.)
Unpacking linux-headers-3.2.0-33-generic-pae (from .../linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb (--unpack):
unable to create `/usr/src/linux-headers-3.2.0-33-generic-pae/include/config/usb/gspca/sonixb.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-33-generic-pae/include/config/usb/gspca/sonixb.h'): No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've tried all suggestions I could find:



sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install
sudo apt-get install --fix-broken


Then I saw that on the error there was a mention about free space. So I did a df -h and the result was:



Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7,0G 5,5G 1,1G 84% /
udev 235M 4,0K 235M 1% /dev
tmpfs 97M 816K 96M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 242M 352K 242M 1% /run/shm


I see that on my root folder I have 1.1Gb free. The broken package is



linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb


which only takes up 11.3Mb on my hard drive.



I'm soooo lost.
I really hope there is something I'm missing here. I don't want to go about reformatting this bucket. It's really not worth the time.
Any help for fixing this would be hot.










share|improve this question
























  • Could you post the output of this command? sudo parted /dev/sda print

    – MiJyn
    Nov 28 '12 at 18:28











  • of course. here it is: elina@AcerAspireONE:~$ sudo parted /dev/sda print [sudo] password for elina: Model: ATA SSDPAMM0008G1 (scsi) Disk /dev/sda: 8070MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 7546MB 7545MB primary ext4 boot 2 7547MB 8069MB 522MB extended 5 7547MB 8069MB 522MB logical linux-swap(v1)

    – escozul
    Nov 28 '12 at 22:18












  • Just I can't seem to be able to add line breaks... ??? I'm supposed to add 2 spaces at the end of each line to make the line break but no go? why?

    – escozul
    Nov 28 '12 at 22:21












  • possibly related: askubuntu.com/questions/195014/i-cant-update-my-ubuntu

    – David Cary
    Feb 5 '14 at 6:39











  • Not the same problem David. I have the solution below. The thing was with the inodes. Read my answer below.

    – escozul
    Feb 5 '14 at 12:22













7












7








7


2






Ubuntu 12.04.



After an update, I get a red warning icon in the system tray, warning about an error: broken count >0



Opening Update manager, I see that the broken package is linux-headers-3.2.0-33-generic-pae (new install)



Specificaly I have my ubuntu on an AspireOne with 8gb internal storage.



I tried apt-get clean as suggested in another question on this site, and tried reinstalling the package in Synaptic.



I have tried to reboot but to no avail.



I have also tried apt-get install --fix-broken and I get the following:



sudo apt-get install --fix-broken
[sudo] password for elina:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
linux-headers-3.2.0-33-generic-pae
The following NEW packages will be installed:
linux-headers-3.2.0-33-generic-pae
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
1 not fully installed or removed.
Need to get 0 B/977 kB of archives.
After this operation 11,3 MB of additional disk space will be used.
Do you want to continue [Y/n]; y
(Reading database ... 437051 files and directories currently installed.)
Unpacking linux-headers-3.2.0-33-generic-pae (from .../linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb (--unpack):
unable to create `/usr/src/linux-headers-3.2.0-33-generic-pae/include/config/usb/gspca/sonixb.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-33-generic-pae/include/config/usb/gspca/sonixb.h'): No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've tried all suggestions I could find:



sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install
sudo apt-get install --fix-broken


Then I saw that on the error there was a mention about free space. So I did a df -h and the result was:



Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7,0G 5,5G 1,1G 84% /
udev 235M 4,0K 235M 1% /dev
tmpfs 97M 816K 96M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 242M 352K 242M 1% /run/shm


I see that on my root folder I have 1.1Gb free. The broken package is



linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb


which only takes up 11.3Mb on my hard drive.



I'm soooo lost.
I really hope there is something I'm missing here. I don't want to go about reformatting this bucket. It's really not worth the time.
Any help for fixing this would be hot.










share|improve this question
















Ubuntu 12.04.



After an update, I get a red warning icon in the system tray, warning about an error: broken count >0



Opening Update manager, I see that the broken package is linux-headers-3.2.0-33-generic-pae (new install)



Specificaly I have my ubuntu on an AspireOne with 8gb internal storage.



I tried apt-get clean as suggested in another question on this site, and tried reinstalling the package in Synaptic.



I have tried to reboot but to no avail.



I have also tried apt-get install --fix-broken and I get the following:



sudo apt-get install --fix-broken
[sudo] password for elina:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
linux-headers-3.2.0-33-generic-pae
The following NEW packages will be installed:
linux-headers-3.2.0-33-generic-pae
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
1 not fully installed or removed.
Need to get 0 B/977 kB of archives.
After this operation 11,3 MB of additional disk space will be used.
Do you want to continue [Y/n]; y
(Reading database ... 437051 files and directories currently installed.)
Unpacking linux-headers-3.2.0-33-generic-pae (from .../linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb (--unpack):
unable to create `/usr/src/linux-headers-3.2.0-33-generic-pae/include/config/usb/gspca/sonixb.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-33-generic-pae/include/config/usb/gspca/sonixb.h'): No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've tried all suggestions I could find:



sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install
sudo apt-get install --fix-broken


Then I saw that on the error there was a mention about free space. So I did a df -h and the result was:



Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7,0G 5,5G 1,1G 84% /
udev 235M 4,0K 235M 1% /dev
tmpfs 97M 816K 96M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 242M 352K 242M 1% /run/shm


I see that on my root folder I have 1.1Gb free. The broken package is



linux-headers-3.2.0-33-generic-pae_3.2.0-33.52_i386.deb


which only takes up 11.3Mb on my hard drive.



I'm soooo lost.
I really hope there is something I'm missing here. I don't want to go about reformatting this bucket. It's really not worth the time.
Any help for fixing this would be hot.







apt updates






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 2 '17 at 21:58









karel

60.3k13130154




60.3k13130154










asked Nov 28 '12 at 18:25









escozulescozul

106117




106117












  • Could you post the output of this command? sudo parted /dev/sda print

    – MiJyn
    Nov 28 '12 at 18:28











  • of course. here it is: elina@AcerAspireONE:~$ sudo parted /dev/sda print [sudo] password for elina: Model: ATA SSDPAMM0008G1 (scsi) Disk /dev/sda: 8070MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 7546MB 7545MB primary ext4 boot 2 7547MB 8069MB 522MB extended 5 7547MB 8069MB 522MB logical linux-swap(v1)

    – escozul
    Nov 28 '12 at 22:18












  • Just I can't seem to be able to add line breaks... ??? I'm supposed to add 2 spaces at the end of each line to make the line break but no go? why?

    – escozul
    Nov 28 '12 at 22:21












  • possibly related: askubuntu.com/questions/195014/i-cant-update-my-ubuntu

    – David Cary
    Feb 5 '14 at 6:39











  • Not the same problem David. I have the solution below. The thing was with the inodes. Read my answer below.

    – escozul
    Feb 5 '14 at 12:22

















  • Could you post the output of this command? sudo parted /dev/sda print

    – MiJyn
    Nov 28 '12 at 18:28











  • of course. here it is: elina@AcerAspireONE:~$ sudo parted /dev/sda print [sudo] password for elina: Model: ATA SSDPAMM0008G1 (scsi) Disk /dev/sda: 8070MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 7546MB 7545MB primary ext4 boot 2 7547MB 8069MB 522MB extended 5 7547MB 8069MB 522MB logical linux-swap(v1)

    – escozul
    Nov 28 '12 at 22:18












  • Just I can't seem to be able to add line breaks... ??? I'm supposed to add 2 spaces at the end of each line to make the line break but no go? why?

    – escozul
    Nov 28 '12 at 22:21












  • possibly related: askubuntu.com/questions/195014/i-cant-update-my-ubuntu

    – David Cary
    Feb 5 '14 at 6:39











  • Not the same problem David. I have the solution below. The thing was with the inodes. Read my answer below.

    – escozul
    Feb 5 '14 at 12:22
















Could you post the output of this command? sudo parted /dev/sda print

– MiJyn
Nov 28 '12 at 18:28





Could you post the output of this command? sudo parted /dev/sda print

– MiJyn
Nov 28 '12 at 18:28













of course. here it is: elina@AcerAspireONE:~$ sudo parted /dev/sda print [sudo] password for elina: Model: ATA SSDPAMM0008G1 (scsi) Disk /dev/sda: 8070MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 7546MB 7545MB primary ext4 boot 2 7547MB 8069MB 522MB extended 5 7547MB 8069MB 522MB logical linux-swap(v1)

– escozul
Nov 28 '12 at 22:18






of course. here it is: elina@AcerAspireONE:~$ sudo parted /dev/sda print [sudo] password for elina: Model: ATA SSDPAMM0008G1 (scsi) Disk /dev/sda: 8070MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 7546MB 7545MB primary ext4 boot 2 7547MB 8069MB 522MB extended 5 7547MB 8069MB 522MB logical linux-swap(v1)

– escozul
Nov 28 '12 at 22:18














Just I can't seem to be able to add line breaks... ??? I'm supposed to add 2 spaces at the end of each line to make the line break but no go? why?

– escozul
Nov 28 '12 at 22:21






Just I can't seem to be able to add line breaks... ??? I'm supposed to add 2 spaces at the end of each line to make the line break but no go? why?

– escozul
Nov 28 '12 at 22:21














possibly related: askubuntu.com/questions/195014/i-cant-update-my-ubuntu

– David Cary
Feb 5 '14 at 6:39





possibly related: askubuntu.com/questions/195014/i-cant-update-my-ubuntu

– David Cary
Feb 5 '14 at 6:39













Not the same problem David. I have the solution below. The thing was with the inodes. Read my answer below.

– escozul
Feb 5 '14 at 12:22





Not the same problem David. I have the solution below. The thing was with the inodes. Read my answer below.

– escozul
Feb 5 '14 at 12:22










5 Answers
5






active

oldest

votes


















6














I actually found the solution to my problems. It seemed that using root to launch nautilus caused all inodes to go up to 100%. Had to clean those up in the trashes of the root. So I did the following:



df -i


That gave me the following:



$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 460560 456125 4435 100% /
udev 60125 491 59634 1% /dev
tmpfs 61943 403 61540 1% /run
none 61943 3 61940 1% /run/lock
none 61943 8 61935 1% /run/shm


woops! inodes in use 100%? that means lots and lots of tiny files stored somewhere. Where?



I used the command:



sudo du -h /* | grep '[0-9]M'


That gave a huge list of files which seemed ok except the fact that the root trashes was full of files in:



/root/.local/share/Trash/files/


So I ran:



sudo rm -r /root/.local/share/Trash/files/


and:



sudo touch /forcefsck


and then restarting to let the last command do its thing.



After that, running:



df -i
and df -Th


produced the following:



$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 460560 196674 263886 43% /
udev 60125 487 59638 1% /dev
tmpfs 61943 393 61550 1% /run
none 61943 3 61940 1% /run/lock
none 61943 8 61935 1% /run/shm

$ df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda1 ext4 7,0G 4,7G 2,0G 71% /
udev devtmpfs 235M 4,0K 235M 1% /dev
tmpfs tmpfs 97M 816K 96M 1% /run
none tmpfs 5,0M 0 5,0M 0% /run/lock
none tmpfs 242M 356K 242M 1% /run/shm


iNodes were back to normal and I actually saw a slight increase in disk space (from 1,1 to 2,0 Gb) That made the system very fast too so there was a positive side effect to fixing the issue since my computer now seems to be lightning fast!



I want to note that if you suffer from the same issue, any folder in your system might hold those tiny files that fill up your inodes. Carefully examining the list that is created using:



sudo du -h /* | grep '[0-9]M'


will help you find which folder needs correction.






share|improve this answer

























  • Problem occurring also with kernel 3.13.0.108.116. This post has been useful to frame quickly that the problem were the linux headers inside /usr/src. There were some 50 versions stored. Already after removing one old version the inode usage went down to 99%. Other answers in this threads were useful too.

    – XavierStuvw
    Feb 5 '17 at 16:43



















4














I had the same error while installing wine with update manager, and the only thing that helped was removing all my packages with rm /var/lib/apt/lists* -vf



sudo rm /var/lib/apt/lists/* -vf


It removed my packages, then I launched Software Center.
It said that it had broken packages, so I chose to repair them.
It downloaded the necessary packages.
After it everything went well.






share|improve this answer

























  • seems that the same error can be produced by a number of ways. In my case the solution was slightly different and I've added it below.

    – escozul
    Nov 30 '12 at 16:21


















3














I found the same problem recently but the culprit was Ubuntu itself. Due to the way it "does not" handles "rotation".



Previous versions of the linux-headers-generic package as well as the linux-images packages never got removed. If it was the last two or three no problem, but there were almost 20 versions of the kernel and kernel headers. the linux-headers package has a huge number of files, which eats up all your i-nodes. With removing all but the last tree kernels headers (previous linux-headers-generic-3.2.0-?) I went down from 100% i-nodes used to 45% used.



At first I didn't know what was causing the problem but after reading about your case I checked my i-nodes count and was a 100% full, well in practice like 200 free inodes from almost 700.000.



Just removing the previous linux-headers packages does the trick. Synaptic makes it easier with the GUI + search feature and order feature.



I write this also as a help to people encountering this problem recently.






share|improve this answer























  • In my case there were some 50 versions of kernel version 3.13.0. udev -rv told me that I was running on 3.10.13-108, which was also the one listed as broken package (worryingly). Therefore I kept the versions 10* and 9* to stay on the side of caution. The inode usage has fallen from 100% to 41%

    – XavierStuvw
    Feb 5 '17 at 16:51



















3














All these answers didn't help me. But I found this page, and using the ideas there I could bring my inode count down from 100% to about 50% quickly: http://www.pkdavies.co.uk/142-dpkg-no-space-left-on-device.html



The idea is, basically to locate the folders which are eating up inodes.



In a terminal, cd to root to start:



# cd /


Then search for the folders eating up most inodes:



# for i in `ls -1A`; do echo "`find $i | sort -u | wc -l` $i"; done | sort -rn | head -20


That will give you a list of folders.
Follow the above steps again to cd into the folder with the highest count of inodes, and run the search command again.



I found lots of unused and uninstalled kernels which still took up space and inodes in the kernel sources folders, for example under /usr/src/linux-headers-*.



BEWARE, DO NOT REMOVE THE SOURCES FOR THE INSTALLED KERNEL --- CHECK OUT WITH uname -rv WHICH ONE THAT IS



Therefore, after I found the folders, I removed the obsolete directories one at a time, for example with



root@gamma:/usr/src# sudo rm -rf linux-headers-3.2.0-30


After this I could run this successfully to repair my system:



# apt-get -f install


Hope this helps.






share|improve this answer

























  • Identify the current kernel release and version with uname -rv. This will be the one to stay well clear of when deleting the directories of old versions. Handle with care.

    – XavierStuvw
    Feb 5 '17 at 16:47



















0














you may want to use time shift to revert back to a previous state. I found this video , maybe this can help?






share|improve this answer








New contributor




Alexander Victor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f223143%2fbroken-package-after-update-linux-headers-error-brokencount-0%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    5 Answers
    5






    active

    oldest

    votes








    5 Answers
    5






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    I actually found the solution to my problems. It seemed that using root to launch nautilus caused all inodes to go up to 100%. Had to clean those up in the trashes of the root. So I did the following:



    df -i


    That gave me the following:



    $ df -i
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/sda1 460560 456125 4435 100% /
    udev 60125 491 59634 1% /dev
    tmpfs 61943 403 61540 1% /run
    none 61943 3 61940 1% /run/lock
    none 61943 8 61935 1% /run/shm


    woops! inodes in use 100%? that means lots and lots of tiny files stored somewhere. Where?



    I used the command:



    sudo du -h /* | grep '[0-9]M'


    That gave a huge list of files which seemed ok except the fact that the root trashes was full of files in:



    /root/.local/share/Trash/files/


    So I ran:



    sudo rm -r /root/.local/share/Trash/files/


    and:



    sudo touch /forcefsck


    and then restarting to let the last command do its thing.



    After that, running:



    df -i
    and df -Th


    produced the following:



    $ df -i
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/sda1 460560 196674 263886 43% /
    udev 60125 487 59638 1% /dev
    tmpfs 61943 393 61550 1% /run
    none 61943 3 61940 1% /run/lock
    none 61943 8 61935 1% /run/shm

    $ df -Th
    Filesystem Type Size Used Avail Use% Mounted on
    /dev/sda1 ext4 7,0G 4,7G 2,0G 71% /
    udev devtmpfs 235M 4,0K 235M 1% /dev
    tmpfs tmpfs 97M 816K 96M 1% /run
    none tmpfs 5,0M 0 5,0M 0% /run/lock
    none tmpfs 242M 356K 242M 1% /run/shm


    iNodes were back to normal and I actually saw a slight increase in disk space (from 1,1 to 2,0 Gb) That made the system very fast too so there was a positive side effect to fixing the issue since my computer now seems to be lightning fast!



    I want to note that if you suffer from the same issue, any folder in your system might hold those tiny files that fill up your inodes. Carefully examining the list that is created using:



    sudo du -h /* | grep '[0-9]M'


    will help you find which folder needs correction.






    share|improve this answer

























    • Problem occurring also with kernel 3.13.0.108.116. This post has been useful to frame quickly that the problem were the linux headers inside /usr/src. There were some 50 versions stored. Already after removing one old version the inode usage went down to 99%. Other answers in this threads were useful too.

      – XavierStuvw
      Feb 5 '17 at 16:43
















    6














    I actually found the solution to my problems. It seemed that using root to launch nautilus caused all inodes to go up to 100%. Had to clean those up in the trashes of the root. So I did the following:



    df -i


    That gave me the following:



    $ df -i
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/sda1 460560 456125 4435 100% /
    udev 60125 491 59634 1% /dev
    tmpfs 61943 403 61540 1% /run
    none 61943 3 61940 1% /run/lock
    none 61943 8 61935 1% /run/shm


    woops! inodes in use 100%? that means lots and lots of tiny files stored somewhere. Where?



    I used the command:



    sudo du -h /* | grep '[0-9]M'


    That gave a huge list of files which seemed ok except the fact that the root trashes was full of files in:



    /root/.local/share/Trash/files/


    So I ran:



    sudo rm -r /root/.local/share/Trash/files/


    and:



    sudo touch /forcefsck


    and then restarting to let the last command do its thing.



    After that, running:



    df -i
    and df -Th


    produced the following:



    $ df -i
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/sda1 460560 196674 263886 43% /
    udev 60125 487 59638 1% /dev
    tmpfs 61943 393 61550 1% /run
    none 61943 3 61940 1% /run/lock
    none 61943 8 61935 1% /run/shm

    $ df -Th
    Filesystem Type Size Used Avail Use% Mounted on
    /dev/sda1 ext4 7,0G 4,7G 2,0G 71% /
    udev devtmpfs 235M 4,0K 235M 1% /dev
    tmpfs tmpfs 97M 816K 96M 1% /run
    none tmpfs 5,0M 0 5,0M 0% /run/lock
    none tmpfs 242M 356K 242M 1% /run/shm


    iNodes were back to normal and I actually saw a slight increase in disk space (from 1,1 to 2,0 Gb) That made the system very fast too so there was a positive side effect to fixing the issue since my computer now seems to be lightning fast!



    I want to note that if you suffer from the same issue, any folder in your system might hold those tiny files that fill up your inodes. Carefully examining the list that is created using:



    sudo du -h /* | grep '[0-9]M'


    will help you find which folder needs correction.






    share|improve this answer

























    • Problem occurring also with kernel 3.13.0.108.116. This post has been useful to frame quickly that the problem were the linux headers inside /usr/src. There were some 50 versions stored. Already after removing one old version the inode usage went down to 99%. Other answers in this threads were useful too.

      – XavierStuvw
      Feb 5 '17 at 16:43














    6












    6








    6







    I actually found the solution to my problems. It seemed that using root to launch nautilus caused all inodes to go up to 100%. Had to clean those up in the trashes of the root. So I did the following:



    df -i


    That gave me the following:



    $ df -i
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/sda1 460560 456125 4435 100% /
    udev 60125 491 59634 1% /dev
    tmpfs 61943 403 61540 1% /run
    none 61943 3 61940 1% /run/lock
    none 61943 8 61935 1% /run/shm


    woops! inodes in use 100%? that means lots and lots of tiny files stored somewhere. Where?



    I used the command:



    sudo du -h /* | grep '[0-9]M'


    That gave a huge list of files which seemed ok except the fact that the root trashes was full of files in:



    /root/.local/share/Trash/files/


    So I ran:



    sudo rm -r /root/.local/share/Trash/files/


    and:



    sudo touch /forcefsck


    and then restarting to let the last command do its thing.



    After that, running:



    df -i
    and df -Th


    produced the following:



    $ df -i
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/sda1 460560 196674 263886 43% /
    udev 60125 487 59638 1% /dev
    tmpfs 61943 393 61550 1% /run
    none 61943 3 61940 1% /run/lock
    none 61943 8 61935 1% /run/shm

    $ df -Th
    Filesystem Type Size Used Avail Use% Mounted on
    /dev/sda1 ext4 7,0G 4,7G 2,0G 71% /
    udev devtmpfs 235M 4,0K 235M 1% /dev
    tmpfs tmpfs 97M 816K 96M 1% /run
    none tmpfs 5,0M 0 5,0M 0% /run/lock
    none tmpfs 242M 356K 242M 1% /run/shm


    iNodes were back to normal and I actually saw a slight increase in disk space (from 1,1 to 2,0 Gb) That made the system very fast too so there was a positive side effect to fixing the issue since my computer now seems to be lightning fast!



    I want to note that if you suffer from the same issue, any folder in your system might hold those tiny files that fill up your inodes. Carefully examining the list that is created using:



    sudo du -h /* | grep '[0-9]M'


    will help you find which folder needs correction.






    share|improve this answer















    I actually found the solution to my problems. It seemed that using root to launch nautilus caused all inodes to go up to 100%. Had to clean those up in the trashes of the root. So I did the following:



    df -i


    That gave me the following:



    $ df -i
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/sda1 460560 456125 4435 100% /
    udev 60125 491 59634 1% /dev
    tmpfs 61943 403 61540 1% /run
    none 61943 3 61940 1% /run/lock
    none 61943 8 61935 1% /run/shm


    woops! inodes in use 100%? that means lots and lots of tiny files stored somewhere. Where?



    I used the command:



    sudo du -h /* | grep '[0-9]M'


    That gave a huge list of files which seemed ok except the fact that the root trashes was full of files in:



    /root/.local/share/Trash/files/


    So I ran:



    sudo rm -r /root/.local/share/Trash/files/


    and:



    sudo touch /forcefsck


    and then restarting to let the last command do its thing.



    After that, running:



    df -i
    and df -Th


    produced the following:



    $ df -i
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/sda1 460560 196674 263886 43% /
    udev 60125 487 59638 1% /dev
    tmpfs 61943 393 61550 1% /run
    none 61943 3 61940 1% /run/lock
    none 61943 8 61935 1% /run/shm

    $ df -Th
    Filesystem Type Size Used Avail Use% Mounted on
    /dev/sda1 ext4 7,0G 4,7G 2,0G 71% /
    udev devtmpfs 235M 4,0K 235M 1% /dev
    tmpfs tmpfs 97M 816K 96M 1% /run
    none tmpfs 5,0M 0 5,0M 0% /run/lock
    none tmpfs 242M 356K 242M 1% /run/shm


    iNodes were back to normal and I actually saw a slight increase in disk space (from 1,1 to 2,0 Gb) That made the system very fast too so there was a positive side effect to fixing the issue since my computer now seems to be lightning fast!



    I want to note that if you suffer from the same issue, any folder in your system might hold those tiny files that fill up your inodes. Carefully examining the list that is created using:



    sudo du -h /* | grep '[0-9]M'


    will help you find which folder needs correction.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 25 '17 at 7:46









    Zanna

    51k13138242




    51k13138242










    answered Nov 30 '12 at 16:18









    escozulescozul

    106117




    106117












    • Problem occurring also with kernel 3.13.0.108.116. This post has been useful to frame quickly that the problem were the linux headers inside /usr/src. There were some 50 versions stored. Already after removing one old version the inode usage went down to 99%. Other answers in this threads were useful too.

      – XavierStuvw
      Feb 5 '17 at 16:43


















    • Problem occurring also with kernel 3.13.0.108.116. This post has been useful to frame quickly that the problem were the linux headers inside /usr/src. There were some 50 versions stored. Already after removing one old version the inode usage went down to 99%. Other answers in this threads were useful too.

      – XavierStuvw
      Feb 5 '17 at 16:43

















    Problem occurring also with kernel 3.13.0.108.116. This post has been useful to frame quickly that the problem were the linux headers inside /usr/src. There were some 50 versions stored. Already after removing one old version the inode usage went down to 99%. Other answers in this threads were useful too.

    – XavierStuvw
    Feb 5 '17 at 16:43






    Problem occurring also with kernel 3.13.0.108.116. This post has been useful to frame quickly that the problem were the linux headers inside /usr/src. There were some 50 versions stored. Already after removing one old version the inode usage went down to 99%. Other answers in this threads were useful too.

    – XavierStuvw
    Feb 5 '17 at 16:43














    4














    I had the same error while installing wine with update manager, and the only thing that helped was removing all my packages with rm /var/lib/apt/lists* -vf



    sudo rm /var/lib/apt/lists/* -vf


    It removed my packages, then I launched Software Center.
    It said that it had broken packages, so I chose to repair them.
    It downloaded the necessary packages.
    After it everything went well.






    share|improve this answer

























    • seems that the same error can be produced by a number of ways. In my case the solution was slightly different and I've added it below.

      – escozul
      Nov 30 '12 at 16:21















    4














    I had the same error while installing wine with update manager, and the only thing that helped was removing all my packages with rm /var/lib/apt/lists* -vf



    sudo rm /var/lib/apt/lists/* -vf


    It removed my packages, then I launched Software Center.
    It said that it had broken packages, so I chose to repair them.
    It downloaded the necessary packages.
    After it everything went well.






    share|improve this answer

























    • seems that the same error can be produced by a number of ways. In my case the solution was slightly different and I've added it below.

      – escozul
      Nov 30 '12 at 16:21













    4












    4








    4







    I had the same error while installing wine with update manager, and the only thing that helped was removing all my packages with rm /var/lib/apt/lists* -vf



    sudo rm /var/lib/apt/lists/* -vf


    It removed my packages, then I launched Software Center.
    It said that it had broken packages, so I chose to repair them.
    It downloaded the necessary packages.
    After it everything went well.






    share|improve this answer















    I had the same error while installing wine with update manager, and the only thing that helped was removing all my packages with rm /var/lib/apt/lists* -vf



    sudo rm /var/lib/apt/lists/* -vf


    It removed my packages, then I launched Software Center.
    It said that it had broken packages, so I chose to repair them.
    It downloaded the necessary packages.
    After it everything went well.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 1 '12 at 14:59









    devav2

    25.2k127179




    25.2k127179










    answered Nov 30 '12 at 12:42









    user111729user111729

    411




    411












    • seems that the same error can be produced by a number of ways. In my case the solution was slightly different and I've added it below.

      – escozul
      Nov 30 '12 at 16:21

















    • seems that the same error can be produced by a number of ways. In my case the solution was slightly different and I've added it below.

      – escozul
      Nov 30 '12 at 16:21
















    seems that the same error can be produced by a number of ways. In my case the solution was slightly different and I've added it below.

    – escozul
    Nov 30 '12 at 16:21





    seems that the same error can be produced by a number of ways. In my case the solution was slightly different and I've added it below.

    – escozul
    Nov 30 '12 at 16:21











    3














    I found the same problem recently but the culprit was Ubuntu itself. Due to the way it "does not" handles "rotation".



    Previous versions of the linux-headers-generic package as well as the linux-images packages never got removed. If it was the last two or three no problem, but there were almost 20 versions of the kernel and kernel headers. the linux-headers package has a huge number of files, which eats up all your i-nodes. With removing all but the last tree kernels headers (previous linux-headers-generic-3.2.0-?) I went down from 100% i-nodes used to 45% used.



    At first I didn't know what was causing the problem but after reading about your case I checked my i-nodes count and was a 100% full, well in practice like 200 free inodes from almost 700.000.



    Just removing the previous linux-headers packages does the trick. Synaptic makes it easier with the GUI + search feature and order feature.



    I write this also as a help to people encountering this problem recently.






    share|improve this answer























    • In my case there were some 50 versions of kernel version 3.13.0. udev -rv told me that I was running on 3.10.13-108, which was also the one listed as broken package (worryingly). Therefore I kept the versions 10* and 9* to stay on the side of caution. The inode usage has fallen from 100% to 41%

      – XavierStuvw
      Feb 5 '17 at 16:51
















    3














    I found the same problem recently but the culprit was Ubuntu itself. Due to the way it "does not" handles "rotation".



    Previous versions of the linux-headers-generic package as well as the linux-images packages never got removed. If it was the last two or three no problem, but there were almost 20 versions of the kernel and kernel headers. the linux-headers package has a huge number of files, which eats up all your i-nodes. With removing all but the last tree kernels headers (previous linux-headers-generic-3.2.0-?) I went down from 100% i-nodes used to 45% used.



    At first I didn't know what was causing the problem but after reading about your case I checked my i-nodes count and was a 100% full, well in practice like 200 free inodes from almost 700.000.



    Just removing the previous linux-headers packages does the trick. Synaptic makes it easier with the GUI + search feature and order feature.



    I write this also as a help to people encountering this problem recently.






    share|improve this answer























    • In my case there were some 50 versions of kernel version 3.13.0. udev -rv told me that I was running on 3.10.13-108, which was also the one listed as broken package (worryingly). Therefore I kept the versions 10* and 9* to stay on the side of caution. The inode usage has fallen from 100% to 41%

      – XavierStuvw
      Feb 5 '17 at 16:51














    3












    3








    3







    I found the same problem recently but the culprit was Ubuntu itself. Due to the way it "does not" handles "rotation".



    Previous versions of the linux-headers-generic package as well as the linux-images packages never got removed. If it was the last two or three no problem, but there were almost 20 versions of the kernel and kernel headers. the linux-headers package has a huge number of files, which eats up all your i-nodes. With removing all but the last tree kernels headers (previous linux-headers-generic-3.2.0-?) I went down from 100% i-nodes used to 45% used.



    At first I didn't know what was causing the problem but after reading about your case I checked my i-nodes count and was a 100% full, well in practice like 200 free inodes from almost 700.000.



    Just removing the previous linux-headers packages does the trick. Synaptic makes it easier with the GUI + search feature and order feature.



    I write this also as a help to people encountering this problem recently.






    share|improve this answer













    I found the same problem recently but the culprit was Ubuntu itself. Due to the way it "does not" handles "rotation".



    Previous versions of the linux-headers-generic package as well as the linux-images packages never got removed. If it was the last two or three no problem, but there were almost 20 versions of the kernel and kernel headers. the linux-headers package has a huge number of files, which eats up all your i-nodes. With removing all but the last tree kernels headers (previous linux-headers-generic-3.2.0-?) I went down from 100% i-nodes used to 45% used.



    At first I didn't know what was causing the problem but after reading about your case I checked my i-nodes count and was a 100% full, well in practice like 200 free inodes from almost 700.000.



    Just removing the previous linux-headers packages does the trick. Synaptic makes it easier with the GUI + search feature and order feature.



    I write this also as a help to people encountering this problem recently.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jul 26 '13 at 16:37









    RedCometRedComet

    1312




    1312












    • In my case there were some 50 versions of kernel version 3.13.0. udev -rv told me that I was running on 3.10.13-108, which was also the one listed as broken package (worryingly). Therefore I kept the versions 10* and 9* to stay on the side of caution. The inode usage has fallen from 100% to 41%

      – XavierStuvw
      Feb 5 '17 at 16:51


















    • In my case there were some 50 versions of kernel version 3.13.0. udev -rv told me that I was running on 3.10.13-108, which was also the one listed as broken package (worryingly). Therefore I kept the versions 10* and 9* to stay on the side of caution. The inode usage has fallen from 100% to 41%

      – XavierStuvw
      Feb 5 '17 at 16:51

















    In my case there were some 50 versions of kernel version 3.13.0. udev -rv told me that I was running on 3.10.13-108, which was also the one listed as broken package (worryingly). Therefore I kept the versions 10* and 9* to stay on the side of caution. The inode usage has fallen from 100% to 41%

    – XavierStuvw
    Feb 5 '17 at 16:51






    In my case there were some 50 versions of kernel version 3.13.0. udev -rv told me that I was running on 3.10.13-108, which was also the one listed as broken package (worryingly). Therefore I kept the versions 10* and 9* to stay on the side of caution. The inode usage has fallen from 100% to 41%

    – XavierStuvw
    Feb 5 '17 at 16:51












    3














    All these answers didn't help me. But I found this page, and using the ideas there I could bring my inode count down from 100% to about 50% quickly: http://www.pkdavies.co.uk/142-dpkg-no-space-left-on-device.html



    The idea is, basically to locate the folders which are eating up inodes.



    In a terminal, cd to root to start:



    # cd /


    Then search for the folders eating up most inodes:



    # for i in `ls -1A`; do echo "`find $i | sort -u | wc -l` $i"; done | sort -rn | head -20


    That will give you a list of folders.
    Follow the above steps again to cd into the folder with the highest count of inodes, and run the search command again.



    I found lots of unused and uninstalled kernels which still took up space and inodes in the kernel sources folders, for example under /usr/src/linux-headers-*.



    BEWARE, DO NOT REMOVE THE SOURCES FOR THE INSTALLED KERNEL --- CHECK OUT WITH uname -rv WHICH ONE THAT IS



    Therefore, after I found the folders, I removed the obsolete directories one at a time, for example with



    root@gamma:/usr/src# sudo rm -rf linux-headers-3.2.0-30


    After this I could run this successfully to repair my system:



    # apt-get -f install


    Hope this helps.






    share|improve this answer

























    • Identify the current kernel release and version with uname -rv. This will be the one to stay well clear of when deleting the directories of old versions. Handle with care.

      – XavierStuvw
      Feb 5 '17 at 16:47
















    3














    All these answers didn't help me. But I found this page, and using the ideas there I could bring my inode count down from 100% to about 50% quickly: http://www.pkdavies.co.uk/142-dpkg-no-space-left-on-device.html



    The idea is, basically to locate the folders which are eating up inodes.



    In a terminal, cd to root to start:



    # cd /


    Then search for the folders eating up most inodes:



    # for i in `ls -1A`; do echo "`find $i | sort -u | wc -l` $i"; done | sort -rn | head -20


    That will give you a list of folders.
    Follow the above steps again to cd into the folder with the highest count of inodes, and run the search command again.



    I found lots of unused and uninstalled kernels which still took up space and inodes in the kernel sources folders, for example under /usr/src/linux-headers-*.



    BEWARE, DO NOT REMOVE THE SOURCES FOR THE INSTALLED KERNEL --- CHECK OUT WITH uname -rv WHICH ONE THAT IS



    Therefore, after I found the folders, I removed the obsolete directories one at a time, for example with



    root@gamma:/usr/src# sudo rm -rf linux-headers-3.2.0-30


    After this I could run this successfully to repair my system:



    # apt-get -f install


    Hope this helps.






    share|improve this answer

























    • Identify the current kernel release and version with uname -rv. This will be the one to stay well clear of when deleting the directories of old versions. Handle with care.

      – XavierStuvw
      Feb 5 '17 at 16:47














    3












    3








    3







    All these answers didn't help me. But I found this page, and using the ideas there I could bring my inode count down from 100% to about 50% quickly: http://www.pkdavies.co.uk/142-dpkg-no-space-left-on-device.html



    The idea is, basically to locate the folders which are eating up inodes.



    In a terminal, cd to root to start:



    # cd /


    Then search for the folders eating up most inodes:



    # for i in `ls -1A`; do echo "`find $i | sort -u | wc -l` $i"; done | sort -rn | head -20


    That will give you a list of folders.
    Follow the above steps again to cd into the folder with the highest count of inodes, and run the search command again.



    I found lots of unused and uninstalled kernels which still took up space and inodes in the kernel sources folders, for example under /usr/src/linux-headers-*.



    BEWARE, DO NOT REMOVE THE SOURCES FOR THE INSTALLED KERNEL --- CHECK OUT WITH uname -rv WHICH ONE THAT IS



    Therefore, after I found the folders, I removed the obsolete directories one at a time, for example with



    root@gamma:/usr/src# sudo rm -rf linux-headers-3.2.0-30


    After this I could run this successfully to repair my system:



    # apt-get -f install


    Hope this helps.






    share|improve this answer















    All these answers didn't help me. But I found this page, and using the ideas there I could bring my inode count down from 100% to about 50% quickly: http://www.pkdavies.co.uk/142-dpkg-no-space-left-on-device.html



    The idea is, basically to locate the folders which are eating up inodes.



    In a terminal, cd to root to start:



    # cd /


    Then search for the folders eating up most inodes:



    # for i in `ls -1A`; do echo "`find $i | sort -u | wc -l` $i"; done | sort -rn | head -20


    That will give you a list of folders.
    Follow the above steps again to cd into the folder with the highest count of inodes, and run the search command again.



    I found lots of unused and uninstalled kernels which still took up space and inodes in the kernel sources folders, for example under /usr/src/linux-headers-*.



    BEWARE, DO NOT REMOVE THE SOURCES FOR THE INSTALLED KERNEL --- CHECK OUT WITH uname -rv WHICH ONE THAT IS



    Therefore, after I found the folders, I removed the obsolete directories one at a time, for example with



    root@gamma:/usr/src# sudo rm -rf linux-headers-3.2.0-30


    After this I could run this successfully to repair my system:



    # apt-get -f install


    Hope this helps.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Feb 5 '17 at 17:24









    XavierStuvw

    517422




    517422










    answered Nov 30 '14 at 15:31









    woohoowoohoo

    1838




    1838












    • Identify the current kernel release and version with uname -rv. This will be the one to stay well clear of when deleting the directories of old versions. Handle with care.

      – XavierStuvw
      Feb 5 '17 at 16:47


















    • Identify the current kernel release and version with uname -rv. This will be the one to stay well clear of when deleting the directories of old versions. Handle with care.

      – XavierStuvw
      Feb 5 '17 at 16:47

















    Identify the current kernel release and version with uname -rv. This will be the one to stay well clear of when deleting the directories of old versions. Handle with care.

    – XavierStuvw
    Feb 5 '17 at 16:47






    Identify the current kernel release and version with uname -rv. This will be the one to stay well clear of when deleting the directories of old versions. Handle with care.

    – XavierStuvw
    Feb 5 '17 at 16:47












    0














    you may want to use time shift to revert back to a previous state. I found this video , maybe this can help?






    share|improve this answer








    New contributor




    Alexander Victor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0














      you may want to use time shift to revert back to a previous state. I found this video , maybe this can help?






      share|improve this answer








      New contributor




      Alexander Victor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















        0












        0








        0







        you may want to use time shift to revert back to a previous state. I found this video , maybe this can help?






        share|improve this answer








        New contributor




        Alexander Victor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        you may want to use time shift to revert back to a previous state. I found this video , maybe this can help?







        share|improve this answer








        New contributor




        Alexander Victor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Alexander Victor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 15 mins ago









        Alexander VictorAlexander Victor

        1




        1




        New contributor




        Alexander Victor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Alexander Victor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Alexander Victor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f223143%2fbroken-package-after-update-linux-headers-error-brokencount-0%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

            Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

            Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»