libjpeg-turbo8-dev 破坏了软件包依赖关系 (16.04)?

libjpeg-turbo8-dev 破坏了软件包依赖关系 (16.04)?

当我尝试安装时出现此错误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

有人能帮帮我吗?谢谢!

1

跑步后sudo apt-get -f install && sudo apt-get update

2

答案1

正如评论中提到的

你有libjpeg-turbo8-devArm64 架构的软件包,如下图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

希望这可以帮助。

相关内容