Linux-image:任何更新的问题

时间:2018-05-06 16:56:47

标签: ubuntu

使用ubuntu 16.04的VPS。使用Apache,两个版本的PHP - 5.6(活动)和7.0。 我需要为PHP 5.6安装SOAP模块。命令:

apt-get install php-soap

The following packages were automatically installed and are no longer required:
  libssl1.0.2 linux-headers-4.4.0-108 linux-headers-4.4.0-108-generic linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic
  linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic linux-headers-4.4.0-78
  linux-headers-4.4.0-78-generic linux-headers-4.4.0-79 linux-headers-4.4.0-79-generic linux-headers-4.4.0-81
  linux-headers-4.4.0-81-generic linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic linux-headers-4.4.0-87
  linux-headers-4.4.0-87-generic linux-headers-4.4.0-89 linux-headers-4.4.0-89-generic linux-headers-4.4.0-92
  linux-headers-4.4.0-92-generic linux-image-4.4.0-108-generic linux-image-4.4.0-21-generic linux-image-4.4.0-72-generic
  linux-image-4.4.0-75-generic linux-image-4.4.0-78-generic linux-image-4.4.0-79-generic linux-image-4.4.0-81-generic
  linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic linux-image-4.4.0-89-generic linux-image-4.4.0-92-generic
  linux-image-extra-4.4.0-108-generic linux-image-extra-4.4.0-21-generic linux-image-extra-4.4.0-72-generic
  linux-image-extra-4.4.0-75-generic linux-image-extra-4.4.0-78-generic linux-image-extra-4.4.0-79-generic
  linux-image-extra-4.4.0-81-generic linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic
  linux-image-extra-4.4.0-89-generic linux-image-extra-4.4.0-92-generic
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up initramfs-tools (0.122ubuntu8.11) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-4.4.0-121-generic (4.4.0-121.145) ...
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-121-generic
vmlinuz(/boot/vmlinuz-4.4.0-121-generic
) points to /boot/vmlinuz-4.4.0-121-generic
 (/boot/vmlinuz-4.4.0-121-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.4.0-121-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-121-generic /boot/vmlinuz-4.4.0-121-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-121-generic

gzip: stdout: No space left on device
E: mkinitramfs failure find 141 cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-121-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-121-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-121-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-121-generic:
 linux-image-extra-4.4.0-121-generic depends on linux-image-4.4.0-121-generic; however:
  Package linux-image-4.4.0-121-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-121-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-121-generic; however:
  Package linux-image-4.4.0-121-generic is not configured yet.
 linux-image-generic depends on linux-image-extra-4.4.0-121-generic; however:
  Package linux-image-extra-4.4.0-121-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 (= 4.4.0.121.127); however:
  Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
Setting up linux-image-4.4.0-108-generic (4.4.0-108.131) ...
Internal Error: Could not find image (/boot/vmlinuz-4.4.0-108-generic)
dpkg: error processing package linux-image-4.4.0-108-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-108-generic:
 linux-image-extra-4.4.0-108-generic depends on linux-image-4.4.0-108-generic; however:
  Package linux-image-4.4.0-108-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-108-generic (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.122ubuntu8.11) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-119-generic

gzip: stdout: No space left on device
E: mkinitramfs failure find 141 cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-119-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-4.4.0-121-generic
 linux-image-extra-4.4.0-121-generic
 linux-image-generic
 linux-generic
 linux-image-4.4.0-108-generic
 linux-image-extra-4.4.0-108-generic
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

linux-image的问题出现在任何带有apt-get install的命令中。

建议在该问题的一个解决方案中删除文件夹/ root中的所有文件版本(ex config-4.4.0-89-generic,initrd.img-4.4.0-75-generic),最后两个版本除外,但没有帮助 - 当apt-get update和apt-get upgrade重新下载所有文件时再次出现dpkg问题。

1 个答案:

答案 0 :(得分:0)

我可能会迟到,但请查看:https://askubuntu.com/questions/345588/what-is-the-safest-way-to-clean-up-boot-partition

我认为您的问题是,您的/ boot分区已满(100%),请使用命令检查 df -h