![Ubuntu 19.04:无法更新,因为未配置“libcupsfilters1”](https://linux22.com/image/911884/Ubuntu%2019.04%EF%BC%9A%E6%97%A0%E6%B3%95%E6%9B%B4%E6%96%B0%EF%BC%8C%E5%9B%A0%E4%B8%BA%E6%9C%AA%E9%85%8D%E7%BD%AE%E2%80%9Clibcupsfilters1%E2%80%9D.png)
我最近从 18.04 升级到了 Ubuntu 19.04 (4.15.0-48-generic)。从那时起我就无法升级,因为apt
无法配置libcupsfilters1
。
我试过:
- 删除和/或重新安装软件包
apt-get install -f
- 跑步
autoclean
,autoremove
- 尝试安装
dpkg
到目前为止什么都没起作用。Google 搜索没有多大帮助,因为它不知怎么找不到包名称。
编辑:请求输出sudo dpkg --configure -a
dpkg: error processing package libcupsfilters1:amd64 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of libcupsfilters-dev:amd64:
libcupsfilters-dev:amd64 depends on libcupsfilters1 (= 1.20.2-0ubuntu3.1); however:
Package libcupsfilters1:amd64 is not configured yet.
dpkg: error processing package libcupsfilters-dev:amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libcupsfilters1:amd64
libcupsfilters-dev:amd64
答案1
由于其他错误提到包 (libcupsfilters1)未配置,让我们来配置它:
sudo dpkg --configure libcupsfilters1
在这种情况下,该输出给了我们答案:
dpkg: error processing package libcupsfilters1:amd64 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
使用 apt 重新安装软件包很容易:
sudo apt install --reinstall libcupsfilters1