update Kernel after failed upgrade because full /boot partition

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












Today I tried to update my two Linux servers. on one it failed because /boot did not have enough space, which was easy to solve. But now I have different Kernels on this machines because apt update/upgrade does not try to install the newest anymore on the machine where it failed on the first try.



How can I force the update now?



Ubuntu 16.04 LTS where update worked:



$ uname -r
4.4.0-127-generic


Ubuntu 16.04 LTS where update FAILED:



$ uname -r
4.4.0-31-generic


$ sudo apt-get upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
amd64-microcode intel-microcode iucode-tool
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


How to get the latest kernel also on this machine?



$ sudo apt list --installed 'linux-image*'
Auflistung... Fertig
linux-image-4.4.0-31-generic/xenial-updates,xenial-security,now 4.4.0-31.50 amd64 [Installiert,automatisch]
linux-image-extra-4.4.0-31-generic/xenial-updates,xenial-security,now 4.4.0-31.50 amd64 [Installiert,automatisch]


Output from 'apt-cache plicy linux-image-generic



$ sudo apt-cache policy linux-image-generic
linux-image-generic:
Installiert: (keine)
Installationskandidat: 4.4.0.127.133
Versionstabelle:
4.4.0.127.133 500
500 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
4.4.0.21.22 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages






share|improve this question





















  • You get only one kernel version on the failing machine which is not normal, APT keeps at least two versions while updating. So let me ask: Has this machine ever updated the Linux kernel? Haven’t you held any packages related to kernel? How exactly did you clean the boot partition? BTW you should prepend LANG=C if you are about to post the command output (e.g. LANG=C sudo apt-get upgrade), so the output gets printed in English. I personally can understand German but others may not.
    – Melebius
    Jun 5 at 10:04











  • There were more versions before, but because of no space on /boot i deleted some of them using this hint askubuntu.com/a/90219/592185
    – Andi S.
    Jun 5 at 11:14






  • 1




    Please edit your question the include the complete output of apt-cache policy linux-image-generic. Let's see if you simply need to reinstall the metapackage (happens if apt is blocked for too long).
    – user535733
    Jun 5 at 13:46











  • Output added. 4.4.0.127.133 is exactly the version that it tried to install at morning but broke because of full /boot.
    – Andi S.
    Jun 5 at 13:59














up vote
1
down vote

favorite












Today I tried to update my two Linux servers. on one it failed because /boot did not have enough space, which was easy to solve. But now I have different Kernels on this machines because apt update/upgrade does not try to install the newest anymore on the machine where it failed on the first try.



How can I force the update now?



Ubuntu 16.04 LTS where update worked:



$ uname -r
4.4.0-127-generic


Ubuntu 16.04 LTS where update FAILED:



$ uname -r
4.4.0-31-generic


$ sudo apt-get upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
amd64-microcode intel-microcode iucode-tool
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


How to get the latest kernel also on this machine?



$ sudo apt list --installed 'linux-image*'
Auflistung... Fertig
linux-image-4.4.0-31-generic/xenial-updates,xenial-security,now 4.4.0-31.50 amd64 [Installiert,automatisch]
linux-image-extra-4.4.0-31-generic/xenial-updates,xenial-security,now 4.4.0-31.50 amd64 [Installiert,automatisch]


Output from 'apt-cache plicy linux-image-generic



$ sudo apt-cache policy linux-image-generic
linux-image-generic:
Installiert: (keine)
Installationskandidat: 4.4.0.127.133
Versionstabelle:
4.4.0.127.133 500
500 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
4.4.0.21.22 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages






share|improve this question





















  • You get only one kernel version on the failing machine which is not normal, APT keeps at least two versions while updating. So let me ask: Has this machine ever updated the Linux kernel? Haven’t you held any packages related to kernel? How exactly did you clean the boot partition? BTW you should prepend LANG=C if you are about to post the command output (e.g. LANG=C sudo apt-get upgrade), so the output gets printed in English. I personally can understand German but others may not.
    – Melebius
    Jun 5 at 10:04











  • There were more versions before, but because of no space on /boot i deleted some of them using this hint askubuntu.com/a/90219/592185
    – Andi S.
    Jun 5 at 11:14






  • 1




    Please edit your question the include the complete output of apt-cache policy linux-image-generic. Let's see if you simply need to reinstall the metapackage (happens if apt is blocked for too long).
    – user535733
    Jun 5 at 13:46











  • Output added. 4.4.0.127.133 is exactly the version that it tried to install at morning but broke because of full /boot.
    – Andi S.
    Jun 5 at 13:59












