autoremove old kernel related packages - Was: Out of space

C de-Avillez hggdh2 at ubuntu.com
Tue Aug 2 15:07:13 UTC 2016


Hi Oli,

On Tue, 02 Aug 2016 15:47:14 +0200
Oliver Grawert <ogra at ubuntu.com> wrote:

> if:
> 
> apt-mark showmanual|grep linux
> 
> does not list your kernel packages, then this is a bug, please file it

You mean "does list"? Because below you comment that being set to
manual would be a reason for the kernel not to be removed.

> ...
> you can unset the "manual" flag to "auto" again with:
> 
> apt-mark auto $packagename
> 
> ...in case it listed your kernel packages
> 
> (i bet your kernel is set to manual simply because it isnt the default
> kernel, so you most likely manually apt-get installed it after the OS
> was installed, which would have marked it as manual)

On the other hand, if I set linux-generic to auto, it is put in the
"autoremove" for apt, even if it is the current kernel version:

[cerdea-aws]cerdea at icatu:/data/buildd/lyx$ apt-mark showmanual|grep linux
console-setup-linux
libselinux1
libselinux1-dev
linux-base
linux-generic
linux-tools-common
linux-tools-generic
linux-tools-generic-lts-xenial
util-linux
zfsutils-linux

[cerdea-aws]cerdea at icatu:/data/buildd/lyx$ sudo apt-mark auto linux-generic linux-tools-generic
[sudo] password for cerdea: 
linux-generic set to automatically installed.
linux-tools-generic set to automatically installed.
linux-tools-generic-lts-xenial set to automatically installed.

[cerdea-aws]cerdea at icatu:/data/buildd/lyx$ sudo apt-get dist-upgrade 
Ign:1 http://dl.google.com/linux/talkplugin/deb stable InRelease
Hit:2 http://dl.google.com/linux/talkplugin/deb stable Release                                                                        
Hit:4 http://archive.ubuntu.com/ubuntu xenial InRelease                                                                               
Hit:5 http://ppa.launchpad.net/oisf/suricata-beta/ubuntu xenial InRelease                      
Ign:6 http://ddebs.ubuntu.com xenial InRelease                                                
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]                      
Ign:8 http://ddebs.ubuntu.com xenial-updates InRelease                         
Hit:9 http://ppa.launchpad.net/oisf/suricata-stable/ubuntu xenial InRelease    
Hit:10 http://ddebs.ubuntu.com xenial Release                                        
Get:12 http://ddebs.ubuntu.com xenial-updates Release [40.5 kB]
Hit:13 http://archive.ubuntu.com/ubuntu xenial-backports InRelease                  
Hit:14 http://archive.ubuntu.com/ubuntu xenial-security InRelease                    
Get:15 http://ddebs.ubuntu.com xenial-updates Release.gpg [836 B]         
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [328 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [323 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [300 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [297 kB]
Fetched 1,385 kB in 1s (820 kB/s)                          
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-generic linux-headers-generic linux-image-generic thermald
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

[cerdea-aws]cerdea at icatu:/data/buildd/lyx$ 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20160802/0bb839a8/attachment.sig>


More information about the ubuntu-users mailing list