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

Jul*_*don 106 apt fonts

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

我不断收到与以下相关的可怕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
Run Code Online (Sandbox Code Playgroud)

也不行。我只是从停止它工作的 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) ...
Run Code Online (Sandbox Code Playgroud)

它无法下载的具体点发生了变化 - 这似乎是一个 sourceforge 可靠性问题,但现在这种情况已经持续了数周,并且总是导致烦人的弹出窗口。

我们如何解决这个问题和/或我现在如何解决它。

Dav*_*ter 98

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

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

    sudo apt update
    sudo apt upgrade -f
    
    Run Code Online (Sandbox Code Playgroud)

    这告诉 Apt

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

  • @mdesantis:是的,就像我说的,Canonical 的存储库中还没有可用的新版本。您是否阅读了第 1 步以外的内容? (3认同)
  • 不:`ttf-mscorefonts-installer 已经是最新版本(3.4+nmu1ubuntu2)了。`真烦人! (2认同)

小智 93

遇到了同样的问题,在网上找到了对我有用的解决方案,其他“解决方案”不起作用:

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)

  • 这应该是公认的答案 (15认同)
  • 通常使用 gdebi 是一个更好的主意,因为它会安装依赖项(如果有的话。):) (10认同)
  • @Toroklev:整个 Ubuntu 都是基于 Debian 的。正如其他答案所指出的那样,Ubuntu 存储库没有最新版本(只有 3.4),因此如果您想要修复此问题,您可以 a)等到他们这样做,或者 b)直接从 Debian 存储库获取 3.6 版本,然后手动安装。 (8认同)
  • TorokLev 这样做会很好,但 ubuntu 不断破坏他们的包。遗憾的是,它在 18.04 中再次被破坏,debian 包仍然运行良好。 (4认同)
  • 18.10 和 19.04 也被打破了......严重! (2认同)

归档时间:

查看次数:

60027 次

最近记录:

8 年,11 月 前