up vote
1
down vote

favorite









up vote
1
down vote

favorite











Today I tried to update my two Linux servers. on one it failed because /boot did not have enough space, which was easy to solve. But now I have different Kernels on this machines because apt update/upgrade does not try to install the newest anymore on the machine where it failed on the first try.



How can I force the update now?



Ubuntu 16.04 LTS where update worked:



$ uname -r
4.4.0-127-generic


Ubuntu 16.04 LTS where update FAILED:



$ uname -r
4.4.0-31-generic


$ sudo apt-get upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
amd64-microcode intel-microcode iucode-tool
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


How to get the latest kernel also on this machine?



$ sudo apt list --installed 'linux-image*'
Auflistung... Fertig
linux-image-4.4.0-31-generic/xenial-updates,xenial-security,now 4.4.0-31.50 amd64 [Installiert,automatisch]
linux-image-extra-4.4.0-31-generic/xenial-updates,xenial-security,now 4.4.0-31.50 amd64 [Installiert,automatisch]


Output from 'apt-cache plicy linux-image-generic



$ sudo apt-cache policy linux-image-generic
linux-image-generic:
Installiert: (keine)
Installationskandidat: 4.4.0.127.133
Versionstabelle:
4.4.0.127.133 500
500 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
4.4.0.21.22 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages






share|improve this question













Today I tried to update my two Linux servers. on one it failed because /boot did not have enough space, which was easy to solve. But now I have different Kernels on this machines because apt update/upgrade does not try to install the newest anymore on the machine where it failed on the first try.



How can I force the update now?



Ubuntu 16.04 LTS where update worked:



$ uname -r
4.4.0-127-generic


Ubuntu 16.04 LTS where update FAILED:



$ uname -r
4.4.0-31-generic


$ sudo apt-get upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
amd64-microcode intel-microcode iucode-tool
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


How to get the latest kernel also on this machine?



$ sudo apt list --installed 'linux-image*'
Auflistung... Fertig
linux-image-4.4.0-31-generic/xenial-updates,xenial-security,now 4.4.0-31.50 amd64 [Installiert,automatisch]
linux-image-extra-4.4.0-31-generic/xenial-updates,xenial-security,now 4.4.0-31.50 amd64 [Installiert,automatisch]


Output from 'apt-cache plicy linux-image-generic



$ sudo apt-cache policy linux-image-generic
linux-image-generic:
Installiert: (keine)
Installationskandidat: 4.4.0.127.133
Versionstabelle:
4.4.0.127.133 500
500 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
4.4.0.21.22 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages








share|improve this question












share|improve this question




share|improve this question








edited Jun 5 at 13:57
























asked Jun 5 at 6:48









Andi S.

627




627











  • You get only one kernel version on the failing machine which is not normal, APT keeps at least two versions while updating. So let me ask: Has this machine ever updated the Linux kernel? Haven’t you held any packages related to kernel? How exactly did you clean the boot partition? BTW you should prepend LANG=C if you are about to post the command output (e.g. LANG=C sudo apt-get upgrade), so the output gets printed in English. I personally can understand German but others may not.
    – Melebius
    Jun 5 at 10:04











  • There were more versions before, but because of no space on /boot i deleted some of them using this hint askubuntu.com/a/90219/592185
    – Andi S.
    Jun 5 at 11:14






  • 1




    Please edit your question the include the complete output of apt-cache policy linux-image-generic. Let's see if you simply need to reinstall the metapackage (happens if apt is blocked for too long).
    – user535733
    Jun 5 at 13:46











  • Output added. 4.4.0.127.133 is exactly the version that it tried to install at morning but broke because of full /boot.
    – Andi S.
    Jun 5 at 13:59
















  • You get only one kernel version on the failing machine which is not normal, APT keeps at least two versions while updating. So let me ask: Has this machine ever updated the Linux kernel? Haven’t you held any packages related to kernel? How exactly did you clean the boot partition? BTW you should prepend LANG=C if you are about to post the command output (e.g. LANG=C sudo apt-get upgrade), so the output gets printed in English. I personally can understand German but others may not.
    – Melebius
    Jun 5 at 10:04











  • There were more versions before, but because of no space on /boot i deleted some of them using this hint askubuntu.com/a/90219/592185
    – Andi S.
    Jun 5 at 11:14






  • 1




    Please edit your question the include the complete output of apt-cache policy linux-image-generic. Let's see if you simply need to reinstall the metapackage (happens if apt is blocked for too long).
    – user535733
    Jun 5 at 13:46











  • Output added. 4.4.0.127.133 is exactly the version that it tried to install at morning but broke because of full /boot.
    – Andi S.
    Jun 5 at 13:59















