I can't delete some files on root / boot

Asked by Toni Turnwald on 2014-02-22

Hello to all,
I've got major problems with my Diskspace on boot. There is nothing free there, but the rest of the hdd is fine. So I decided to erase some old files, here is the list
toni@toni-300E4C-300E5C-300E7C:/boot$ dir
abi-3.11.0-12-generic initrd.img-3.11.0-17-generic
abi-3.11.0-13-generic initrd.img-3.11.0-18-generic
abi-3.11.0-14-generic lost+found
abi-3.11.0-15-generic memtest86+.bin
abi-3.11.0-17-generic memtest86+_multiboot.bin
abi-3.11.0-18-generic System.map-3.11.0-12-generic
config-3.11.0-12-generic System.map-3.11.0-13-generic
config-3.11.0-13-generic System.map-3.11.0-14-generic
config-3.11.0-14-generic System.map-3.11.0-15-generic
config-3.11.0-15-generic System.map-3.11.0-17-generic
config-3.11.0-17-generic System.map-3.11.0-18-generic
config-3.11.0-18-generic vmlinuz-3.11.0-12-generic
grub vmlinuz-3.11.0-13-generic
initrd.img-3.11.0-12-generic vmlinuz-3.11.0-14-generic
initrd.img-3.11.0-13-generic vmlinuz-3.11.0-15-generic
initrd.img-3.11.0-14-generic vmlinuz-3.11.0-17-generic
initrd.img-3.11.0-15-generic vmlinuz-3.11.0-18-generic
toni@toni-300E4C-300E5C-300E7C:/boot$

so, you'll see some packages are really old, and 5 of them can be ereased, because they use 25 MB of disk storage, and on boot I've got only 250MB, and right now I can't install any new programs.
So, what must I do to get a)more disk space or b)to erease some programs, because I've got no right to do this, says the computer.
Please help me, and sorry for my language.

cheers Toni

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu initramfs-tools Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2014-02-22
Last query:
2014-02-22
Last reply:
2014-02-22

You remove those by uninstalling old kernels. You don't delete the files as this will break your packages. What is the output of:

lsb_release -a; uname -a; dpkg -l | grep linux-image

Thanks

Toni Turnwald (aturnwald-y) said : #2

Hello again,
here is my output, and by the way, can you write me the files that I can uninstall, please ? Because I didn't know so mutch of Linux

WARNING:root:python-html2text is not present. HTML pages will not be converted into text.
toni@toni-300E4C-300E5C-300E7C:~$
toni@toni-300E4C-300E5C-300E7C:~$
toni@toni-300E4C-300E5C-300E7C:~$ lsb_release -a; uname -a; dpkg -l | grep linux-image
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
Linux toni-300E4C-300E5C-300E7C 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
ii linux-image-3.11.0-12-generic 3.11.0-12.19 amd64 Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii linux-image-3.11.0-13-generic 3.11.0-13.20 amd64 Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii linux-image-3.11.0-14-generic 3.11.0-14.21 amd64 Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii linux-image-3.11.0-15-generic 3.11.0-15.25 amd64 Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii linux-image-3.11.0-17-generic 3.11.0-17.31 amd64 Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii linux-image-3.11.0-18-generic 3.11.0-18.32 amd64 Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii linux-image-extra-3.11.0-12-generic 3.11.0-12.19 amd64 Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
ii linux-image-extra-3.11.0-13-generic 3.11.0-13.20 amd64 Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
ii linux-image-extra-3.11.0-14-generic 3.11.0-14.21 amd64 Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
ii linux-image-extra-3.11.0-15-generic 3.11.0-15.25 amd64 Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
ii linux-image-extra-3.11.0-17-generic 3.11.0-17.31 amd64 Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
iF linux-image-extra-3.11.0-18-generic 3.11.0-18.32 amd64 Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
iU linux-image-generic 3.11.0.18.19 amd64 Generic Linux kernel image
toni@toni-300E4C-300E5C-300E7C:~$

that was all I've got. So see you soon, and many thanks
your Toni

sudo apt-get --purge remove linux-image-3.11.0-12-generic linux-image-3.11.0-13-generic linux-image-3.11.0-14-generic linux-image-3.11.0-15-generic

sudo apt-get --purge autoremove

sudo apt-get clean

Will clear it up for you and also clean up grub for you.

Toni Turnwald (aturnwald-y) said : #4

Hello, here is what I should do. I'll hope I did it right. So the Computer respond :

Thank you, If there was an error say it to me, please, your Toni

   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod.....

