Out of space

Ralf Mardorf silver.bullet at zoho.com
Tue Aug 2 10:48:24 UTC 2016


On Tue, 02 Aug 2016 12:26:24 +0200, Oliver Grawert wrote:
>hi,
>Am Dienstag, den 02.08.2016, 07:50 +0200 schrieb Ralf Mardorf:
>> 
>> You can
>> 
>>   sudo apt-get purge linux-headers-4.4.0-18 linux-headers-4.4.0-18-
>> generic linux-headers-4.4.0-21
>> 
>> and all the other packages from the above list.
>>   
>you shouldnt need to do this but instead use:
>
>sudo apt-get autoremove
>
>that should ask you about removing that mess of old kernels (unkless
>the linux-generic metapackage was uninstalled (which iirc marks them as
>manually installed)) ... say yes and let apt do its job ...

Hi,

autoremove doesn't work for linux-lowlatency, which IMO is good,
because I want to autoremove unneeded packages, but not necessarily an
old kernel. My guess was, that the OP already run clean and autoremove.

Résumé:

Richard, by all means run

  sudo apt-get clean
  sudo apt-get autoremove

assumed autoremove shouldn't include 8 linux-headers, 5 linux-image and
5 linux-image-extra packages, then also run

  sudo apt-get purge $(dpkg -l linux*|grep -v $(uname -r|sed "s/[[:alpha:]]//g;s/.$//g;s/-/./g")|grep -v base|grep -v firmware|grep ii|cut -d" " -f3)

Regards,
Ralf





More information about the ubuntu-users mailing list