ऑटोरेमोव पुराने हेडर को नहीं हटाता है


10

मेरे पास 16.04 की स्थापना एक अजीब समस्या के साथ है

sudo apt autoremove

वर्तमान और पिछले को छोड़कर पुरानी गुठली निकालता है, लेकिन पुराने हेडर को नहीं हटाता है।

अन्य 16.04 संस्थापनों पर यह दोनों को हटा देता है।

मैं कैसे पता लगा सकता हूं कि क्या गलत है?

मैंने सीखने में बहुत समय बिताया है कि कर्नेल ऑटोरेमोव कैसे काम करता है, लेकिन काम करने वाले और गैर-काम करने वाली मशीनों के बीच कोई अंतर नहीं मिला।

pilot6@Pilot6:~$ cat /etc/apt/apt.conf.d/01autoremove-kernels
// DO NOT EDIT! File autogenerated by /etc/kernel/postinst.d/apt-auto-removal
APT::NeverAutoRemove
{
   "^linux-image-4\.4\.0-38-generic$";
   "^linux-image-4\.4\.0-42-generic$";
   "^linux-image-4\.4\.0-43-generic$";
   "^linux-headers-4\.4\.0-38-generic$";
   "^linux-headers-4\.4\.0-42-generic$";
   "^linux-headers-4\.4\.0-43-generic$";
   "^linux-image-extra-4\.4\.0-38-generic$";
   "^linux-image-extra-4\.4\.0-42-generic$";
   "^linux-image-extra-4\.4\.0-43-generic$";
   "^linux-signed-image-4\.4\.0-38-generic$";
   "^linux-signed-image-4\.4\.0-42-generic$";
   "^linux-signed-image-4\.4\.0-43-generic$";
   "^kfreebsd-image-4\.4\.0-38-generic$";
   "^kfreebsd-image-4\.4\.0-42-generic$";
   "^kfreebsd-image-4\.4\.0-43-generic$";
   "^kfreebsd-headers-4\.4\.0-38-generic$";
   "^kfreebsd-headers-4\.4\.0-42-generic$";
   "^kfreebsd-headers-4\.4\.0-43-generic$";
   "^gnumach-image-4\.4\.0-38-generic$";
   "^gnumach-image-4\.4\.0-42-generic$";
   "^gnumach-image-4\.4\.0-43-generic$";
   "^.*-modules-4\.4\.0-38-generic$";
   "^.*-modules-4\.4\.0-42-generic$";
   "^.*-modules-4\.4\.0-43-generic$";
   "^.*-kernel-4\.4\.0-38-generic$";
   "^.*-kernel-4\.4\.0-42-generic$";
   "^.*-kernel-4\.4\.0-43-generic$";
   "^linux-backports-modules-.*-4\.4\.0-38-generic$";
   "^linux-backports-modules-.*-4\.4\.0-42-generic$";
   "^linux-backports-modules-.*-4\.4\.0-43-generic$";
   "^linux-tools-4\.4\.0-38-generic$";
   "^linux-tools-4\.4\.0-42-generic$";
   "^linux-tools-4\.4\.0-43-generic$";
};
/* Debug information:
# dpkg list:
rc  linux-image-3.11.0-17-generic               3.11.0-17.31                                                amd64        Linux kernel image for version 3.11.0 on 64 bit x86 SMP
rc  linux-image-3.11.0-18-generic               3.11.0-18.32                                                amd64        Linux kernel image for version 3.11.0 on 64 bit x86 SMP
rc  linux-image-3.11.0-19-generic               3.11.0-19.33                                                amd64        Linux kernel image for version 3.11.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-24-generic               3.13.0-24.47                                                amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-27-generic               3.13.0-27.50                                                amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-29-generic               3.13.0-29.53                                                amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-30-generic               3.13.0-30.55                                                amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-32-generic               3.13.0-32.57                                                amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-33-generic               3.13.0-33.58                                                amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-34-generic               3.13.0-34.60                                                amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-35-generic               3.13.0-35.62                                                amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-36-generic               3.13.0-36.63                                                amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-39-generic               3.13.0-39.66                                                amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.16.0-25-generic               3.16.0-25.33~14.04.2                                        amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-3.16.0-28-generic               3.16.0-28.38~14.04.1                                        amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-3.16.0-29-generic               3.16.0-29.39~14.04.1                                        amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-3.16.0-30-generic               3.16.0-30.40~14.04.1                                        amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-3.16.0-33-generic               3.16.0-33.44~14.04.1                                        amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-3.16.0-34-generic               3.16.0-34.47~14.04.1                                        amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-3.16.0-36-generic               3.16.0-36.48~14.04.1                                        amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-3.16.0-37-generic               3.16.0-37.51~14.04.1                                        amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-3.16.0-38-generic               3.16.0-38.52~14.04.1                                        amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-3.16.0-39-generic               3.16.0-39.53~14.04.1                                        amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-3.16.0-40-generic               3.16.0-40.54~14.04.1                                        amd64        Linux kernel image for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-3.19.0-21-generic               3.19.0-21.21~14.04.1                                        amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-3.19.0-22-generic               3.19.0-22.22~14.04.1                                        amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-3.19.0-23-generic               3.19.0-23.24~14.04.1                                        amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-3.19.0-25-generic               3.19.0-25.26~14.04.1                                        amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-3.19.0-26-generic               3.19.0-26.28~14.04.1                                        amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-3.19.0-28-generic               3.19.0-28.30~14.04.1                                        amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-3.19.0-30-generic               3.19.0-30.34~14.04.1                                        amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-3.19.0-31-generic               3.19.0-31.36~14.04.1                                        amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-3.19.0-32-generic               3.19.0-32.37~14.04.1                                        amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-3.19.0-33-generic               3.19.0-33.38~14.04.1                                        amd64        Linux kernel image for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-4.2.0-18-generic                4.2.0-18.22~14.04.1                                         amd64        Linux kernel image for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-4.2.0-19-generic                4.2.0-19.23~14.04.1                                         amd64        Linux kernel image for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-4.2.0-21-generic                4.2.0-21.25~14.04.1                                         amd64        Linux kernel image for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-4.2.0-22-generic                4.2.0-22.27~14.04.1                                         amd64        Linux kernel image for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-4.2.0-23-generic                4.2.0-23.28~14.04.1                                         amd64        Linux kernel image for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-4.2.0-25-generic                4.2.0-25.30~14.04.1                                         amd64        Linux kernel image for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-4.2.0-27-generic                4.2.0-27.32~14.04.1                                         amd64        Linux kernel image for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-4.2.0-30-generic                4.2.0-30.36~14.04.1                                         amd64        Linux kernel image for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-4.2.0-32-generic                4.2.0-32.37~14.04.1                                         amd64        Linux kernel image for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-4.2.0-34-generic                4.2.0-34.39~14.04.1                                         amd64        Linux kernel image for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-10-generic                4.4.0-10.25                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-11-generic                4.4.0-11.26                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-12-generic                4.4.0-12.28                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-13-generic                4.4.0-13.29~14.04.1                                         amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-14-generic                4.4.0-14.30~14.04.2                                         amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-15-generic                4.4.0-15.31~14.04.1                                         amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-18-generic                4.4.0-18.34~14.04.1                                         amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-21-generic                4.4.0-21.37                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-22-generic                4.4.0-22.40                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-24-generic                4.4.0-24.43                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-28-generic                4.4.0-28.47                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-31-generic                4.4.0-31.50                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-34-generic                4.4.0-34.53                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-36-generic                4.4.0-36.55                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-38-generic                4.4.0-38.57                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-42-generic                4.4.0-42.62                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-43-generic                4.4.0-43.63                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-3.11.0-17-generic         3.11.0-17.31                                                amd64        Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
rc  linux-image-extra-3.11.0-18-generic         3.11.0-18.32                                                amd64        Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
rc  linux-image-extra-3.11.0-19-generic         3.11.0-19.33                                                amd64        Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-24-generic         3.13.0-24.47                                                amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-27-generic         3.13.0-27.50                                                amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-29-generic         3.13.0-29.53                                                amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-30-generic         3.13.0-30.55                                                amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-32-generic         3.13.0-32.57                                                amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-33-generic         3.13.0-33.58                                                amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-34-generic         3.13.0-34.60                                                amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-35-generic         3.13.0-35.62                                                amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-36-generic         3.13.0-36.63                                                amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-39-generic         3.13.0-39.66                                                amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-40-generic         3.13.0-40.69                                                amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.16.0-25-generic         3.16.0-25.33~14.04.2                                        amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-extra-3.16.0-28-generic         3.16.0-28.38~14.04.1                                        amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-extra-3.16.0-29-generic         3.16.0-29.39~14.04.1                                        amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-extra-3.16.0-30-generic         3.16.0-30.40~14.04.1                                        amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-extra-3.16.0-33-generic         3.16.0-33.44~14.04.1                                        amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-extra-3.16.0-34-generic         3.16.0-34.47~14.04.1                                        amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-extra-3.16.0-36-generic         3.16.0-36.48~14.04.1                                        amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-extra-3.16.0-37-generic         3.16.0-37.51~14.04.1                                        amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-extra-3.16.0-38-generic         3.16.0-38.52~14.04.1                                        amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-extra-3.16.0-39-generic         3.16.0-39.53~14.04.1                                        amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-extra-3.16.0-40-generic         3.16.0-40.54~14.04.1                                        amd64        Linux kernel extra modules for version 3.16.0 on 64 bit x86 SMP
rc  linux-image-extra-3.19.0-21-generic         3.19.0-21.21~14.04.1                                        amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-extra-3.19.0-22-generic         3.19.0-22.22~14.04.1                                        amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-extra-3.19.0-23-generic         3.19.0-23.24~14.04.1                                        amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-extra-3.19.0-25-generic         3.19.0-25.26~14.04.1                                        amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-extra-3.19.0-26-generic         3.19.0-26.28~14.04.1                                        amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-extra-3.19.0-28-generic         3.19.0-28.30~14.04.1                                        amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-extra-3.19.0-30-generic         3.19.0-30.34~14.04.1                                        amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-extra-3.19.0-31-generic         3.19.0-31.36~14.04.1                                        amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-extra-3.19.0-32-generic         3.19.0-32.37~14.04.1                                        amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-extra-3.19.0-33-generic         3.19.0-33.38~14.04.1                                        amd64        Linux kernel extra modules for version 3.19.0 on 64 bit x86 SMP
rc  linux-image-extra-4.2.0-18-generic          4.2.0-18.22~14.04.1                                         amd64        Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-extra-4.2.0-19-generic          4.2.0-19.23~14.04.1                                         amd64        Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-extra-4.2.0-21-generic          4.2.0-21.25~14.04.1                                         amd64        Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-extra-4.2.0-22-generic          4.2.0-22.27~14.04.1                                         amd64        Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-extra-4.2.0-23-generic          4.2.0-23.28~14.04.1                                         amd64        Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-extra-4.2.0-25-generic          4.2.0-25.30~14.04.1                                         amd64        Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-extra-4.2.0-27-generic          4.2.0-27.32~14.04.1                                         amd64        Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-extra-4.2.0-30-generic          4.2.0-30.36~14.04.1                                         amd64        Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-extra-4.2.0-32-generic          4.2.0-32.37~14.04.1                                         amd64        Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-extra-4.2.0-34-generic          4.2.0-34.39~14.04.1                                         amd64        Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-10-generic          4.4.0-10.25                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-11-generic          4.4.0-11.26                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-12-generic          4.4.0-12.28                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-13-generic          4.4.0-13.29~14.04.1                                         amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-14-generic          4.4.0-14.30~14.04.2                                         amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-15-generic          4.4.0-15.31~14.04.1                                         amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-18-generic          4.4.0-18.34~14.04.1                                         amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-21-generic          4.4.0-21.37                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-22-generic          4.4.0-22.40                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-24-generic          4.4.0-24.43                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-28-generic          4.4.0-28.47                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-31-generic          4.4.0-31.50                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-34-generic          4.4.0-34.53                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-36-generic          4.4.0-36.55                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rH  linux-image-extra-4.4.0-38-generic          4.4.0-38.57                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-42-generic          4.4.0-42.62                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-43-generic          4.4.0-43.63                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-generic                         4.4.0.43.45                                                 amd64        Generic Linux kernel image
# list of installed kernel packages:
4.4.0-38-generic 4.4.0-38.57
4.4.0-42-generic 4.4.0-42.62
4.4.0-43-generic 4.4.0-43.63
# list of different kernel versions:
4.4.0-43.63
4.4.0-42.62
4.4.0-38.57
# Installing kernel: 4.4.0-38.57 (4.4.0-38-generic)
# Running kernel: 4.4.0-43.63 (4.4.0-43-generic)
# Last kernel: 4.4.0-43.63
# Previous kernel: 4.4.0-42.62
# Kernel versions list to keep:
4.4.0-38.57
4.4.0-42.62
4.4.0-43.63
# Kernel packages (version part) to protect:
4\.4\.0-38-generic
4\.4\.0-42-generic
4\.4\.0-43-generic
*/

