救命! 我通过部分安装ubuntu-restricted-extras打破了apt-get

可能重复:
由于ttf-mscorefonts-installer软件包错误,无法从软件中心安装任何软件

我试图从命令行安装ubuntu-restricted-extras,如下所示: 无法播放DVD与电影播放器

接近结束时,我来到了EULA屏幕,不让我经过它。 单击确定,按Enter键,没有任何效果。

在中止该安装尝试后,我发现尝试安装任何内容会导致以下消息:

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 961, in simulate trans.unauthenticated = self._simulate_helper(trans) File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1085, in _simulate_helper return depends, self._cache.required_download, \ File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 226, in required_download pm.get_archives(fetcher, self._list, self._records) SystemError: E:I wasn't able to locate file for the ttf-mscorefonts-installer package. This might mean you need to manually fix this package. 

(以上是尝试从软件中心安装7zip。)

如何撤消我所做的事情? 告诉我如何在不重新安装操作系统的情况下解决这个问题。

我不是特别擅长Linux,所以请帮助我理解我如何调查这个问题,并希望重新获得安装软件的能力,而无需重新安装操作系统。

这是一篇关于apt-getrest时该怎么做的好文章。 http://www.linux.com/archive/feed/48910

基本上,尝试使用-f标志重新安装(强制)违规包。 如果这不起作用,请尝试删除,然后使用-f标志。

此外 – Ubuntu安装程序似乎没有积极鼓励的一个好习惯是在不同的分区上安装/ home和/,这样您就可以自由地重新安装核心操作系统而不会影响大多数设置,这使得从致命中恢复问题更容易。 当你还在学习的时候提示。

回溯(最近一次调用最后一次):文件“/usr/lib/python2.7/dist-packages/aptdaemon/worker.py”,第961行,在模拟trans.unauthenticated = self._simulate_helper(trans)文件“/ usr / lib / python2.7 / dist-packages / aptdaemon / worker.py“,第1085行,_simulate_helper返回依赖,self._cache.required_download,\ File”/usr/lib/python2.7/dist-packages/apt/cache .py“,第226行,在required_download pm.get_archives(fetcher,self._list,self._records)SystemError:E:

我无法找到ttf-mscorefonts-installer软件包的文件。 这可能意味着您需要手动修复此程序包。