2014-06-27 74 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