首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装ttf-mscorefonts安装程序包。

无法安装ttf-mscorefonts安装程序包。
EN

Ask Ubuntu用户
提问于 2016-09-24 21:36:59
回答 4查看 44.5K关注 0票数 21

这些问题显示在终端机上:

代码语言:javascript
复制
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/andale32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/arial32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

类似地,许多其他文件与ttf-mscorefonts-安装程序相关。

EN

回答 4

Ask Ubuntu用户

发布于 2016-12-16 23:05:03

解决这个问题的方法是手动安装(@rag2 2):

代码语言:javascript
复制
wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb
sudo dpkg -i ttf-mscorefonts-installer_3.6_all.deb

详细信息:https://gist.github.com/melvincabatuan/26f3ac4ace4be3a8b48d85a1b3250982

不幸的是,以下答案没有为我工作(在Ubuntu16.04中)。

代码语言:javascript
复制
sudo rm -rf /var/lib/update-notifier/package-data-downloads/partial/*
sudo apt-get --purge --reinstall install ttf-mscorefonts-installer

结果:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  ubuntu-core-launcher
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 34 not upgraded.
Need to get 0 B/29.5 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 286132 files and directories currently installed.)
Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu2_all.deb ...
mscorefonts-eula license has already been accepted
Unpacking ttf-mscorefonts-installer (3.4+nmu1ubuntu2) over (3.4+nmu1ubuntu2) ...
Processing triggers for fontconfig (2.11.94-0ubuntu1.1) ...
Processing triggers for update-notifier-common (3.168.3) ...
ttf-mscorefonts-installer: processing...
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
Get:1 http://downloads.sourceforge.net/corefonts/andale32.exe [361 B]
Err:1 http://downloads.sourceforge.net/corefonts/andale32.exe                  
  404  Not Found
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/andale32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch https://ncu.dl.sourceforge.net/project/corefonts/the fonts/final/andale32.exe  404  Not Found

E: Download Failed
Setting up ttf-mscorefonts-installer (3.4+nmu1ubuntu2) ...
票数 32
EN

Ask Ubuntu用户

发布于 2017-02-03 03:37:50

这是发射台上的错误报告。错误的原因是sourceforge.org上的http重定向,安装程序没有正确地处理这些重定向。

报告的作者提供了两个解决方案,并提供了详细的演练:

  • 第一种方法是从debian站点中选择cherrypick v3.6,如其他答案中提到的那样。
  • 另一种方法是用wget手动从sourceforge下载所需的文件,这样可以很好地处理重定向,然后运行dpkg-reconfigure并在需要时使用下载的文件指定目录。

创建一个临时目录并下载字体:

代码语言:javascript
复制
mkdir /tmp/mscoref
cd /tmp/mscoref
wget http://downloads.sourceforge.net/corefonts/{andale32.exe,arial32.exe,arialb32.exe,comic32.exe,courie32.exe,georgi32.exe,impact32.exe,times32.exe,trebuc32.exe,verdan32.exe,webdin32.exe}

然后清除失败的包。

代码语言:javascript
复制
sudo apt-get purge ttf-mscorefonts-installer

重新安装包,忽略可能出现的错误:

代码语言:javascript
复制
sudo apt-get install ttf-mscorefonts-installer

最后:

代码语言:javascript
复制
sudo dpkg-reconfigure ttf-mscorefonts-installer

这将导致以下信息:

enter;在框中键入下载文件的路径(注意:此处.不适用于我):

然后再按enter键。

现在字体安装得很顺利:

代码语言:javascript
复制
....
Extracting cabinet: /tmp/mscoref/webdin32.exe
  extracting fontinst.exe
  extracting Webdings.TTF
  extracting fontinst.inf
  extracting Licen.TXT

All done, no errors.
All fonts downloaded and installed.

所有的学分都应该交给从发射台上抢劫猿猴

票数 17
EN

Ask Ubuntu用户

发布于 2017-01-30 14:03:09

版本3.4的ttf-mscorefonts-安装程序目前是坏的。Debian存储库的3.6版本工作正常。您可以相应地下载和安装包(从而修复上面提到的错误):

代码语言:javascript
复制
wget http://ftp.us.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb
sudo dpkg -i ttf-mscorefonts-installer_3.6_all.deb

可供选择的区域存储库位于https://packages.debian.org/sid/all/ttf-mscorefonts-installer/download

这已经为我修复了上面提到的错误。

票数 10
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/829247

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档