kali-rolling(預設且經常更新)

kali-rolling(預設且經常更新)
#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-experimentalkali-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

卡利分行

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

kali-linux 上的 Sudo?

答案2

當它說您持有破損的包裹時,您可以使用:

dpkg -l | grep "^hi"

去找到他們。如何處理它們是您的選擇,並且取決於它們被關押的原因。

保留的軟體包意味著由於某種原因(手動或策略或您擁有的原因),這些軟體包被設定為特定版本。如果您在該版本中不需要它們,您可以停止保留它們並進行完整升級/更新並安裝pulse。

相關內容