运行错误:apt-get install ttf-mscorefonts-installer

运行错误:apt-get install ttf-mscorefonts-installer

我尝试在 Ubuntu 14.04 LTS 上安装 MS Core 字体,但遇到以下错误:

vagrant@vagrant-ubuntu-trusty-64:~$ sudo apt-get install ttf-mscorefonts-installer
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:
 ttf-mscorefonts-installer : Depends: cabextract but it is not installable
E: Unable to correct problems, you have held broken packages.

运行dpkg --get-selections | grep hold没有返回任何内容,并且我在 apt-get 中找不到名为 的包cabextract

从我在 Google 上搜索到的所有内容来看,安装 MS Core 字体相对简单,所以我有点不知所措。我该如何解决这个问题并安装核心字体?

编辑:

这是我的/etc/apt/sources.list文件

#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################

###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted multiverse

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted multiverse

答案1

cabextractuniverse存储库中,如果您更新 /etc/apt/sources.list:

#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################

###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse

然后运行

sudo apt-get update
sudo apt-get -f install

apt 将安装 cabextract 以满足部分安装的 ttf-mscorefonts-installer 的依赖关系。如果此操作无效,请sudo apt-get install ttf-mscorefonts-installer重试。

答案2

您是否尝试过这个:

sudo apt-get clean    
sudo apt-get install --reinstall ttf-mscorefonts-installer

相关内容