3

Not very well versed with Ubuntu. I got this message when I tried to get some updates:

The upgrade needs a total of 31.9 M free space on disk '/boot'. 
Please free at least an additional 27.6 M of disk space on '/boot'. 
Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.

When I'm trying to run 'sudo apt-get clean', it says command not found. How do I remove temp packages?

ankit7540
  • 4,185
Rina
  • 31
  • 1
  • 1
  • 3

2 Answers2

1

I'm not sure why sudo apt-get clean isn't found for you, but one way to clear up some space is to run sudo apt-get autoremove, which can remove packages that aren't used by any other packages (such as a package installed with another package as a dependency but the package that depended on it is no longer installed, sorry if that didn't make much sense).

One other way to clear up space is to just restart your computer. That will (if I remember correctly) clear out your entire /tmp directory, which stores temporary files.

If the program that spits out the not found error is sudo and not apt, then you would have a much more serious issue on your hands, and the only way I can think of to restore Aptitude (more commonly known as apt or apt-get) is to reinstall Ubuntu.

Hope this helps.

ExplodingKittens
  • 882
  • 1
  • 9
  • 21
  • apt, apt-get, and Aptitude are three different programs. The only thing they have in common is that they manage .deb software packages. – AlexP Jan 13 '17 at 21:53
1

I think you have some problems with your installation or you have install your OS in some way i am not familiar with, since it shouldn't show " command not found" error. Also in your error message it shouldn't be showing " on /boot".

Leaving aside, try

sudo apt-get autoremove

it will remove any unused packages from your system.

Adarsh Maurya
  • 163
  • 1
  • 6