问题
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