我正在尝试安装 GoAccess (https://goaccess.io) 在 Ubuntu 16.04.2 LTS 上,我按照这个教程进行操作 -https://www.vultr.com/docs/how-to-install-goaccess-on-ubuntu-16-04
因此,当我输入以下命令时 -
sudo apt-get -y upgrade
它引发了我以下错误 -
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-75-generic : Depends: linux-image-4.4.0-75-generic but it is not installed
linux-image-extra-4.4.0-96-generic : Depends: linux-image-4.4.0-96-generic but it is not installed
linux-image-generic : Depends: linux-image-4.4.0-96-generic but it is not installed
Recommends: thermald but it is not installed
E: Unmet dependencies. Try using -f.
然后我尝试了以下命令 -
sudo apt-get -f install
但它以一个错误结束 -
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.0-96-generic_4.4.0-96.119_amd64.deb
/var/cache/apt/archives/linux-image-4.4.0-75-generic_4.4.0-75.96_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
因此我想单独安装依赖项,并执行以下命令 -
sudo apt-get -f install linux-image-4.4.0-75-generic linux-image-extra-4.4.0-75-generic linux-image-4.4.0-96-generic
但此命令最终出现以下错误 -
Unpacking linux-image-4.4.0-75-generic (4.4.0-75.96) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-75-generic_4.4.0-75.96_amd64.deb (--unpack):
cannot copy extracted data for './boot/vmlinuz-4.4.0-75-generic' to '/boot/vmlinuz-4.4.0-75-generic.dpkg-new': failed to write (No space left on device)
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-75-generic /boot/vmlinuz-4.4.0-75-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-75-generic /boot/vmlinuz-4.4.0-75-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.0-96-generic_4.4.0-96.119_amd64.deb
/var/cache/apt/archives/linux-image-4.4.0-75-generic_4.4.0-75.96_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
有人能帮我吗?谢谢
答案1
实际上我找到了答案,那就是行李箱空间不足。这是对我有用的答案 -https://askubuntu.com/a/171225/742040