我正在尝试下载Ubuntu18.04上的ttf-mscorefonts-installer包。
但我在下载安装程序时遇到错误。
这就是终端上显示的内容
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) ...发布于 2018-10-10 18:31:35
我发现这个解决方法为我解决了这个问题:
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此外,我将较旧的版本设置为保留:
sudo apt-mark hold ttf-mscorefonts-installer这会阻止进一步的更新。
发布于 2019-03-19 00:34:58
我将/usr/share/package-data-downloads/ttf-mscorefonts-installer中的所有"http“替换为"https”,然后运行/usr/lib/update-notifier/package-data-downloader,然后它就可以工作了!
https://stackoverflow.com/questions/52737092
复制相似问题