无法下载额外的数据文件 - ttf-mscorefonts-installer

无法下载额外的数据文件 - ttf-mscorefonts-installer

这是一个老问题,值得修复,但现在它已经不再是一个笑话了,我似乎无法解决它。

failed To download extra data files我不断收到与以下内容相关的可怕错误ttf-mscorefonts-installer

截图1

反复要求它再试一次没有帮助,此外,反复尝试-

sudo rm -rf /var/lib/update-notifier/package-data-downloads/partial/*
sudo apt-get --purge --reinstall install ttf-mscorefonts-installer

也不起作用。我刚刚从其中一个 sourceforge 链接收到至少一个 404 错误,导致它停止工作-

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 20 not to upgrade.
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 ... 352049 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.2) ...
ttf-mscorefonts-installer: processing...
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
Get:1 http://downloads.sourceforge.net/corefonts/andale32.exe [198 kB]
Fetched 198 kB in 0s (339 kB/s)                                                
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)
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe
Get:1 http://downloads.sourceforge.net/corefonts/arial32.exe [554 kB]
Fetched 554 kB in 0s (575 kB/s)                                                
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-installer: downloading http://downloads.sourceforge.net/corefonts/arialb32.exe
Get:1 http://downloads.sourceforge.net/corefonts/arialb32.exe [168 kB]
Fetched 168 kB in 0s (306 kB/s)                                                
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/arialb32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/comic32.exe
Err:1 http://downloads.sourceforge.net/corefonts/comic32.exe
  404  Not Found
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/comic32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch https://netix.dl.sourceforge.net/project/corefonts/the fonts/final/comic32.exe  404  Not Found

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

下载失败的具体时间点发生了变化 - 这似乎是 sourceforge 的可靠性问题,但这种情况已经持续了数周,并导致一直出现如上所述的烦人的弹出窗口。

我们该如何修复这个问题以及/或者我现在该如何解决它。

答案1

启动板错误#1607535 #1651923已在 Xenial 和 Yakkety 的 Apt 的“更新”存储库中修复。

  1. 如果您使用的是 Ubuntu Xenial 或更高版本(16.04+),请确保“更新”存储库已启用并更新存储库信息和您的软件包:

    sudo apt update
    sudo apt upgrade -f
    

    这告诉 Apt

    • 升级所有可以通过新版本轻松替换的软件包,并且
    • 尝试修复该过程中所有不一致的包(-f)。
  2. 如果修复版本不适用于你的 Ubuntu 版本你可以下载 Debian 版本的ttf-mscorefonts-installer不受此错误影响并使用软件中心安装它或在命令行上

答案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

相关内容