尝试安装 php 时出现 libc-bin 错误

尝试安装 php 时出现 libc-bin 错误

我正在尝试使用以下命令将 php 更新并安装到我的 ubuntu 服务器 12.04 中:

apt-get upgrade php
apt-get install php5-curl php5-gd php5-mysql php5-pgsql

但是我总是收到这个错误:

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-34-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.2.0-34-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-34-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-server:
 linux-image-server depends on linux-image-3.2.0-33-generic; however:
  Package linux-image-3.2.0-33-generic is not configured yet.
dpkg: error processing linux-image-server (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-image-server (= 3.2.0.33.36); however:
  Package linux-image-server is not configured yet.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
Setting up libpq5 (9.1.10-0ubuntu12.04) ...
No 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
                                                                   Setting up php5-curl (5.3.10-1ubuntu3.8) ...
Setting up php5-pgsql (5.3.10-1ubuntu3.8) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-32-generic

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-32-generic with 1.
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports has already been reached
                                                                    Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 linux-image-3.2.0-33-generic
 linux-image-3.2.0-34-generic
 linux-image-server
 linux-server
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

不确定哪里出了问题以及为什么它不能处理 linux-image 文件?

答案1

与 PHP 完全无关:

某些磁盘(可能是 /boot?)空间不足:

gzip:stdout:设备上没有剩余空间

相关内容