![libjpeg-turbo8-dev 破坏了软件包依赖关系 (16.04)?](https://linux22.com/image/907069/libjpeg-turbo8-dev%20%E7%A0%B4%E5%9D%8F%E4%BA%86%E8%BD%AF%E4%BB%B6%E5%8C%85%E4%BE%9D%E8%B5%96%E5%85%B3%E7%B3%BB%20(16.04)%EF%BC%9F.png)
当我尝试安装时出现此错误libjpeg-turbo8-dev
。我对 Linux 还不太熟悉,我不知道如何解决这个问题。
这是我运行时的部分输出sudo apt install libjpeg-turbo8-dev
。
The following packages have unmet dependencies:
libjpeg-turbo8-dev : Depends: libjpeg-turbo8 (= 1.4.2-0ubuntu3) but 1.4.2-0ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.
这是sudo apt-cache policy libjpeg-turbo8-dev
输出。
libjpeg-turbo8-dev:
Installed: (none)
Candidate: 1.4.2-0ubuntu3
Version table:
1.4.2-0ubuntu3 500
500 http://ports.ubuntu.com/ubuntu-ports xenial/main arm64 Packages
有人能帮帮我吗?谢谢!
跑步后sudo apt-get -f install && sudo apt-get update
答案1
正如评论中提到的
你有libjpeg-turbo8-dev
Arm64 架构的软件包,如下图apt-cache policy
所示
libjpeg-turbo8-dev:
Installed: (none)
Candidate: 1.4.2-0ubuntu3
Version table:
1.4.2-0ubuntu3 500
500 http://ports.ubuntu.com/ubuntu-ports xenial/main arm64 Packages
你收到错误:
The following packages have unmet dependencies:
libjpeg-turbo8-dev : Depends: libjpeg-turbo8 (= 1.4.2-0ubuntu3) but 1.4.2-0ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.
科斯您没有选择该软件包作为 Arm64 架构。请尝试输入
sudo apt-get install libjpeg-turbo8-dev libjpeg-turbo8=1.4.2-0ubuntu3
希望这可以帮助。