pilot6@Pilot6:~$ aptitude search '^linux* ?installed'
i A linux-base                      - Linux image base package                  
i   linux-firmware                  - Firmware for Linux kernel drivers         
i   linux-generic                   - Complete Generic Linux kernel and headers 
i A linux-headers-4.4.0-34          - Header files related to Linux kernel versi
i A linux-headers-4.4.0-34-generic  - Linux kernel headers for version 4.4.0 on 
i A linux-headers-4.4.0-36          - Header files related to Linux kernel versi
i A linux-headers-4.4.0-36-generic  - Linux kernel headers for version 4.4.0 on 
i A linux-headers-4.4.0-38          - Header files related to Linux kernel versi
i A linux-headers-4.4.0-38-generic  - Linux kernel headers for version 4.4.0 on 
i A linux-headers-4.4.0-42          - Header files related to Linux kernel versi
i A linux-headers-4.4.0-42-generic  - Linux kernel headers for version 4.4.0 on 
i A linux-headers-4.4.0-43          - Header files related to Linux kernel versi
i A linux-headers-4.4.0-43-generic  - Linux kernel headers for version 4.4.0 on 
i A linux-headers-generic           - Generic Linux kernel headers              
i A linux-image-4.4.0-42-generic    - Linux kernel image for version 4.4.0 on 64
i A linux-image-4.4.0-43-generic    - Linux kernel image for version 4.4.0 on 64
i A linux-image-extra-4.4.0-42-gene - Linux kernel extra modules for version 4.4
i A linux-image-extra-4.4.0-43-gene - Linux kernel extra modules for version 4.4
i A linux-image-generic             - Generic Linux kernel image                
i   linux-libc-dev                  - Linux Kernel Headers for development      
i   linux-sound-base                - base package for ALSA and OSS sound system

