#apt-get install pulseaudio
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:
pulseaudio : Depends: libpulse0 (= 13.0-3) but 13.0-5 is to be installed
Depends: pulseaudio-utils but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我的/etc/apt/sources.list
:
deb http.kali.org/kali kali-last-snapshot main non-free contrib
deb http.kali.org/kali kali-experimental main non-free contrib
deb-src http.kali.org/kali kali-rolling main non-free contrib
答案1
问题来自kali-experimental
您kali-last-snapshot
的sources.list。
在 kali linux 上切换分支不会造成问题,但混合会造成问题。
你可能有一次启用多个分支。然而,切换分支可能会带来问题,因为软件包可能处于不同的版本,并且在某些情况下不可用或不稳定。
为了解决这个问题,你只需要使用一个 kali-linux 分支,三种选择(在 kali-linux 文档上解释:Debian's Relation):
kali-rolling
(默认且经常更新)
您/etc/apt/sources.list
应该只包含:
deb http://http.kali.org/kali kali-rolling main non-free contrib
您可以使用以下命令:
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee /etc/apt/sources.list
kali-last-snapshot
(debian 稳定版等效项)
您的 /etc/apt/sources.list 应仅包含:
deb http://http.kali.org/kali kali-last-snapshot main non-free contrib
命令行:
echo "deb http://http.kali.org/kali kali-last-snapshot main non-free contrib" | sudo tee /etc/apt/sources.list
kali-experimental
(正在测试的软件包 - 通常与滚动存储库一起使用)
您/etc/apt/sources.list
可能只包含:
deb http://http.kali.org/kali kali-experimental main non-free contrib
命令行:
echo "deb http://http.kali.org/kali kali-experimental main non-free contrib" | sudo tee -a /etc/apt/sources.list
完成后,运行以下命令:
sudo apt update
sudo apt dist-upgrade
答案2
当它说您持有破损的包裹时,您可以使用:
dpkg -l | grep "^hi"
去找到他们。如何处理它们是您的选择,并且取决于它们被关押的原因。
保留的软件包意味着由于某种原因(手动或策略或您拥有的原因),这些软件包被设置为特定版本。如果您在该版本中不需要它们,您可以停止保留它们并进行完整升级/更新并安装pulse。