2014-06-27 73 views
0

當我試圖修復我的linux薄荷錯誤,我不小心,刪除軟件包列表,現在我不能安裝任何東西,我該如何解決這個問題?軟件包列表 - linux mint

我與Linux初學者..

我使用Linux Mint的16佩特拉伴侶版。

如下日誌:

[email protected] /etc/apt $ sudo apt-get install ubuntu-tweak 
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: 
ubuntu-tweak : Depends: python-compizconfig but it is not installable 
E: Unable to correct problems, you have held broken packages. 
+0

對不起的英語..:/ –

回答

0

你怎麼刪除您的軟件包列表?您應該能夠通過在Linux Mint網站上查找官方存儲庫列表來恢復它,然後確保您的/etc/apt/sources.list.d/official-package-repositories.list與他們擁有的相匹配。

首先,我會運行sudo apt-get update,以便查看缺少的內容。這本身可以解決你的問題。

+0

謝謝WilliE,它完美的作品。 –

0

請嘗試以下操作。

sudo add-apt-repository ppa:tualatrix/ppa 
sudo apt-get update 
sudo apt-get install ubuntu-tweak 
+0

解釋爲什麼這會起作用。 – Schemetrical

+0

#將tualatrix個人包檔案添加到您的本地apt庫存列表 – James

+0

#將tualatrix個人包檔案添加到您的本地apt庫列表。 tualatrix ppa是ubuntu-tweak的存儲位置 sudo add-apt-repository ppa:tualatrix/ppa #然後更新可用的可安裝軟件包列表。所以運行「 sudo apt-get update」 #然後在ubuntu-tweak軟件包上運行apt-get install。然後運行 「sudo apt-get install ubuntu-tweak」 – James