每次我尝试安装任何软件包时,都会出现相同的错误。它指的是与任何软件包相同的依赖关系。这导致软件中心崩溃。
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
sync-my-l2p:i386 : Depends: libqt5core5a:i386 (>= 5.2.0) but it is not installed
Depends: libqt5gui5:i386 (>= 5.0.2) but it is not installed or
libqt5gui5-gles:i386 (>= 5.0.2) but it is not installable
Depends: libqt5network5:i386 (>= 5.0.2) but it is not installed
Depends: libqt5widgets5:i386 (>= 5.0.2) but it is not installed
Depends: libqt5xml5:i386 (>= 5.0.2) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
每次我尝试安装任何软件包时都会发生同样的情况。
输出
laptop:~$ apt-mark showhold
laptop:~$ sudo apt-get install sync-my-l2p:i386 libqt5core5a:i386 libqt5gui5:i386 libqt5network5:i386 libqt5widgets5:i386 libqt5xml5:i386
[sudo] password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
sync-my-l2p:i386 is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libqt5core5a:i386 : Depends: libicu52:i386 (>= 52~m1-1~) but it is not going to be installed
libqt5gui5:i386 : Depends: libegl1-mesa:i386 (>= 7.8.1) or
libegl1-x11:i386
Depends: libgbm1:i386 (>= 8.1~0) but it is not going to be installed
Depends: libgles2-mesa:i386 (>= 7.8.1) or
libgles2:i386
Depends: libqt5dbus5:i386 (>= 5.0.2) but it is not going to be installed
Depends: libxcb-icccm4:i386 (>= 0.4.1) but it is not going to be installed
Depends: libxcb-image0:i386 (>= 0.3.9) but it is not going to be installed
Depends: libxcb-keysyms1:i386 (>= 0.3.9) but it is not going to be installed
Depends: libxcb-randr0:i386 (>= 1.3) but it is not going to be installed
Depends: libxcb-render-util0:i386 (>= 0.3.8) but it is not going to be installed
Depends: libxcb-shape0:i386 but it is not going to be installed
Depends: libxcb-xfixes0:i386 but it is not going to be installed
Depends: libxcb-xkb1:i386 but it is not going to be installed
Depends: libxkbcommon-x11-0:i386 (>= 0.4.0) but it is not going to be installed
libqt5network5:i386 : Depends: libqt5dbus5:i386 (>= 5.0.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
遇到新错误 !!!
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
答案1
由于 apt-get 无法安装依赖项,我认为您安装了错误架构的软件。尝试清除 sync-my-l2p
。您可以使用以下命令:
sudo apt-get purge sync-my-l2p
sudo dpkg -P sync-my-l2p
然后使用:
sudo apt-get autoremove
如果您想再次安装 sync-my-l2p,请尝试找到 amd64 版本。
问候
答案2
尝试升级libqt5gui5使用sudo apt-get upgrade libqt5gui5
。