ttf-mscorefonts-installer 数据下载错误弹出

ttf-mscorefonts-installer 数据下载错误弹出

我该如何解决此错误消息,以便不再看到 ttf-mscorefonts-installer 错误弹出?

显然,这不是许可证接受问题。似乎是因为 libcurl 中已弃用 http 协议,而安装程序正在尝试从 http 网站访问 exe 文件。

sudo apt-get install --reinstall ttf-mscorefonts-installer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 18 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 ... 307868 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
Err:1 h ttp://downloads.sourceforge.net/corefonts/andale32.exe
  Protocol "http" not supported or disabled in libcurl
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 ://heanet.dl.sourceforge.net/project/corefonts/the fonts/final/andale32.exe  Protocol "http" not supported or disabled in libcurl

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

(注意 - 由于我的声誉点数不足,我添加了额外的空格来断开链接!)

答案1

最新版本似乎有一个错误ttf-mscorefonts-installer,但这里有一个解决方法。

首先将其完全卸载,以确保当您稍后安装它时您接受 EULA。

sudo apt remove --purge ttf-mscorefonts-installer

然后再次安装,并按照所述确保您接受 EULA,方法是按 Tab 键直到“确定”字段突出显示,然后按Return

sudo apt-get install ttf-mscorefonts-installer

到现在为止,您可能仍然面临相同的错误,现在我们将通过在/tmp目录中创建一个文件夹并将字体下载到其中来改变这一错误。

TMP=$(mktemp -d)
cd "$TMP"
awk '/Url/ {system("wget "$2)}' /usr/share/package-data-downloads/ttf-mscorefonts-installer

完成这些之后你就可以开始更新 corefonts 了

sudo /usr/lib/msttcorefonts/update-ms-fonts "$TMP"/*

完成后你需要做的就是清理

sudo touch /var/lib/update-notifier/package-data-downloads/ttf-mscorefonts-installer
cd ..
rm -r "$TMP"

解决方案在这里找到

相关内容