我是 Ubuntu 新手。我无法在 Ubuntu 软件中心安装任何东西。
它只是不断地给我Items Cannot be installed or removed until package catalog is repaired
。
如果我点击维修它只是给我:
Package operation failed
installArchives() failed: (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 174380 files and directories currently installed.)
Unpacking libjpeg8:amd64 (from .../libjpeg8_8d-1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libjpeg8_8d-1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libjpeg.so.8', which is also in package libjpeg-turbo8:amd64 1.2.1-0ubuntu2
configured to not write apport reports
Errors were encountered while processing:
/var/cache/apt/archives/libjpeg8_8d-1_amd64.deb
Error in function:
dpkg: dependency problems prevent configuration of printer-driver-hpijs:
printer-driver-hpijs depends on libjpeg8 (>= 8c); however:
Package libjpeg8:amd64 is not installed.
dpkg: error processing printer-driver-hpijs (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of printer-driver-hpcups:
printer-driver-hpcups depends on libjpeg8 (>= 8c); however:
Package libjpeg8:amd64 is not installed.
dpkg: error processing printer-driver-hpcups (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of hplip:
hplip depends on printer-driver-hpcups (= 3.12.6-3.1); however:
Package printer-driver-hpcups is not configured yet.
dpkg: error processing hplip (--configure):
dependency problems - leaving unconfigured
答案1
尝试这个。
使用Ctrl++打开终端Altt
输入以下内容:清除包数据库(以防其中一些已损坏)
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get -f install
然后运行
sudo dpkg --configure -a
然后再次运行
sudo apt-get -f install
如果你得到类似
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
然后失败了。否则,你可以尝试从 Ubuntu 软件中心下载软件包
顺便问一下,您是否勾选了软件源选项中的所有选项?: