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

当我尝试从ubuntu软件中心安装任何软件时,它会出现错误:

An unhandled error occured There seems to be a programming error in aptdaemon. This is the software that allows you to install/remove software and to perform other package management related tasks. details 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. 

请帮我!

当您中断安装或删除Wine时,可能会导致此错误。

尝试在终端会话中运行以下命令:

 sudo dpkg --configure -a sudo apt-get update sudo apt-get upgrade 

编辑:

当您在终端窗口中看到显示“包配置 –

 ┌─────────────────┤ Configuring ttf-mscorefonts-installer ├─────────────────┐ 

按选项卡或我认为箭头键直到“确定”突出显示。

然后按Enter键接受许可协议

  • 如何接受ttf-mscorefonts-installer的Microsoft EULA协议?

你在运行什么版本的Ubuntu? (我会将此作为评论添加到您的问题中,但我找不到按钮。)

错误消息似乎表明它只是aptdaemon或软件中心的一个错误,您可能希望在bugs.ubuntu.com上重新发布。

你可能会做的是运行Synaptic Package Manager,在左下角的Custom Filters下,单击左侧的Brokenfilter,然后尝试重新安装所有出现的软件包(如果有的话)。