以下软件包具有未满足的依赖关系:libpulse-dev

以下软件包具有未满足的依赖关系:libpulse-dev

好的,我正在尝试从源代码构建,为此我必须安装它的依赖项。

因此其中一个依赖项如下:

karl@karl-ux303ln:~/dev/RBDOOM-3-BFG/neo(master)$ sudo apt-get install libsdl2-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 libsdl2-dev : Depends: libpulse-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

因此我检查libpulse-dev

The following packages have unmet dependencies.
 libpulse-dev : Depends: libpulse0 (= 1:4.0-0ubuntu11.1) but 1:4.0-0ubuntu11.1+kxstudio1 is to be installed
                Depends: libpulse-mainloop-glib0 (= 1:4.0-0ubuntu11.1) but 1:4.0-0ubuntu11.1+kxstudio1 is to be installed
E: Unable to correct problems, you have held broken packages.

从这里开始,我几乎陷入了困境。我知道脉冲是声音的来源,但我不知道如何解决这个问题。

我也尝试了这个答案所提供的一切:https://askubuntu.com/a/142808/130518

答案1

+kxstudio1好的,具体来说,后缀是罪魁祸首。

karl@karl-ux303ln:~/dev/RBDOOM-3-BFG/neo(master)$ apt-cache policy libpulse0
libpulse0:
  Installed: 1:4.0-0ubuntu11.1+kxstudio1
  Candidate: 1:4.0-0ubuntu11.1+kxstudio1
  Version table:
 *** 1:4.0-0ubuntu11.1+kxstudio1 0
        100 /var/lib/dpkg/status
     1:4.0-0ubuntu11.1 0
        500 http://se.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
     1:4.0-0ubuntu11 0
        500 http://se.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

安装值得信赖的列表下的那个:

sudo apt-get install libpulse0=1:4.0-0ubuntu11.1

对 进行相同操作libpulse-mainloop-glib0

现在可以安装其他软件包了!:D

我正在使用KXStudio,安装时一定用自定义包更改了包。

相关内容