Kali-Linux

無法安裝pulseaudio

  • April 19, 2020
#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 

問題來自您kali-experimentalkali-last-snapshotsources.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

卡利分行

Kali 網路儲存庫 (/etc/apt/sources.list)

kali-linux上的sudo?

引用自:https://unix.stackexchange.com/questions/579029