pilot6@Pilot6:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

4.4.0-42 और 43 को छोड़कर apt autoremoveसभी linux-imageपैकेजों के पिछले रन को हटा दिया गया है, लेकिन हेडर रखे गए हैं।

यह प्रभावित इंस्टॉलेशन से डीबग-ऑटोरेमोवटैक्स है।

https://dl.dropboxusercontent.com/u/89297281/debug-autoremove.txt

यह एक गैर-प्रभावित मशीन से एक ही कमांड से आउटपुट है।

https://dl.dropboxusercontent.com/u/89297281/debug-autoremove-good.txt

यहाँ सूडो के साथ पहली बार है।

http://paste.ubuntu.com/23343952/


+1 के जवाबों में भी दिलचस्पी होगी, मेरे लिए यह केवल लिनक्स-अतिरिक्त पैकेज को हटाता है, और यहां तक ​​कि मुख्य छवि को भी नहीं ... अभी के लिए मैंने सिर्फ मैन्युअल रूप से उन्हें हटाने का सहारा लिया है क्योंकि यह सिर्फ दो पैकेज है।
fkraiem

क्या आपके पास परीक्षण का मामला है? यदि हां, तो क्या आप /etc/apt/apt.conf.d/01autoremove-kernelsऔर की सामग्री को पोस्ट कर सकते हैं aptitude search '^linux* ?installed'। बस यह पुष्टि करने के लिए कि सभी गुठली ऑटो स्थापित हैं।
user.dz