You get only one kernel version on the failing machine which is not normal, APT keeps at least two versions while updating. So let me ask: Has this machine ever updated the Linux kernel? Haven’t you held any packages related to kernel? How exactly did you clean the boot partition? BTW you should prepend LANG=C if you are about to post the command output (e.g. LANG=C sudo apt-get upgrade), so the output gets printed in English. I personally can understand German but others may not.
– Melebius
Jun 5 at 10:04





You get only one kernel version on the failing machine which is not normal, APT keeps at least two versions while updating. So let me ask: Has this machine ever updated the Linux kernel? Haven’t you held any packages related to kernel? How exactly did you clean the boot partition? BTW you should prepend LANG=C if you are about to post the command output (e.g. LANG=C sudo apt-get upgrade), so the output gets printed in English. I personally can understand German but others may not.
– Melebius
Jun 5 at 10:04













There were more versions before, but because of no space on /boot i deleted some of them using this hint askubuntu.com/a/90219/592185
– Andi S.
Jun 5 at 11:14




There were more versions before, but because of no space on /boot i deleted some of them using this hint askubuntu.com/a/90219/592185
– Andi S.
Jun 5 at 11:14




1




1




Please edit your question the include the complete output of apt-cache policy linux-image-generic. Let's see if you simply need to reinstall the metapackage (happens if apt is blocked for too long).
– user535733
Jun 5 at 13:46





Please edit your question the include the complete output of apt-cache policy linux-image-generic. Let's see if you simply need to reinstall the metapackage (happens if apt is blocked for too long).
– user535733
Jun 5 at 13:46













Output added. 4.4.0.127.133 is exactly the version that it tried to install at morning but broke because of full /boot.
– Andi S.
Jun 5 at 13:59




Output added. 4.4.0.127.133 is exactly the version that it tried to install at morning but broke because of full /boot.
– Andi S.
Jun 5 at 13:59










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Your system is missing the linux-image-generic package and probably also linux-generic which depends on the former. You should reinstall it using the command:



sudo apt install linux-generic


The packages linux-image-generic and linux-image-4.4.0-127-generic (the currently latest version) should be included automatically to be installed by APT.






share|improve this answer





















    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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f1043719%2fupdate-kernel-after-failed-upgrade-because-full-boot-partition%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    Your system is missing the linux-image-generic package and probably also linux-generic which depends on the former. You should reinstall it using the command:



    sudo apt install linux-generic


    The packages linux-image-generic and linux-image-4.4.0-127-generic (the currently latest version) should be included automatically to be installed by APT.






    share|improve this answer

























      up vote
      1
      down vote



      accepted










      Your system is missing the linux-image-generic package and probably also linux-generic which depends on the former. You should reinstall it using the command:



      sudo apt install linux-generic


      The packages linux-image-generic and linux-image-4.4.0-127-generic (the currently latest version) should be included automatically to be installed by APT.






      share|improve this answer























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        Your system is missing the linux-image-generic package and probably also linux-generic which depends on the former. You should reinstall it using the command:



        sudo apt install linux-generic


        The packages linux-image-generic and linux-image-4.4.0-127-generic (the currently latest version) should be included automatically to be installed by APT.






        share|improve this answer













        Your system is missing the linux-image-generic package and probably also linux-generic which depends on the former. You should reinstall it using the command:



        sudo apt install linux-generic


        The packages linux-image-generic and linux-image-4.4.0-127-generic (the currently latest version) should be included automatically to be installed by APT.







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jun 7 at 8:30









        Melebius

        3,61041636




        3,61041636






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043719%2fupdate-kernel-after-failed-upgrade-because-full-boot-partition%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491