Ich räume gerade mehrere Server auf.
Ich habe ein merkwürdiges Verhalten bemerkt:
Wenn ich das tue apt-get autoremove, werden mehrere Header aufgelistet, die automatisch entfernt werden sollen, wenn ich fortfahre. Manchmal bleiben die Dateien / Ordner erhalten /usr/src, manchmal werden sie entfernt.
Gibt es einen Grund, warum oder wo ich mit der Suche beginnen kann? Google ist nicht viel aufgetaucht.
Ein Computer, auf dem die Header noch vorhanden sind, obwohl beim automatischen Entfernen eine "0 zum Entfernen" ausgegeben wird
ubuntu@acc-ws-website-1:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 65 not upgraded.
ubuntu@acc-ws-website-1:~$ ls -lart /usr/src
total 108
drwxr-xr-x 10 root root 4096 Apr 16 2014 ..
drwxr-xr-x 24 root root 4096 Jul 8 2014 linux-headers-3.13.0-24
drwxr-xr-x 7 root root 4096 Jul 8 2014 linux-headers-3.13.0-24-generic
drwxr-xr-x 3 ubuntu ubuntu 4096 Apr 17 2015 ixgbevf-2.14.2
drwxr-xr-x 24 root root 4096 Oct 6 2015 linux-headers-3.13.0-65
drwxr-xr-x 7 root root 4096 Oct 6 2015 linux-headers-3.13.0-65-generic
drwxr-xr-x 24 root root 4096 Oct 20 2015 linux-headers-3.13.0-66
drwxr-xr-x 7 root root 4096 Oct 20 2015 linux-headers-3.13.0-66-generic
drwxr-xr-x 24 root root 4096 Nov 5 2015 linux-headers-3.13.0-67
drwxr-xr-x 7 root root 4096 Nov 5 2015 linux-headers-3.13.0-67-generic
drwxr-xr-x 24 root root 4096 Nov 10 2015 linux-headers-3.13.0-68
drwxr-xr-x 7 root root 4096 Nov 10 2015 linux-headers-3.13.0-68-generic
drwxr-xr-x 24 root root 4096 Dec 1 2015 linux-headers-3.13.0-70
drwxr-xr-x 7 root root 4096 Dec 1 2015 linux-headers-3.13.0-70-generic
drwxr-xr-x 24 root root 4096 Dec 2 2015 linux-headers-3.13.0-71
drwxr-xr-x 7 root root 4096 Dec 2 2015 linux-headers-3.13.0-71-generic
drwxr-xr-x 24 root root 4096 Dec 17 2015 linux-headers-3.13.0-73
drwxr-xr-x 7 root root 4096 Dec 17 2015 linux-headers-3.13.0-73-generic
drwxr-xr-x 24 root root 4096 Dec 19 2015 linux-headers-3.13.0-74
drwxr-xr-x 7 root root 4096 Dec 19 2015 linux-headers-3.13.0-74-generic
drwxr-xr-x 24 root root 4096 Feb 2 2016 linux-headers-3.13.0-77
drwxr-xr-x 7 root root 4096 Feb 2 2016 linux-headers-3.13.0-77-generic
drwxr-xr-x 24 root root 4096 Feb 23 2016 linux-headers-3.13.0-79
drwxr-xr-x 7 root root 4096 Feb 23 2016 linux-headers-3.13.0-79-generic
drwxr-xr-x 24 root root 4096 Mar 30 06:50 linux-headers-3.13.0-115
drwxr-xr-x 7 root root 4096 Mar 30 06:50 linux-headers-3.13.0-115-generic
drwxr-xr-x 27 root root 4096 Mar 30 06:52 .
ubuntu@acc-ws-website-1:~$ uname -r
3.13.0-112-generic
Während ich so etwas erwarten würde:
ubuntu@tools-jenkins:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 94 not upgraded.
ubuntu@tools-jenkins:~$ ls -lart /usr/src
total 32
drwxr-xr-x 10 root root 4096 Mar 25 2015 ..
drwxr-xr-x 24 root root 4096 Dec 6 06:39 linux-headers-3.13.0-105
drwxr-xr-x 7 root root 4096 Dec 6 06:39 linux-headers-3.13.0-105-generic
drwxr-xr-x 24 root root 4096 Mar 8 06:44 linux-headers-3.13.0-112
drwxr-xr-x 7 root root 4096 Mar 8 06:44 linux-headers-3.13.0-112-generic
drwxr-xr-x 24 root root 4096 Mar 30 06:26 linux-headers-3.13.0-115
drwxr-xr-x 7 root root 4096 Mar 30 06:26 linux-headers-3.13.0-115-generic
drwxr-xr-x 8 root root 4096 Apr 3 10:50 .
ubuntu@tools-jenkins:~$ uname -r
3.13.0-105-generic
dpkg-query -f '${binary:Package}\n' -W linux-headers\*) mit und sagen Sie, ob die /usr/src/linux-headers-*noch einen vollständigen Kernel-Header-Baum enthalten.