DKMS: uninstall completed.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-13-generic /boot/vmlinuz-3.11.0-13-generic
update-initramfs: Deleting /boot/initrd.img-3.11.0-13-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-13-generic /boot/vmlinuz-3.11.0-13-generic
grub.cfg wird erstellt …
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-18-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-18-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-17-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-17-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-15-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-15-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-14-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-14-generic
Found memtest86+ image: /memtest86+.bin
erledigt
Löschen der Konfigurationsdateien von linux-image-3.11.0-13-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-13-generic /boot/vmlinuz-3.11.0-13-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-13-generic /boot/vmlinuz-3.11.0-13-generic
Entfernen von linux-image-extra-3.11.0-14-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-14-generic /boot/vmlinuz-3.11.0-14-generic
update-initramfs: Deleting /boot/initrd.img-3.11.0-14-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-14-generic /boot/vmlinuz-3.11.0-14-generic
grub.cfg wird erstellt …
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-18-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-18-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-17-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-17-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-15-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-15-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-14-generic
Found memtest86+ image: /memtest86+.bin
erledigt
Löschen der Konfigurationsdateien von linux-image-extra-3.11.0-14-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-14-generic /boot/vmlinuz-3.11.0-14-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-14-generic /boot/vmlinuz-3.11.0-14-generic
Entfernen von linux-image-3.11.0-14-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 3.11.0-14-generic /boot/vmlinuz-3.11.0-14-generic
dkms: removing: ndiswrapper 1.58 (3.11.0-14-generic) (x86_64)

-------- Uninstall Beginning --------
Module: ndiswrapper
Version: 1.58
Kernel: 3.11.0-14-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

ndiswrapper.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-14-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod.......

DKMS: uninstall completed.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-14-generic /boot/vmlinuz-3.11.0-14-generic
update-initramfs: Deleting /boot/initrd.img-3.11.0-14-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-14-generic /boot/vmlinuz-3.11.0-14-generic
grub.cfg wird erstellt …
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-18-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-18-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-17-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-17-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-15-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-15-generic
Found memtest86+ image: /memtest86+.bin
erledigt
Löschen der Konfigurationsdateien von linux-image-3.11.0-14-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-14-generic /boot/vmlinuz-3.11.0-14-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-14-generic /boot/vmlinuz-3.11.0-14-generic
Entfernen von linux-image-extra-3.11.0-15-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-15-generic /boot/vmlinuz-3.11.0-15-generic
update-initramfs: Deleting /boot/initrd.img-3.11.0-15-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-15-generic /boot/vmlinuz-3.11.0-15-generic
grub.cfg wird erstellt …
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-18-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-18-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-17-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-17-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-15-generic
Found memtest86+ image: /memtest86+.bin
erledigt
Löschen der Konfigurationsdateien von linux-image-extra-3.11.0-15-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-15-generic /boot/vmlinuz-3.11.0-15-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-15-generic /boot/vmlinuz-3.11.0-15-generic
Entfernen von linux-image-3.11.0-15-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 3.11.0-15-generic /boot/vmlinuz-3.11.0-15-generic
dkms: removing: dahdi 2.5.0.1+dfsg-1ubuntu3 (3.11.0-15-generic) (x86_64)

-------- Uninstall Beginning --------
Module: dahdi
Version: 2.5.0.1+dfsg-1ubuntu3
Kernel: 3.11.0-15-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

dahdi_dummy.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_dynamic_eth.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_dynamic.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_dynamic_loc.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_echocan_jpah.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_echocan_kb1.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_echocan_mg2.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_echocan_sec2.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_echocan_sec.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_transcode.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

pciradio.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

tor2.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

wcb4xxp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

wcfxo.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

wct1xxp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

wct4xxp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

wctc4xxp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

wctdm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

wctdm24xxp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

wcte11xp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

wcte12xp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

xpd_fxo.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

xpd_fxs.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

xpd_pri.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

xpp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

xpp_usb.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

xpd_bri.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_voicebus.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

opvxa1200.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

wcopenpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_echocan_oslec.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

echo.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/
rmdir: konnte »“ nicht entfernen: Datei oder Verzeichnis nicht gefunden
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

zaphfc.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

dahdi_vpmadt032_loader.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

ap400.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

opvxd115.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod......

DKMS: uninstall completed.
dkms: removing: ndiswrapper 1.58 (3.11.0-15-generic) (x86_64)

-------- Uninstall Beginning --------
Module: ndiswrapper
Version: 1.58
Kernel: 3.11.0-15-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

