Remove old kernels from /boot to free up spaceUnable to free space in /bootMajor issues trying to clean up...

Why would space fleets be aligned?

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

How do you catch Smeargle in Pokemon Go?

How would an AI self awareness kill switch work?

Macro expansion inside href

How do I prevent a homebrew Grappling Hook feature from trivializing Tomb of Annihilation?

Can you tell from a blurry photo if focus was too close or too far?

Why avoid shared user accounts?

Why is Agricola named as such?

Is there any risk in sharing info about technologies and products we use with a supplier?

How to deal with possible delayed baggage?

Looking for a specific 6502 Assembler

Do "fields" always combine by addition?

Why did Luke use his left hand to shoot?

Can I announce prefix 161.117.25.0/24 even though I don't have all of /24 IPs?

What game did these black and yellow dice come from?

Why do we have to make "peinlich" start with a capital letter and also end with -s in this sentence?

Has any human ever had the choice to leave Earth permanently?

Why didn't Tom Riddle take the presence of Fawkes and the Sorting Hat as more of a threat?

any clues on how to solve these types of problems within 2-3 minutes for competitive exams

Which communication protocol is used in AdLib sound card?

How does Leonard in "Memento" remember reading and writing?

How do I append a character to the end of every line in an excel cell?

Hilchos Shabbos English Sefer



Remove old kernels from /boot to free up space


Unable to free space in /bootMajor issues trying to clean up /bootMy boot volume is full, what should I do now?Kernel update gets stuck (Ubuntu 16.04, Kernel 4.4.0-22)How to remove old kernel in 16.04VLC will not install/boot/ runs full but purging does not helpMy /boot partition hit 100% and now I can't upgrade or uninstall16.04 Trezor Bridge install helpUbuntu 16.04 can't install any software













0















I want to free up some of the space in /boot but i am not able to do so.



Filesystem            1K-blocks     Used Available Use% Mounted on
/dev/sda1 474730 463590 0 100% /boot


I have tried sudo apt-get autoremove --purge but following error



sudo apt-get autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
linux-image-extra-4.4.0-137-generic : Depends: linux-image-4.4.0-137-generic but it is not installed
linux-image-extra-4.4.0-142-generic : Depends: linux-image-4.4.0-142-generic but it is not installed
linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not installed
Recommends: thermald but it is not installed
E: Unmet dependencies. Try using -f.


I have tried sudo apt-get -f install but due to no empty space, I am not able to successfully run it and getting the following error



Unpacking linux-image-4.4.0-137-generic (4.4.0-137.163) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-
137-generic_4.4.0-137.163_amd64.deb (--unpack):
cannot copy extracted data for './boot/abi-4.4.0-137-generic' to '/boot/abi-
4.4.0-137-generic.dpkg-new': failed to write (No space left on device)


I also tried to remove it using dpkg with the following code



dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n '/'`uname -r`'/q;p' | xargs sudo apt-get -y purge


I got the following error for the above command.



root@servername:/# dpkg --list | grep linux-image | awk '{ print $2 }' | 
sort -V | sed -n '/'`uname -r`'/q;p' | xargs sudo apt-get -y purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-extra-4.4.0-112-generic : Depends: linux-image-4.4.0-112-generic
but it is not going to be installed
linux-image-extra-4.4.0-116-generic : Depends: linux-image-4.4.0-116-generic
but it is not going to be installed
linux-image-extra-4.4.0-119-generic : Depends: linux-image-4.4.0-119-generic
but it is not going to be installed
linux-image-extra-4.4.0-121-generic : Depends: linux-image-4.4.0-121-generic
but it is not going to be installed
linux-image-extra-4.4.0-124-generic : Depends: linux-image-4.4.0-124-generic
but it is not going to be installed
linux-image-extra-4.4.0-127-generic : Depends: linux-image-4.4.0-127-generic
but it is not going to be installed
linux-image-extra-4.4.0-128-generic : Depends: linux-image-4.4.0-128-generic
but it is not going to be installed
linux-image-extra-4.4.0-21-generic : Depends: linux-image-4.4.0-21-generic
but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not
going to be installed
Depends: linux-image-extra-4.4.0-142-generic but it is not going to be installed
Recommends: thermald but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


I tried removing old kernels one by one but still no luck



root@servername:/# sudo apt-get purge linux-image-4.4.0-112-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-extra-4.4.0-112-generic : Depends: linux-image-4.4.0-112-generic
but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not
going to be installed
Depends: linux-image-extra-4.4.0-142-generic but it is
not going to be installed
Recommends: thermald but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


I also tried with sudo rm -rf /boot/*-34.4.0-{112,116,119,121,124,127,128,21}-* but still no luck.



Does anyone knows how to resolve it?



Thanks in advance.









share







New contributor




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

























    0















    I want to free up some of the space in /boot but i am not able to do so.



    Filesystem            1K-blocks     Used Available Use% Mounted on
    /dev/sda1 474730 463590 0 100% /boot


    I have tried sudo apt-get autoremove --purge but following error



    sudo apt-get autoremove --purge
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these.
    linux-image-extra-4.4.0-137-generic : Depends: linux-image-4.4.0-137-generic but it is not installed
    linux-image-extra-4.4.0-142-generic : Depends: linux-image-4.4.0-142-generic but it is not installed
    linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not installed
    Recommends: thermald but it is not installed
    E: Unmet dependencies. Try using -f.


    I have tried sudo apt-get -f install but due to no empty space, I am not able to successfully run it and getting the following error



    Unpacking linux-image-4.4.0-137-generic (4.4.0-137.163) ...
    dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-
    137-generic_4.4.0-137.163_amd64.deb (--unpack):
    cannot copy extracted data for './boot/abi-4.4.0-137-generic' to '/boot/abi-
    4.4.0-137-generic.dpkg-new': failed to write (No space left on device)


    I also tried to remove it using dpkg with the following code



    dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n '/'`uname -r`'/q;p' | xargs sudo apt-get -y purge


    I got the following error for the above command.



    root@servername:/# dpkg --list | grep linux-image | awk '{ print $2 }' | 
    sort -V | sed -n '/'`uname -r`'/q;p' | xargs sudo apt-get -y purge
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    linux-image-extra-4.4.0-112-generic : Depends: linux-image-4.4.0-112-generic
    but it is not going to be installed
    linux-image-extra-4.4.0-116-generic : Depends: linux-image-4.4.0-116-generic
    but it is not going to be installed
    linux-image-extra-4.4.0-119-generic : Depends: linux-image-4.4.0-119-generic
    but it is not going to be installed
    linux-image-extra-4.4.0-121-generic : Depends: linux-image-4.4.0-121-generic
    but it is not going to be installed
    linux-image-extra-4.4.0-124-generic : Depends: linux-image-4.4.0-124-generic
    but it is not going to be installed
    linux-image-extra-4.4.0-127-generic : Depends: linux-image-4.4.0-127-generic
    but it is not going to be installed
    linux-image-extra-4.4.0-128-generic : Depends: linux-image-4.4.0-128-generic
    but it is not going to be installed
    linux-image-extra-4.4.0-21-generic : Depends: linux-image-4.4.0-21-generic
    but it is not going to be installed
    linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not
    going to be installed
    Depends: linux-image-extra-4.4.0-142-generic but it is not going to be installed
    Recommends: thermald but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


    I tried removing old kernels one by one but still no luck



    root@servername:/# sudo apt-get purge linux-image-4.4.0-112-generic
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    linux-image-extra-4.4.0-112-generic : Depends: linux-image-4.4.0-112-generic
    but it is not going to be installed
    linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not
    going to be installed
    Depends: linux-image-extra-4.4.0-142-generic but it is
    not going to be installed
    Recommends: thermald but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


    I also tried with sudo rm -rf /boot/*-34.4.0-{112,116,119,121,124,127,128,21}-* but still no luck.



    Does anyone knows how to resolve it?



    Thanks in advance.









    share







    New contributor




    Rizwan.Shivalli 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








      I want to free up some of the space in /boot but i am not able to do so.



      Filesystem            1K-blocks     Used Available Use% Mounted on
      /dev/sda1 474730 463590 0 100% /boot


      I have tried sudo apt-get autoremove --purge but following error



      sudo apt-get autoremove --purge
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      You might want to run 'apt-get -f install' to correct these.
      linux-image-extra-4.4.0-137-generic : Depends: linux-image-4.4.0-137-generic but it is not installed
      linux-image-extra-4.4.0-142-generic : Depends: linux-image-4.4.0-142-generic but it is not installed
      linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not installed
      Recommends: thermald but it is not installed
      E: Unmet dependencies. Try using -f.


      I have tried sudo apt-get -f install but due to no empty space, I am not able to successfully run it and getting the following error



      Unpacking linux-image-4.4.0-137-generic (4.4.0-137.163) ...
      dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-
      137-generic_4.4.0-137.163_amd64.deb (--unpack):
      cannot copy extracted data for './boot/abi-4.4.0-137-generic' to '/boot/abi-
      4.4.0-137-generic.dpkg-new': failed to write (No space left on device)


      I also tried to remove it using dpkg with the following code



      dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n '/'`uname -r`'/q;p' | xargs sudo apt-get -y purge


      I got the following error for the above command.



      root@servername:/# dpkg --list | grep linux-image | awk '{ print $2 }' | 
      sort -V | sed -n '/'`uname -r`'/q;p' | xargs sudo apt-get -y purge
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      You might want to run 'apt-get -f install' to correct these:
      The following packages have unmet dependencies:
      linux-image-extra-4.4.0-112-generic : Depends: linux-image-4.4.0-112-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-116-generic : Depends: linux-image-4.4.0-116-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-119-generic : Depends: linux-image-4.4.0-119-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-121-generic : Depends: linux-image-4.4.0-121-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-124-generic : Depends: linux-image-4.4.0-124-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-127-generic : Depends: linux-image-4.4.0-127-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-128-generic : Depends: linux-image-4.4.0-128-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-21-generic : Depends: linux-image-4.4.0-21-generic
      but it is not going to be installed
      linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not
      going to be installed
      Depends: linux-image-extra-4.4.0-142-generic but it is not going to be installed
      Recommends: thermald but it is not going to be installed
      E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


      I tried removing old kernels one by one but still no luck



      root@servername:/# sudo apt-get purge linux-image-4.4.0-112-generic
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      You might want to run 'apt-get -f install' to correct these:
      The following packages have unmet dependencies:
      linux-image-extra-4.4.0-112-generic : Depends: linux-image-4.4.0-112-generic
      but it is not going to be installed
      linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not
      going to be installed
      Depends: linux-image-extra-4.4.0-142-generic but it is
      not going to be installed
      Recommends: thermald but it is not going to be installed
      E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


      I also tried with sudo rm -rf /boot/*-34.4.0-{112,116,119,121,124,127,128,21}-* but still no luck.



      Does anyone knows how to resolve it?



      Thanks in advance.









      share







      New contributor




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












      I want to free up some of the space in /boot but i am not able to do so.



      Filesystem            1K-blocks     Used Available Use% Mounted on
      /dev/sda1 474730 463590 0 100% /boot


      I have tried sudo apt-get autoremove --purge but following error



      sudo apt-get autoremove --purge
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      You might want to run 'apt-get -f install' to correct these.
      linux-image-extra-4.4.0-137-generic : Depends: linux-image-4.4.0-137-generic but it is not installed
      linux-image-extra-4.4.0-142-generic : Depends: linux-image-4.4.0-142-generic but it is not installed
      linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not installed
      Recommends: thermald but it is not installed
      E: Unmet dependencies. Try using -f.


      I have tried sudo apt-get -f install but due to no empty space, I am not able to successfully run it and getting the following error



      Unpacking linux-image-4.4.0-137-generic (4.4.0-137.163) ...
      dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-
      137-generic_4.4.0-137.163_amd64.deb (--unpack):
      cannot copy extracted data for './boot/abi-4.4.0-137-generic' to '/boot/abi-
      4.4.0-137-generic.dpkg-new': failed to write (No space left on device)


      I also tried to remove it using dpkg with the following code



      dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n '/'`uname -r`'/q;p' | xargs sudo apt-get -y purge


      I got the following error for the above command.



      root@servername:/# dpkg --list | grep linux-image | awk '{ print $2 }' | 
      sort -V | sed -n '/'`uname -r`'/q;p' | xargs sudo apt-get -y purge
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      You might want to run 'apt-get -f install' to correct these:
      The following packages have unmet dependencies:
      linux-image-extra-4.4.0-112-generic : Depends: linux-image-4.4.0-112-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-116-generic : Depends: linux-image-4.4.0-116-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-119-generic : Depends: linux-image-4.4.0-119-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-121-generic : Depends: linux-image-4.4.0-121-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-124-generic : Depends: linux-image-4.4.0-124-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-127-generic : Depends: linux-image-4.4.0-127-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-128-generic : Depends: linux-image-4.4.0-128-generic
      but it is not going to be installed
      linux-image-extra-4.4.0-21-generic : Depends: linux-image-4.4.0-21-generic
      but it is not going to be installed
      linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not
      going to be installed
      Depends: linux-image-extra-4.4.0-142-generic but it is not going to be installed
      Recommends: thermald but it is not going to be installed
      E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


      I tried removing old kernels one by one but still no luck



      root@servername:/# sudo apt-get purge linux-image-4.4.0-112-generic
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      You might want to run 'apt-get -f install' to correct these:
      The following packages have unmet dependencies:
      linux-image-extra-4.4.0-112-generic : Depends: linux-image-4.4.0-112-generic
      but it is not going to be installed
      linux-image-generic : Depends: linux-image-4.4.0-142-generic but it is not
      going to be installed
      Depends: linux-image-extra-4.4.0-142-generic but it is
      not going to be installed
      Recommends: thermald but it is not going to be installed
      E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


      I also tried with sudo rm -rf /boot/*-34.4.0-{112,116,119,121,124,127,128,21}-* but still no luck.



      Does anyone knows how to resolve it?



      Thanks in advance.







      16.04 boot ssh resize





      share







      New contributor




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










      share







      New contributor




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








      share



      share






      New contributor




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









      asked 2 mins ago









      Rizwan.ShivalliRizwan.Shivalli

      1




      1




      New contributor




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





      New contributor





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






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






















          0






          active

          oldest

          votes











          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
          });


          }
          });






          Rizwan.Shivalli is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121625%2fremove-old-kernels-from-boot-to-free-up-space%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Rizwan.Shivalli is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Rizwan.Shivalli is a new contributor. Be nice, and check out our Code of Conduct.













          Rizwan.Shivalli is a new contributor. Be nice, and check out our Code of Conduct.












          Rizwan.Shivalli is a new contributor. Be nice, and check out our Code of Conduct.
















          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%2f1121625%2fremove-old-kernels-from-boot-to-free-up-space%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

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...