![无法在 Ubuntu 17.04 中安装软件包](https://linux22.com/image/895520/%E6%97%A0%E6%B3%95%E5%9C%A8%20Ubuntu%2017.04%20%E4%B8%AD%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6%E5%8C%85.png)
我尝试安装如下包net-tools
但是得到的只是这个错误:
After this operation, 745 kB of additional disk space will be used.
dpkg: error processing package util-linux (--configure):
package util-linux is not ready for configuration
cannot configure (current status 'half-installed')
Errors were encountered while processing:
util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
我已经很久没有遇到过这种情况了,但我相信你需要通过以下方式解决安装一半的软件包
sudo dpkg --configure -a
sudo apt-get update
这将尝试安装缓存的包。(util-linux)