ndiswrapper.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.11.0-15-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-15-generic /boot/vmlinuz-3.11.0-15-generic
update-initramfs: Deleting /boot/initrd.img-3.11.0-15-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-15-generic /boot/vmlinuz-3.11.0-15-generic
grub.cfg wird erstellt …
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-18-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-18-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-17-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-17-generic
Found memtest86+ image: /memtest86+.bin
erledigt
Löschen der Konfigurationsdateien von linux-image-3.11.0-15-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-15-generic /boot/vmlinuz-3.11.0-15-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-15-generic /boot/vmlinuz-3.11.0-15-generic
linux-image-extra-3.11.0-18-generic (3.11.0-18.32) wird eingerichtet ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.11.0-18-generic /boot/vmlinuz-3.11.0-18-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.11.0-18-generic /boot/vmlinuz-3.11.0-18-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.11.0-18-generic /boot/vmlinuz-3.11.0-18-generic
update-initramfs: Generating /boot/initrd.img-3.11.0-18-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.11.0-18-generic /boot/vmlinuz-3.11.0-18-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.11.0-18-generic /boot/vmlinuz-3.11.0-18-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.11.0-18-generic /boot/vmlinuz-3.11.0-18-generic
grub.cfg wird erstellt …
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-18-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-18-generic
Linux-Abbild gefunden: /boot/vmlinuz-3.11.0-17-generic
initrd-Abbild gefunden: /boot/initrd.img-3.11.0-17-generic
Found memtest86+ image: /memtest86+.bin
erledigt
linux-image-generic (3.11.0.18.19) wird eingerichtet ...
linux-generic (3.11.0.18.19) wird eingerichtet ...
toni@toni-300E4C-300E5C-300E7C:~$
toni@toni-300E4C-300E5C-300E7C:~$ sudo apt-get --purge autoremove
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete werden ENTFERNT:
  python-aptdaemon-gtk* python-aptdaemon.gtkwidgets*
0 aktualisiert, 0 neu installiert, 2 zu entfernen und 0 nicht aktualisiert.
Nach dieser Operation werden 161 kB Plattenplatz freigegeben.
Möchten Sie fortfahren [J/n]? j
(Lese Datenbank ... 731196 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von python-aptdaemon-gtk ...
Entfernen von python-aptdaemon.gtkwidgets ...
toni@toni-300E4C-300E5C-300E7C:~$
toni@toni-300E4C-300E5C-300E7C:~$ sudo apt-get clean
toni@toni-300E4C-300E5C-300E7C:~$

You will notice the files are fewer in /boot

You can also see the used space with:

df -h

If you have a separate /boot partition

Toni Turnwald (aturnwald-y) said : #6

Thanks actionparsnip, that solved my question.

CyborgAlpha (cyborg-alpha-nh4) said : #7

why "vmlinuz" and not "vmlinux" ?

ok - got it. Thanks ; I was wondering, I came across this as I was debugging a system after a failed upgrade to 3.11.0-18 . The upgrade produces several compile and config failures & errors . Your suggestion in comment # 3 clears this up.

iriatum (iriatum) said : #11

Phight suggests this article as an answer to your question:
FAQ #93: “Cant' use sudo: unable to resolve host ....”.

Fabian Luttman (fabian-n) said : #12

Hello,
I have a similar problem (not enough space in /boot to install new updates), but the solution offered here won't work for me.
Here is the output of lsb_release -a; uname -a; dpkg -l | grep linux-image:

fabian@XPS:~$ lsb_release -a; uname -a; dpkg -l | grep linux-image
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Linux XPS 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
rc linux-image-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc linux-image-3.13.0-27-generic 3.13.0-27.50 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc linux-image-3.13.0-29-generic 3.13.0-29.53 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc linux-image-3.13.0-30-generic 3.13.0-30.55 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc linux-image-3.13.0-32-generic 3.13.0-32.57 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-33-generic 3.13.0-33.58 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-34-generic 3.13.0-34.60 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-35-generic 3.13.0-35.62 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-36-generic 3.13.0-36.63 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-37-generic 3.13.0-37.64 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-39-generic 3.13.0-39.66 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc linux-image-extra-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc linux-image-extra-3.13.0-27-generic 3.13.0-27.50 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc linux-image-extra-3.13.0-29-generic 3.13.0-29.53 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc linux-image-extra-3.13.0-30-generic 3.13.0-30.55 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc linux-image-extra-3.13.0-32-generic 3.13.0-32.57 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-33-generic 3.13.0-33.58 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-34-generic 3.13.0-34.60 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-35-generic 3.13.0-35.62 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-36-generic 3.13.0-36.63 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-37-generic 3.13.0-37.64 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-39-generic 3.13.0-39.66 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-generic 3.13.0.39.46 amd64 Generic Linux kernel image

I have tried to remove one of the packages and this is what I get:

fabian@XPS:~$ sudo apt-get remove linux-image-3.13.0-24-generic
[sudo] password for fabian:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'linux-image-3.13.0-24-generic' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.

Any help will be appreciated!

Thanks,
Fabian

sudo dpkg -P linux-image-3.13.0-24-generic linux-image-3.13.0-27-generic linux-image-3.13.0-29-generic

sudo dpkg -P linux-image-3.13.0-30-generic linux-image-3.13.0-32-generic

sudo dpkg -P linux-image-extra-3.13.0-24-generic linux-image-extra-3.13.0-27-generic

sudo dpkg -P linux-image-extra-3.13.0-29-generic inux-image-extra-3.13.0-30-generic inux-image-extra-3.13.0-32-generic

Will clean that lot up.

Fabian Luttman (fabian-n) said : #14

Thank you actionsparsnip!

That gave me the extra space needed to install the latest updates!

Thank you for responding so quickly!

:)

Fabian