@ user.dz मैंने जानकारी जोड़ी।
पायलट 6

@ Pilot6, क्या आप दोनों मशीनों (w / & w / out problem) का उपयोग करके डिबग उत्पन्न कर सकते हैं apt-get -o Debug::pkgAutoRemove=1 -s autoremove 2> debug-autoremove.txt(इसके लिए कोई आवश्यकता नहीं है sudo, यह एक सिमुलेशन है -s)। मुझे पुराने हेडर के लिए एक टेस्ट केस मिला, लेकिन मेरे पास तुलना करने के लिए कई इंस्टॉलेशन नहीं हैं। मुझे उम्मीद है, यह वर्चुअल पैकेज (मेरे मामले में वर्चुअलबॉक्स 5) के साथ एक निर्भरता की समस्या है, Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-36-generic:amd64 4.4.0-36.55जो केवल वह अंतर है जिसकी तुलना मैं कर सकता हूं linux-image
user.dz

@ user.dz मैंने दोनों मशीनों से डिबग जानकारी जोड़ी।
पायलट 6

जवाबों:


3

autoremove किसी भी पैकेज को हटा देगा:

  • ऑटो स्थापित है
  • APT::NeverAutoRemoveAPT कॉन्फ़िगरेशन में शामिल नहीं है
  • कोई आश्रित नहीं है

