- 方法参考:https://askubuntu.com/questions/585736/cant-clean-a-full-boot-because-of-unmet-dependencies
- Ubuntu 系统在一次次升级的过程中,会在 /boot 文件夹中积累多个内核文件。如图,经过多次更新后,/boot 文件夹中保存了许多内核及相关文件
- 先看一下磁盘使用情况,
- $ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 12272772 0 12272772 0% /dev
tmpfs 2458640 32896 2425744 2% /run
/dev/sdd9 39241336 25862116 11362812 70% /
tmpfs 12293196 248 12292948 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 12293196 0 12293196 0% /sys/fs/cgroup
/dev/sda 2884154032 2526650972 210973348 93% /Backup
/dev/sdb 5814216808 3493903032 2027271264 64% /Seq_data
/dev/sdd8 369639 354747 0 100% /boot
/dev/sdd10 98299524 5910048 87373108 7% /home
/dev/sdd4 104857596 385000 104472596 1% /win10/Tools
/dev/sdd12 393592316 336866044 36709888 91% /wd
/dev/sdd3 62916396 56366304 6550092 90% /win10/OS
/dev/sdd11 98299524 73378448 19904708 79% /opt
/dev/sdd1 507904 41312 466592 9% /boot/efi
/dev/sdd13 341272432 103292216 220621472 32% /share
/dev/sdd5 786430972 396949324 389481648 51% /win10/seq_data
tmpfs 2458640 92 2458548 1% /run/user/1000 - 使用 byobu 命令行工具安装后,继续在命令提示符后输入:sudo purge-old-kernels出现如下信息:
- $ sudo purge-old-kernels
- 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-101-generic : Depends: linux-image-4.4.0-101-generic but it is not going to be installed
linux-image-extra-4.4.0-103-generic : Depends: linux-image-4.4.0-103-generic but it is not going to be installed
linux-image-extra-4.4.0-112-generic : Depends: linux-image-4.4.0-112-generic but it is not going to be installed
linux-image-extra-4.4.0-97-generic : Depends: linux-image-4.4.0-97-generic but it is not going to be installed
linux-image-extra-4.4.0-98-generic : Depends: linux-image-4.4.0-98-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-112-generic but it is not going to be installed
linux-signed-image-4.4.0-101-generic : Depends: linux-image-4.4.0-101-generic (= 4.4.0-101.124) but it is not going to be installed
linux-signed-image-4.4.0-103-generic : Depends: linux-image-4.4.0-103-generic (= 4.4.0-103.126) but it is not going to be installed
linux-signed-image-4.4.0-112-generic : Depends: linux-image-4.4.0-112-generic (= 4.4.0-112.135) but it is not going to be installed
linux-signed-image-4.4.0-97-generic : Depends: linux-image-4.4.0-97-generic (= 4.4.0-97.120) but it is not going to be installed
linux-signed-image-4.4.0-98-generic : Depends: linux-image-4.4.0-98-generic (= 4.4.0-98.121) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
- 根据提示, 输入 sudo apt-get -f install
结果Reading package lists... Done - Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic linux-headers-4.4.0-103 linux-headers-4.4.0-103-generic linux-headers-4.4.0-97 linux-headers-4.4.0-97-generic
linux-headers-4.4.0-98 linux-headers-4.4.0-98-generic linux-image-4.4.0-101-generic linux-image-4.4.0-103-generic linux-image-4.4.0-97-generic linux-image-4.4.0-98-generic
linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-103-generic linux-image-extra-4.4.0-97-generic linux-image-extra-4.4.0-98-generic linux-signed-image-4.4.0-101-generic
linux-signed-image-4.4.0-103-generic linux-signed-image-4.4.0-97-generic linux-signed-image-4.4.0-98-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-image-4.4.0-112-generic
Suggested packages:
fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
The following NEW packages will be installed:
linux-image-4.4.0-112-generic
0 upgraded, 1 newly installed, 0 to remove and 228 not upgraded.
19 not fully installed or removed.
Need to get 0 B/21.9 MB of archives.
After this operation, 66.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 532106 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-112-generic_4.4.0-112.135_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
Done.
Unpacking linux-image-4.4.0-112-generic (4.4.0-112.135) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-112-generic_4.4.0-112.135_amd64.deb (--unpack):
cannot copy extracted data for './boot/System.map-4.4.0-112-generic' to '/boot/System.map-4.4.0-112-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.0-112-generic_4.4.0-112.135_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
- 再次查看旧内核 ls /boot
abi-4.4.0-101-generic initrd.img-4.4.0-101-generic System.map-4.4.0-98-generic
abi-4.4.0-103-generic initrd.img-4.4.0-103-generic System Volume Information
abi-4.4.0-104-generic initrd.img-4.4.0-104-generic vmlinuz-4.4.0-101-generic
abi-4.4.0-108-generic initrd.img-4.4.0-75-generic.old-dkms vmlinuz-4.4.0-101-generic.efi.signed
abi-4.4.0-109-generic initrd.img-4.4.0-97-generic vmlinuz-4.4.0-103-generic
abi-4.4.0-97-generic initrd.img-4.4.0-98-generic vmlinuz-4.4.0-103-generic.efi.signed
abi-4.4.0-98-generic lost+found vmlinuz-4.4.0-104-generic
config-4.4.0-101-generic memtest86+.bin vmlinuz-4.4.0-104-generic.efi.signed
config-4.4.0-103-generic memtest86+.elf vmlinuz-4.4.0-108-generic
config-4.4.0-104-generic memtest86+_multiboot.bin vmlinuz-4.4.0-109-generic
config-4.4.0-108-generic System.map-4.4.0-101-generic vmlinuz-4.4.0-97-generic
config-4.4.0-109-generic System.map-4.4.0-103-generic vmlinuz-4.4.0-97-generic.efi.signed
config-4.4.0-97-generic System.map-4.4.0-104-generic vmlinuz-4.4.0-98-generic
config-4.4.0-98-generic System.map-4.4.0-108-generic vmlinuz-4.4.0-98-generic.efi.signed
efi System.map-4.4.0-109-generic
grub System.map-4.4.0-97-generic
- 先强制删除一个不用的旧内核$ sudo dpkg --force-all -P linux-image-4.4.0-97-generic
dpkg: linux-image-4.4.0-97-generic: dependency problems, but removing anyway as you requested:
linux-signed-image-4.4.0-97-generic depends on linux-image-4.4.0-97-generic (= 4.4.0-97.120).
linux-image-extra-4.4.0-97-generic depends on linux-image-4.4.0-97-generic.
(Reading database ... 527669 files and directories currently installed.)
Removing linux-image-4.4.0-97-generic (4.4.0-97.120) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-97-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-109-generic
Found linux image: /boot/vmlinuz-4.4.0-108-generic
Found linux image: /boot/vmlinuz-4.4.0-104-generic
Found initrd image: /boot/initrd.img-4.4.0-104-generic
Found linux image: /boot/vmlinuz-4.4.0-103-generic
Found initrd image: /boot/initrd.img-4.4.0-103-generic
Found linux image: /boot/vmlinuz-4.4.0-101-generic
Found initrd image: /boot/initrd.img-4.4.0-101-generic
Found linux image: /boot/vmlinuz-4.4.0-98-generic
Found initrd image: /boot/initrd.img-4.4.0-98-generic
Found Windows Boot Manager on /dev/sdd1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Purging configuration files for linux-image-4.4.0-97-generic (4.4.0-97.120) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
- 此时的磁盘使用情况 $ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 12272772 0 12272772 0% /dev
tmpfs 2458640 10340 2448300 1% /run
/dev/sdd9 39241336 25723588 11501340 70% /
tmpfs 12293196 272 12292924 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 12293196 0 12293196 0% /sys/fs/cgroup
/dev/sda 2884154032 2526650972 210973348 93% /Backup
/dev/sdb 5814216808 3493903032 2027271264 64% /Seq_data
/dev/sdd8 369639 305114 40922 89% /boot
/dev/sdd10 98299524 5909572 87373584 7% /home
/dev/sdd11 98299524 73378448 19904708 79% /opt
/dev/sdd3 62916396 56366304 6550092 90% /win10/OS
/dev/sdd12 393592316 336866044 36709888 91% /wd
/dev/sdd4 104857596 385000 104472596 1% /win10/Tools
/dev/sdd1 507904 41312 466592 9% /boot/efi
/dev/sdd13 341272432 103292216 220621472 32% /share
/dev/sdd5 786430972 396949324 389481648 51% /win10/seq_data
tmpfs 2458640 80 2458560 1% /run/user/1000
- 再次 $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
linux-image-4.4.0-112-generic linux-image-4.4.0-97-generic
Suggested packages:
fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
The following packages will be REMOVED:
linux-image-extra-4.4.0-108-generic
The following NEW packages will be installed:
linux-image-4.4.0-112-generic linux-image-4.4.0-97-generic
0 upgraded, 2 newly installed, 1 to remove and 228 not upgraded.
11 not fully installed or removed.
Need to get 21.9 MB/43.9 MB of archives.
After this operation, 18.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/main amd64 linux-image-4.4.0-97-generic amd64 4.4.0-97.120 [21.9 MB]
Fetched 21.9 MB in 5s (4,041 kB/s)
(Reading database ... 526711 files and directories currently installed.)
Removing linux-image-extra-4.4.0-108-generic (4.4.0-108.131) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-109-generic
Found linux image: /boot/vmlinuz-4.4.0-108-generic
Found initrd image: /boot/initrd.img-4.4.0-108-generic
Found linux image: /boot/vmlinuz-4.4.0-104-generic
Found initrd image: /boot/initrd.img-4.4.0-104-generic
Found linux image: /boot/vmlinuz-4.4.0-103-generic
Found initrd image: /boot/initrd.img-4.4.0-103-generic
Found linux image: /boot/vmlinuz-4.4.0-101-generic
Found initrd image: /boot/initrd.img-4.4.0-101-generic
Found linux image: /boot/vmlinuz-4.4.0-98-generic
Found initrd image: /boot/initrd.img-4.4.0-98-generic
Found Windows Boot Manager on /dev/sdd1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
(Reading database ... 526712 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-112-generic_4.4.0-112.135_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
Done.
Unpacking linux-image-4.4.0-112-generic (4.4.0-112.135) ...
Selecting previously unselected package linux-image-4.4.0-97-generic.
Preparing to unpack .../linux-image-4.4.0-97-generic_4.4.0-97.120_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
Done.
Unpacking linux-image-4.4.0-97-generic (4.4.0-97.120) ...
Setting up initramfs-tools (0.122ubuntu8.8) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-4.4.0-108-generic (4.4.0-108.131) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-108-generic /boot/vmlinuz-4.4.0-108-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-112-generic
Found linux image: /boot/vmlinuz-4.4.0-109-generic
Found linux image: /boot/vmlinuz-4.4.0-108-generic
Found initrd image: /boot/initrd.img-4.4.0-108-generic
Found linux image: /boot/vmlinuz-4.4.0-104-generic
Found initrd image: /boot/initrd.img-4.4.0-104-generic
Found linux image: /boot/vmlinuz-4.4.0-103-generic
Found initrd image: /boot/initrd.img-4.4.0-103-generic
Found linux image: /boot/vmlinuz-4.4.0-101-generic
Found initrd image: /boot/initrd.img-4.4.0-101-generic
Found linux image: /boot/vmlinuz-4.4.0-98-generic
Found initrd image: /boot/initrd.img-4.4.0-98-generic
Found linux image: /boot/vmlinuz-4.4.0-97-generic
Found Windows Boot Manager on /dev/sdd1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Setting up linux-image-4.4.0-109-generic (4.4.0-109.132) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-109-generic /boot/vmlinuz-4.4.0-109-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-109-generic /boot/vmlinuz-4.4.0-109-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-109-generic /boot/vmlinuz-4.4.0-109-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-109-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-109-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-109-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-109-generic (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-109-generic:
linux-image-extra-4.4.0-109-generic depends on linux-image-4.4.0-109-generic; however:
Package linux-image-4.4.0-109-generic is not configured yet.
dpkg: error processing package linux-image-extra-4.4.0-109-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-image-4.4.0-112-generic (4.4.0-112.135) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-109-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-112-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-112-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-112-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-112-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-112-generic:
linux-image-extra-4.4.0-112-generic depends on linux-image-4.4.0-112-generic; however:
Package linux-image-4.4.0-112-generic is not configured yet.
dpkg: error processing package linux-image-extra-4.4.0-112-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-4.4.0-112-generic; however:
Package linux-image-4.4.0-112-generic is not configured yet.
linux-image-generic depends on linux-image-extra-4.4.0-112-generic; however:
Package linux-image-extra-4.4.0-112-generic is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-4.4.0-112-generic:
linux-signed-image-4.4.0-112-generic depends on linux-image-4.4.0-112-generic (= 4.4.0-1No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
12.135); however:
Package linux-image-4.4.0-112-generic is not configured yet.
dpkg: error processing package linux-signed-image-4.4.0-112-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-generic:
linux-signed-image-generic depends on linux-signed-image-4.4.0-112-generic; however:
Package linux-signed-image-4.4.0-112-generic is not configured yet.
linux-signed-image-generic depends on linux-image-extra-4.4.0-112-generic; however:
Package linux-image-extra-4.4.0-112-generic is not configured yet.
dpkg: error processing package linux-signed-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-generic:
linux-signed-generic depends on linux-signed-image-generic (= 4.4.0.112.118); however:
Package linux-signed-image-generic is not configured yet.
dpkg: error processing package linux-signed-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-4.4.0-109-generic:
linux-signed-image-4.4.0-109-generic depends on linux-image-4.4.0-109-generic (= 4.4.0-109.132); however:
Package linux-image-4.4.0-109-generic is not configured yet.
dpkg: error processing package linux-signed-image-4.4.0-109-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-image-4.4.0-97-generic (4.4.0-97.120) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-112-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-97-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-97-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-97-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-97-generic (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-108-generic
Errors were encountered while processing:
linux-image-4.4.0-109-generic
warning: file-aligned section .text extends beyond end of file
warning: checksum areas are greater than image size. Invalid section table?
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-112-generic
Found initrd image: /boot/initrd.img-4.4.0-112-generic
Found linux image: /boot/vmlinuz-4.4.0-109-generic
Found initrd image: /boot/initrd.img-4.4.0-109-generic
Found linux image: /boot/vmlinuz-4.4.0-104-generic
Found initrd image: /boot/initrd.img-4.4.0-104-generic
Found Windows Boot Manager on /dev/sdd1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Setting up linux-signed-image-generic (4.4.0.112.118) ...
Setting up linux-signed-generic (4.4.0.112.118) ...
Setting up linux-signed-image-4.4.0-109-generic (4.4.0-109.132) ...
warning: file-aligned section .text extends beyond end of file
warning: checksum areas are greater than image size. Invalid section table?
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-112-generic
Found initrd image: /boot/initrd.img-4.4.0-112-generic
Found linux image: /boot/vmlinuz-4.4.0-109-generic
Found initrd image: /boot/initrd.img-4.4.0-109-generic
Found linux image: /boot/vmlinuz-4.4.0-104-generic
Found initrd image: /boot/initrd.img-4.4.0-104-generic
Found Windows Boot Manager on /dev/sdd1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done - $ sudo purge-old-kernels
不能清理/boot文件夹, Unmet dependencies 错误
最新推荐文章于 2023-02-06 16:50:52 发布