Mer*_*s99 6 package-management fonts
我如何绕过此错误消息,以便我不会一直看到 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) ...
Run Code Online (Sandbox Code Playgroud)
(注意 - 我添加了额外的空格来断开链接,因为我没有足够的声望点!)
Vid*_*uth 10
最新版本似乎有一个错误ttf-mscorefonts-installer
,但这里有一个解决方法。
首先完全卸载它,以确保以后安装它时您接受 EULA。
sudo apt remove --purge ttf-mscorefonts-installer
Run Code Online (Sandbox Code Playgroud)
然后再次安装它,如上所述确保您接受 EULA 直到“确定”字段突出显示并按 Return
sudo apt-get install ttf-mscorefonts-installer
Run Code Online (Sandbox Code Playgroud)
直到现在你可能仍然面临同样的错误,现在通过在/tmp
目录中创建一个文件夹并将字体下载到其中来改变它。
TMP=$(mktemp -d)
cd "$TMP"
awk '/Url/ {system("wget "$2)}' /usr/share/package-data-downloads/ttf-mscorefonts-installer
Run Code Online (Sandbox Code Playgroud)
这样你就可以开始更新你的核心字体了
sudo /usr/lib/msttcorefonts/update-ms-fonts "$TMP"/*
Run Code Online (Sandbox Code Playgroud)
完成此操作后,您需要做的就是清理
sudo touch /var/lib/update-notifier/package-data-downloads/ttf-mscorefonts-installer
cd ..
rm -r "$TMP"
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3690 次 |
最近记录: |