这些问题显示在终端机上:
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-安装程序相关。
发布于 2016-12-16 23:05:03
解决这个问题的方法是手动安装(@rag2 2):
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中)。
sudo rm -rf /var/lib/update-notifier/package-data-downloads/partial/*
sudo apt-get --purge --reinstall install ttf-mscorefonts-installer结果:
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) ...发布于 2017-02-03 03:37:50
这是发射台上的错误报告。错误的原因是sourceforge.org上的http重定向,安装程序没有正确地处理这些重定向。
报告的作者提供了两个解决方案,并提供了详细的演练:
wget手动从sourceforge下载所需的文件,这样可以很好地处理重定向,然后运行dpkg-reconfigure并在需要时使用下载的文件指定目录。创建一个临时目录并下载字体:
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}然后清除失败的包。
sudo apt-get purge ttf-mscorefonts-installer重新安装包,忽略可能出现的错误:
sudo apt-get install ttf-mscorefonts-installer最后:
sudo dpkg-reconfigure ttf-mscorefonts-installer这将导致以下信息:

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

然后再按enter键。
现在字体安装得很顺利:
....
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.发布于 2017-01-30 14:03:09
版本3.4的ttf-mscorefonts-安装程序目前是坏的。Debian存储库的3.6版本工作正常。您可以相应地下载和安装包(从而修复上面提到的错误):
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。
这已经为我修复了上面提到的错误。
https://askubuntu.com/questions/829247
复制相似问题