我最近从 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