14.04 LTS を実行しています。
カーネル アップデートはインストールもアンインストールもされません。ブート スペース (約 240 MB) がいっぱいになったため、sudo apt-get autoremove
、、autoclean
またはを使用してclean
もremove
機能しません。
これはすべてカーネルアップデート 3.13.0-47 から始まりました。
スペースが解放されず、次のメッセージが表示されます.....
sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 60 not to upgrade.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.13.0-47-generic (3.13.0-47.78) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.13.0-48-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-47-generic /boot/vmlinuz-3.13.0-47-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-47-generic /boot/vmlinuz-3.13.0-47-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-47-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-47-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-3.13.0-47-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-47-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.13.0-48-generic (3.13.0-48.80) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.13.0-47-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-48-generic /boot/vmlinuz-3.13.0-48-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-48-generic /boot/vmlinuz-3.13.0-48-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-48-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-48-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-3.13.0-48-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-48-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-48-generic:
linux-image-extra-3.13.0-48-generic depends on linux-image-3.13.0-48-generic; however:
Package linux-image-3.13.0-48-generic is not configured yet.
dpkg: error processing package linux-image-extra-3.13.0-48-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.13.0-48-generic; however:
Package linux-image-3.13.0-48-generic is not configured yet.
linux-image-generic depends on linux-image-extra-3.13.0-48-generic; however:
Package linux-image-extra-3.13.0-48-generic is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.13.0.48.55); however:
Package linux-image-generic is not cNo apport report written because the error message indicates it's a follow-up error from a previous failure.
No apport report written because MaxReports has already been reached
No apport report written because MaxReports has already been reached
onfigured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-image-extra-3.13.0-46-generic (3.13.0-46.79) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-46-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-46-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.13.0-46-generic (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports has already been reached
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-47-generic:
linux-image-extra-3.13.0-47-generic depends on linux-image-3.13.0-47-generic; however:
Package linux-image-3.13.0-47-generic is not configured yet.
> dpkg: error processing package linux-image-extra-3.13.0-47-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
E: Sub-process /usr/bin/dpkg returned an error code (1)
再インストールせずにこれを修正するにはどうすればよいですか? ブート領域のサイズを変更しようとしましたが、GParted では変更できません。
答え1
私も同じ問題を抱えていました。df -hを実行したところ、私のが/boot
ほぼ満杯であることがわかりました。このガイド/boot
古いバージョンの Ubuntu をアンインストールします。これでアップデートは正常に動作します。通常は、説明のない失敗メッセージではなく、ほぼいっぱいであるというエラーが表示されるので、これは少し奇妙です。