清理 BOOT - 卡住无法删除

清理 BOOT - 卡住无法删除

我的问题源于尝试安装 SNMP(安装 SNMP 并不像我想象的那么简单),但失败了,因为我的启动卷已满。(!?)有人建议清理启动,我第一次尝试按照这个(清理 /boot 分区最安全的方法是什么?)....失败了。我能得到一点帮助吗?

我似乎陷入了与 SNMP 问题中相同的 apt-get 循环,只是这次我没有收到 DISK FULL 错误,而是收到了依赖项错误。因此,我尝试使用 apt-get 删除列出的依赖项,但收到更多依赖项错误,以至于……我迷路了,几乎忘记了为什么我首先要这样做。我的最新情况:

root@MYSERVER:/dev/mapper# uname -r
4.4.0-45-generic
root@MYSERVER:/dev/mapper# dpkg --list 'linux-image*' | grep ^ii
ii  linux-image-4.4.0-45-generic        4.4.0-45.66   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-51-generic        4.4.0-51.72   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-53-generic        4.4.0-53.74   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-57-generic        4.4.0-57.78   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-59-generic        4.4.0-59.80   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-45-generic  4.4.0-45.66   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-51-generic  4.4.0-51.72   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-53-generic  4.4.0-53.74   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-57-generic  4.4.0-57.78   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
root@MYSERVER:/dev/mapper# sudo apt-get remove linux-image-4.4.0-57-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-extra-4.4.0-57-generic : Depends: linux-image-4.4.0-57-generic but it is not going to be installed
 linux-image-extra-4.4.0-62-generic : Depends: linux-image-4.4.0-62-generic but it is not going to be installed
 linux-image-extra-4.4.0-64-generic : Depends: linux-image-4.4.0-64-generic but it is not going to be installed
 linux-image-generic : Depends: linux-image-4.4.0-64-generic but it is not going to be installed
                       Recommends: thermald but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@MYSERVER:/dev/mapper# sudo apt-get remove linux-image-extra-4.4.0-57-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-extra-4.4.0-62-generic : Depends: linux-image-4.4.0-62-generic but it is not going to be installed
 linux-image-extra-4.4.0-64-generic : Depends: linux-image-4.4.0-64-generic but it is not going to be installed
 linux-image-generic : Depends: linux-image-4.4.0-64-generic but it is not going to be installed
                       Recommends: thermald but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@MYSERVER:/dev/mapper# dpkg --list 'linux-image*' | grep ^ii
ii  linux-image-4.4.0-45-generic        4.4.0-45.66   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-51-generic        4.4.0-51.72   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-53-generic        4.4.0-53.74   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-57-generic        4.4.0-57.78   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-59-generic        4.4.0-59.80   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-45-generic  4.4.0-45.66   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-51-generic  4.4.0-51.72   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-53-generic  4.4.0-53.74   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-57-generic  4.4.0-57.78   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
root@MYSERVER:/dev/mapper#

相关内容