यहां हमारे द्वारा अनुसरण किए गए डीबगिंग चरण हैं

  1. जाँच ऑटो / मैनुअल स्थापना

    aptitude search '^linux* ?installed'
    
  2. के तहत वर्तमान में घोषित संस्करण की जाँच की APT::NeverAutoRemove

    cat /etc/apt/apt.conf.d/01autoremove-kernels
    
  3. जाँच निर्भरता

    apt-cache rdepends linux-headers-4.4.0-38-generic
    

    लेकिन कुछ नहीं लाता है

    sudo apt-get -o Debug::pkgAutoRemove=1 -s autoremove 2> debug-autoremove.txt
    
    ...
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-43-lowlatency:amd64 4.4.0-43.63
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-43-generic:amd64 4.4.0-43.63
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-42-lowlatency:amd64 4.4.0-42.62
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-42-generic:amd64 4.4.0-42.62
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-38-lowlatency:amd64 4.4.0-38.57
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-38-generic:amd64 4.4.0-38.57
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-36-lowlatency:amd64 4.4.0-36.55
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-36-generic:amd64 4.4.0-36.55
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-34-lowlatency:amd64 4.4.0-34.53
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-34-generic:amd64 4.4.0-34.53
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-31-lowlatency:amd64 4.4.0-31.50
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-31-generic:amd64 4.4.0-31.50
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-28-lowlatency:amd64 4.4.0-28.47
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-28-generic:amd64 4.4.0-28.47
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-24-lowlatency:amd64 4.4.0-24.43
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-24-generic:amd64 4.4.0-24.43
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-22-lowlatency:amd64 4.4.0-22.40
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-22-generic:amd64 4.4.0-22.40
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-21-lowlatency:amd64 4.4.0-21.37
    Following dep: virtualbox-5.0:amd64 5.0.20-106931~Ubuntu~wily Recommends linux-headers:amd64 , provided by linux-headers-4.4.0-21-generic:amd64 4.4.0-21.37
    ...
    

    तो यह आभासी पैकेज के माध्यम से एक निर्भरता मुद्दा है linux-headers

मैं यहाँ संदेह में हूँ, यह मुझे बग के रूप में लगता है।

  • या तो ऑटोरेमोव फ़ंक्शन में, यह वर्चुअल पैकेज निर्भरता के साथ सौदा नहीं कर सकता है।
  • या वर्चुअलबॉक्स पैकेज में, जिसे लिनक्स हेडर पर निर्भरता घोषित करने के लिए दूसरे तरीके की आवश्यकता हो सकती है।

1

जब मैं कर्नेल प्रबंधन जैसे महत्वपूर्ण विषय की बात करता हूं तो मैं आमतौर पर स्वचालित रूप से चल रहे सिस्टम रखरखाव कार्यों पर ज्यादा भरोसा नहीं करता हूं। जैसा कि मैं आपकी टिप्पणियों से देख सकता हूं, वर्चुअलबॉक्स 5 के साथ हस्तक्षेप हो रहा है। इसलिए मैं पुरानी गुठली को साफ करने का सबसे विश्वसनीय तरीका सुझाता हूं।

जाँचें कि कौन से कर्नेल संस्करण स्थापित हैं: dpkg --get-selections | grep linux

विशेष रूप से हेडर के लिए जाँच करने के लिए: dpkg --get-selections | grep linux-headers

जिनको आप हटाना चाहते हैं उन्हें हटाएं (बदलें * कर्नेल संस्करण संख्या के साथ):

sudo apt purge linux-headers-* linux-headers-*-generic linux-image-*-generic linux-image-extra-*-generic linux-signed-image-*-generic

यह निश्चित रूप से एक स्पष्टीकरण नहीं है कि क्या गलत हुआ और apt autoremoveकमांड को चलाते समय स्वचालित हेडर को हटाने से काम क्यों नहीं चलता है , लेकिन अंत में यह एक समाधान है जो आप चाहते हैं और यह सुनिश्चित करता है कि सब कुछ ठीक से साफ हो जाए।


यह वही है जो मैं अभी कर रहा हूं; ;-) सवाल यह है कि समस्या क्या थी और इसे कैसे ठीक किया जाए।
पायलट 6

@ Pil6 यही मैंने कुछ समय पहले किया था ... के बाद से एक भी समस्या नहीं है और प्रदर्शन बहुत अच्छा है! :)
cl-netbox
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.