Every time I use sudo apt-get upgrade, I get errors with the linux-image-extra and linux-image-generic.

I am new to Ubuntu so I would like to know if these "image" files are the same as in Windows?

What is the problem with my system if these image files can not be upgraded?

Output from df -h

Filesystem                   Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root  291G   16G  261G   6% /
none                         4,0K     0  4,0K   0% /sys/fs/cgroup
udev                         1,4G  4,0K  1,4G   1% /dev
tmpfs                        288M  1,2M  287M   1% /run
none                         5,0M     0  5,0M   0% /run/lock
none                         1,5G  216K  1,5G   1% /run/shm
none                         100M   64K  100M   1% /run/user
/dev/sda1                    236M  208M   16M  94% /boot
/home/mama/.Private          291G   16G  261G   6% /home/mama

Link to paste.ubuntu.com: error message.

  • I use sudo apt-get dist-upgrade and the error message – Giulo Figlio May 8 '15 at 20:18
  • the error message seems to be too long to upload here. part of it would be gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-3.13.0-52-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-52-generic.postinst line 1025. dpkg: error processing package linux-image-3.13.0-52-generic(--configure): subprocess installed post-installation script returned error exit status 2 – Giulo Figlio May 8 '15 at 20:36
  • The Windows NT kernel is used in all Windows NT systems (including Windows 2000, XP, Vista, 7, 8, 8.1 and 10). Windows does not use the Linux kernel, so linux-image-extra and linux-image-generic are not included in Windows. – karel May 9 '15 at 4:03

Although you have to include more details into your question, I will try and guess what your problem is:
Your problem was caused by something different, but I leave this answer as it could eventually help others who might read this post.

I assume you run sudo apt-get upgrade and it tells you it did not install/upgrade the packages linux-image-extra and linux-image-generic.

First of all, those packages are representing the latest kernel available for your system (in easy words). By installing/upgrading them, you install a new kernel version which will be used after the next reboot.

As these kernel updates are major updates and usually need additional dependencies etc. to be taken care of, the normal apt-get upgrade cannot handle them. You need the advanced upgrade command sudo apt-get dist-upgrade to proceed. This should do the kernel update and the warning about not-upgraded packages should disappear.

In your case the error was caused by the lack of enough free space in your /boot partition, which is the place where new kernels get installed. Therefore your question was marked as duplicate of How do I free up more space in /boot?, because you will find detailed answers there on how to solve your problem.

| improve this answer | |
  • If this solves your problem, don't hesitate to accept this as a valid answer by clicking on the tick symbol left to it. If I did not guess on your problem correctly, please leave me a comment after editing your question to clarify what you meant (which you should do in any case!). Thank you! – ByteBOT May 8 '15 at 20:16
  • It appears the OP is already using the dist-upgrade action. Also, while sudo apt-get upgrade often will not upgrade kernel metapackages (because this usually pulls in wholly new kernel packages as dependencies), running it in that situation doesn't really produce an error. (It does give a message about there being packages that are held back, which I suppose one might interpret as an error.) – Eliah Kagan May 8 '15 at 20:27
  • @ByteBOT simply to check detailed info on a package run `apt-cache show linux-image-extra-uname -r (uname -r in upper comas (``)) – JoKeR May 8 '15 at 20:39
  • link to text error message paste.ubuntu.com/11031801/plain – Giulo Figlio May 8 '15 at 20:48
  • Giulio: Please remove the /plain from your link! With that, it does not direct to the correct site without having to log into Ubuntu One... Correct is: http://paste.ubuntu.com/11031801/ which appears as paste.ubuntu.com/11031801 – ByteBOT May 8 '15 at 21:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.