Ubuntu 14.10 – Free space in/boot to update the kernel

Today suddenly appeared a pop-up window on my desktop, informing me of the availability of the new Kernel of Linux, and offering me to upgrade to the new version “Linux-image-extra-3.13.0-39-generic“.Screenshot of 2014-10-30 03:21:21To accept the update, the system I warned that the partition assigned to the directory /boot the day that I installed the operating system, There was not enough space, so I have not been able to update without first making a few adjustments.

Screenshot of 2014-10-30 03:20:53With the following order of BASH, We are going to list the Kernel installed on the system at present.

usuario@maquina:~$ dpkg --get-selections | grep linux-image 
linux-image-3.13.0-35-generic	                install
linux-image-3.13.0-36-generic	                install
linux-image-3.13.0-37-generic	                install
linux-image-extra-3.13.0-24-generic		deinstall
linux-image-extra-3.13.0-27-generic		deinstall
linux-image-extra-3.13.0-35-generic             install
linux-image-extra-3.13.0-36-generic             install
linux-image-extra-3.13.0-37-generic             install
linux-image-generic	                        install

Now, We make space by eliminating the Kernel ancient that we no longer need.

#Primero vamos a loguear como root para tener los permisos necesarios.
usuario@maquina:~$ sudo su

#En segundo lugar, crearemos un documento con todas las imágenes antiguas, y la misma orden va a recorrer ese documento borrando las imágenes de los
#antiguos Kernel.
root@maquina:/home/usuario# dpkg --get-selections|grep 'linux-image*'|awk '{print $1}'|egrep -v "linux-image-$(uname -r)|linux-image-generic" |while read n;do apt-get -y remove $n;done

#Y ejecutamos autoclean para una mayor limpieza.
root@maquina:/home/usuario# apt-get autoclean

Finally we return to list the Kernel to verify that the ancients have eliminated, they must be marked with “deinstall“.

root@maquina:/home/usuario# exit
usuario@maquina:~$ dpkg --get-selections | grep linux-image 
linux-image-3.13.0-35-generic                   deinstall
linux-image-3.13.0-36-generic			install
linux-image-3.13.0-37-generic			install
linux-image-extra-3.13.0-24-generic             deinstall
linux-image-extra-3.13.0-27-generic             deinstall
linux-image-extra-3.13.0-35-generic             deinstall
linux-image-extra-3.13.0-36-generic		install
linux-image-extra-3.13.0-37-generic		install
linux-image-generic				install

Now that they are already uninstalled, Let's see how much space you have on this partition to make sure that I have of the 93MB necessary.

#Con la opción -h para la orden df, lo que hacemos es mostrar el 
#resultado obtenido de una forma mas amigable para los humanos.
usuario@maquina:~$ df -h | grep /boot
/dev/sda2 237M 99M 126M 44% /boot

As we can see, We have of 126MB, more than enough; so we will proceed to update.

Screenshot of 2014-10-30 03:56:35It worked perfectly, and now we only have restart.

Screenshot of 2014-10-30 03:58:03

Now we can enjoy our system fully updated.

Screenshot of 2014-10-30 04:18:22

If you like you can follow me on Twitter, Facebook, Google +, LinkedIn, or share it with the buttons under this publication, If you have any questions or suggestions please do not hesitate to comment.

Help us to reach more readers Share on LinkedInShare on FacebookTweet about this on TwitterShare on Google+Email this to someone

8 thoughts on"Ubuntu 14.10 – Free space in/boot to update the kernel

  1. Thank you ! This was the only method that I served, in my case I had to uninstall thunar poruqe was wrong and filled me with RAM memory.

  2. Hello, I have a problem when you try to follow these instructions, It tells me that there are packages that do not meet the dependencies, It seems to enter a cycle of several retries (I suppose that for each update) and finally cuts without doing the cleaning… That I can or should I do?
    I copy the output to the terminal of one of the times that gives the error:
    Reading package list… Fact
    Creating dependency tree
    Reading state information… Fact
    You might want to run apt-get - f install' to correct it:
    The following packages have unfulfilled dependencies:
    Linux-image-generic : It depends on: Linux-image-3.13.0-65-generic but will not be installed
    It depends on: Linux-image-extra-3.13.0-65-generic but will not be installed
    E: Unfulfilled dependencies. Try apt-get - f install"without packages (or specify a solution).

    The dpkg command displays the following (Despite having tried cleaning):

    dpkg –get-selections | grep linux-image
    Linux-image-3.13.0-32-generic install
    Linux-image-3.13.0-43-generic install
    linux-image-3.13.0-44-generic install
    linux-image-3.13.0-46-generic install
    linux-image-3.13.0-48-generic install
    linux-image-3.13.0-49-generic install
    linux-image-3.13.0-51-generic install
    linux-image-3.13.0-53-generic install
    linux-image-extra-3.13.0-32-generic install
    linux-image-extra-3.13.0-43-generic install
    linux-image-extra-3.13.0-44-generic install
    linux-image-extra-3.13.0-46-generic install
    linux-image-extra-3.13.0-48-generic install
    Linux-image-extra-3.13.0-49-generic install
    Linux-image-extra-3.13.0-51-generic install
    Linux-image-extra-3.13.0-53-generic install
    Linux-image-extra-3.13.0-65-generic install
    install Linux-image-generic

    • Hello Daniel,

      Gives the solution to the problem you mention you own package manager in the error here adjuntas.

      In principle by running the following command should be resolved:

      sudo apt-get - f install

      • Hello from new and thank you for the prompt response.
        I have tried to run that command to solve, but exits with error. I suspect that it is because I have no place in/boot and at one point warns that you need to download 42.5 Additional MB.
        The last lines of the output of the command are:
        Errors were found while processing:
        /var/cache/apt/archives/linux-image-3.13.0-65-generic_3.13.0-65.106_amd64.deb
        E: Sub-process /usr/bin/dpkg returned an error code (1)

        The output of the command df - h is:

        S.ficheros size used Disp use % mounted on
        /dev/mapper/linux–Boli–disk-root 9, 1G 8, 1G 490M 95% /
        none 4,0K 0 4,0K 0% /sys/fs/cgroup
        udev 989M 4, 0K 989M 1% /dev
        tmpfs 200M 1, 8M 199M 1% /run
        none 5,0M 0 5,0M 0% /run/lock
        None 1000M 96K 1000M 1% /run/shm
        None 100M 32K 100M 1% /run/user
        /dev/cciss/c0d0p1 232M 222M 0 100% /boot
        /dev/mapper/linux–Boli–disk-home 253G 89G 151G 38% /Home

        • Hello Daniel,

          You have executed the first step of the tutorial in which removed the old Kernel for free space in/boot?

          If you did and yet space is insufficient, the simplest solution would be to increase the system partition, or/boot if you have this directory on an own partition.

          see you soon.

Leave a Reply