Results 1 to 10 of 10

Thread: sudo apt-get clean problem

  1. #1
    Join Date
    Feb 2013
    Beans
    5

    sudo apt-get clean problem

    On running update manager it reports that boot is full and tells me to run sudo apt-get clean from a command line to delete old packages. I've done this with no results. Is there some other way to delete these packages?

  2. #2
    Join Date
    Jul 2005
    Location
    England
    Beans
    13,506

    Re: sudo apt-get clean problem

    You probably need to remove old kernels.

    The command
    Code:
    grep "menuentry " /boot/grub/grub.cfg | cut -c 1-100
    will show all kernels on your system, and everything else that shows in the grub menu (even if you don't see that menu at boot)

    The easiest way to remove old kernels, I think, is to install and use synaptic which let's you search for the kernel packages by number, eg for Precise 12.04, linux-image-3.2.0-36 and you can then remove all of them except the two most recent, ie the one you're using and one previous as a backup.
    DISTRO: Xubuntu 12.04-64bit --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

  3. #3
    Join Date
    Feb 2013
    Beans
    5

    Re: sudo apt-get clean problem

    Sorry. It's not old kernel problem.

  4. #4
    Join Date
    Jul 2005
    Location
    England
    Beans
    13,506

    Re: sudo apt-get clean problem

    Quote Originally Posted by omart View Post
    Sorry. It's not old kernel problem.
    So how is it that /boot is full? Did you mean boot or should you have said root?

    If sudo apt-get clean did not show an error then it worked, and there should be no .deb packages left in /var/cache/apt/archives.
    Last edited by ajgreeny; February 25th, 2013 at 11:45 PM.
    DISTRO: Xubuntu 12.04-64bit --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

  5. #5
    Join Date
    Feb 2013
    Beans
    5

    sudo apt-get clean not working

    Sudo apt-get clean or autoclean does not remove old pacage, what has to be done to remove them?

  6. #6
    Join Date
    Jun 2007
    Location
    K-o-T,
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: sudo apt-get clean not working

    Quote Originally Posted by omart View Post
    Sudo apt-get clean or autoclean does not remove old pacage, what has to be done to remove them?
    All "sudo apt-get clean" does is delete all the downloaded .deb files in /var/cache/apt/archives.

    Try
    Code:
    sudo apt-get autoremove
    which will remove all obsolete packages.

    Good Luck
    Hypertension = Take with a pinch of salt
    | Psychocats | Ubuntu Documentation | Howto [Solved] | BBcode list | Brother Website |

  7. #7
    Join Date
    Feb 2013
    Beans
    5

    Re: sudo apt-get clean not working

    Not working. Looks like it needs more space to work than is available. Is it possible to delete from terminal?

  8. #8
    Join Date
    Sep 2012
    Location
    Gnome12o4/LXQt14o4
    Beans
    Hidden!

    Re: sudo apt-get clean not working

    Hi omart, welcome to the forums

    You can also take a look here for more ways.

    http://www.googlubuntu.com/results/?...ch&cof=FORID:9

  9. #9
    Join Date
    Feb 2013
    Beans
    5

    Re: sudo apt-get clean problem

    Finally did it with synaptic package manager.

  10. #10
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: sudo apt-get clean problem

    Threads merged. Please don't start more than one thread per issue, it's confusing and it dilutes community effort.

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
  •