Results 1 to 8 of 8

Thread: How to remove old kernels? Tried a few things already, not working

  1. #1
    Join Date
    Oct 2004
    Beans
    456
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    How to remove old kernels? Tried a few things already, not working

    Hi all,

    Tried a few things already, but I cannot remove the old kernels from my ubuntu 12.10 64bit setup.

    Tried the janitor through Ubuntu Tweak, tried Synaptic, and tried a few command line stuff I found on the internet. Tried fixing broken packages as well.

    Is there a folder that I can just go in and manually remove these old kernels?

    Thanks

    Heeter

  2. #2
    Join Date
    Oct 2012
    Beans
    21

    Re: How to remove old kernels? Tried a few things already, not working

    Have you tried this?
    sudo apt-get purge linux-image-x.x.x.x-generic

    sudo update-grub2

  3. #3
    Join Date
    May 2007
    Location
    albuquerque
    Beans
    581
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: How to remove old kernels? Tried a few things already, not working

    What happened when you tried Synaptic? That's how I always do it in Ubuntu. Or is there something different about 12.10 64-bit when it comes to removing old kernels that I'm not aware of?

  4. #4
    Join Date
    Oct 2009
    Location
    Reykjavík, Ísland
    Beans
    13,647
    Distro
    Xubuntu

    Re: How to remove old kernels? Tried a few things already, not working

    There is very little benefit from removing an old kernel. If you compare the free space before and after you will notice that the change is minimal.
    Bringing old hardware back to life. About problems due to upgrading.
    Please visit Quick Links -> Unanswered Posts.
    Don't use this space for a list of your hardware. It only creates false hits in the search engines.

  5. #5
    Join Date
    May 2007
    Location
    albuquerque
    Beans
    581
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: How to remove old kernels? Tried a few things already, not working

    Quote Originally Posted by mörgæs View Post
    There is very little benefit from removing an old kernel. If you compare the free space before and after you will notice that the change is minimal.
    Well, it can sure make for a tidier grub menu.

  6. #6
    Join Date
    Oct 2004
    Beans
    456
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to remove old kernels? Tried a few things already, not working

    Quote Originally Posted by malspa View Post
    Well, it can sure make for a tidier grub menu.
    That is exactly what I am trying to achieve, LOL

    Synaptic complains that I need to fix broken packages,

    Heeter

    This is what I am getting:
    Code:
    adminpc@linuxpc:~$ sudo apt-get purge linux-image-3.7.0.7-generic
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Note, selecting 'linux-image-3.7.0-7-generic' for regex 'linux-image-3.7.0.7-generic'
    Package 'linux-image-3.7.0-7-generic' is not installed, so not removed
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    adminpc@linuxpc:~$
    Although Synaptic lists this particular kernel as a broken package.

    Heeter
    Last edited by Heeter; March 5th, 2013 at 09:59 PM.

  7. #7
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: How to remove old kernels? Tried a few things already, not working

    In synaptic try using the menu item Edit ->Fix Broken Packages

  8. #8
    Join Date
    Oct 2004
    Beans
    456
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How to remove old kernels? Tried a few things already, not working

    Hi ajgreeny,

    Have tried that already, with no success


    Heeter

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •