这些是终端上显示的问题:
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)
Run Code Online (Sandbox Code Playgroud)
与 ttf-mscorefonts-installer 相关的许多其他文件类似。
小智 31
解决问题的方法是手动安装(@rag2):
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
Run Code Online (Sandbox Code Playgroud)
详情:https : //gist.github.com/melvincabatuan/26f3ac4ace4be3a8b48d85a1b3250982
不幸的是,以下答案对我不起作用(在 Ubuntu 16.04 中)。
sudo rm -rf /var/lib/update-notifier/package-data-downloads/partial/*
sudo apt-get --purge --reinstall install ttf-mscorefonts-installer
Run Code Online (Sandbox Code Playgroud)
结果:
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) ...
Run Code Online (Sandbox Code Playgroud)
小智 17
这是启动板上的错误报告。错误的原因是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}
Run Code Online (Sandbox Code Playgroud)
然后清除失败的包
sudo apt-get purge ttf-mscorefonts-installer
Run Code Online (Sandbox Code Playgroud)
重新安装软件包,忽略可能的错误:
sudo apt-get install ttf-mscorefonts-installer
Run Code Online (Sandbox Code Playgroud)
最后:
sudo dpkg-reconfigure ttf-mscorefonts-installer
Run Code Online (Sandbox Code Playgroud)
这将导致此消息:
按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.
Run Code Online (Sandbox Code Playgroud)
小智 10
ttf-mscorefonts-installer 的 3.4 版当前已损坏。来自 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
Run Code Online (Sandbox Code Playgroud)
替代区域存储库位于https://packages.debian.org/sid/all/ttf-mscorefonts-installer/download。
这为我修复了上述错误。
小智 0
使用此命令来修复问题:
sudo rm -rf /var/lib/update-notifier/package-data-downloads/partial/*
sudo apt-get --purge --reinstall install ttf-mscorefonts-installer\
Run Code Online (Sandbox Code Playgroud)
在这里检查其他解决方案:How to make ttf-mscorefonts-installer package download fonts, after it said it install?
| 归档时间: |
|
| 查看次数: |
40174 次 |
| 最近记录: |