ttf-mscorefonts-installer will not install, download error

戏子无情 提交于 2019-12-24 04:23:24

问题


I am trying to download the ttf-mscorefonts-installer packages on Ubuntu 18.04.

But I am getting an error on downloading the installer.

This is what shows on the terminal

ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arialb32.exe
Err:1 http://downloads.sourceforge.net/corefonts/arialb32.exe
  Redirection from https to 'http://downloads.sourceforge.net/mirrorproblem?failedmirror=kent2.dl.sourceforge.net' is forbidden [IP: 212.219.56.185 443]
E: Failed to fetch https://kent.dl.sourceforge.net/project/corefonts/the fonts/final/arialb32.exe  Redirection from https to 'http://downloads.sourceforge.net/mirrorproblem?failedmirror=kent2.dl.sourceforge.net' is forbidden [IP: 212.219.56.185 443]
E: Download Failed
Setting up ttf-mscorefonts-installer (3.6ubuntu2) ...
Processing triggers for fontconfig (2.12.6-0ubuntu2) ...

回答1:


I found this workaround that solves the problem for me:

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

Additionally I set the older version to hold:

sudo apt-mark hold ttf-mscorefonts-installer

That prevents further updates.




回答2:


I replace all "http" with "https" in /usr/share/package-data-downloads/ttf-mscorefonts-installer and run /usr/lib/update-notifier/package-data-downloader, then it works!



来源:https://stackoverflow.com/questions/52737092/ttf-mscorefonts-installer-will-not-install-download-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!