我是 Ubuntu 新手。
我正在尝试安装一个新的应用程序,但出现了未满足的依赖性错误。
输入命令后sudo apt-get install
,出现此错误:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-extra-4.4.0-87-generic : Depends: linux-image-4.4.0-87-generic but it is not going to be installed
linux-image-extra-4.4.0-92-generic : Depends: linux-image-4.4.0-92-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-92-generic but it is not going to be installed
Recommends: thermald but it is not going to be installed
但是,在我运行该命令之后sudo apt-get -f install
,它仍然出现相同的未满足依赖项错误:
dpkg: error processing archieve/var/cache/apt/archives/linux-image-4.4.0-92-generic.dpkg: erro processing archives /var/cache/apt/archieves/linux-image-4.4.0-92-generic_4.4.0-92.115_amd64.deb (--unpack):
cannot copy extracted data for './boot/abi-4.4.0-92-generic' to '/boot/abi-4.4.0-92-generic-new': failed to written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
^[[BExamining /etc/kernel/postrm.d
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
run-parts:executing /etc/kernel/postrm.d/zz-update-grub 4.4.92-generic /boot/vmlinuz-4.4.0-92generic
Errors were encounted while processing:
/var/cache/apt/archives/linux-image-4.4.0-92-generic_4.4.0-92.115_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
错误消息表明磁盘已满
这里的关键是:似乎没有足够的可用磁盘空间来安装未满足的依赖项,并且在这些问题未得到解决之前,软件包系统拒绝安装新的软件包。
通过移动文件、清空垃圾箱等释放一些空间sudo apt clean
,然后使用修复包系统,sudo apt-get -f install
您就可以开始了。
旧的内核映像往往会占用大量的磁盘空间,此问题显示了如何删除它们:如何删除旧内核版本来清理启动菜单?
如果您的启动分区已满,并且由于未满足的依赖关系而无法删除旧内核映像,则此问题可以提供帮助: 启动分区已满,无法删除旧内核。软件包损坏