ttf-mscorefonts-installer下载额外数据失败 ubuntu中引用微软的字体的问题,操作记录备忘。
完成ubuntu安装后,特别是安装wine之后,电脑经常跳出更新信息:
下载额外数据文件失败 以下软件包要求安装后下载附加数据,但其数据无法下载或无法处理。 ttf-mscorefonts-installer 稍后系统将自动重试下载,您也可以手工立即重试。执行此命令需要有活动的网络连接。
点击重试后,实际后台自动既即出。输入密码后无响应了。实际上没有执行操作。虽不影响使用,不过挺经常跳出来挺麻烦。
解决办法
查看目录/usr/share/package-data-downloads/目录下,有一个文件ttf-mscorefonts-installer,查看内容如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Url: http://downloads.sourceforge.net/corefonts/andale32.exe Sha256: 0524fe42951adc3a7eb870e32f0920313c71f170c859b5f770d82b4ee111e970 Url: http://downloads.sourceforge.net/corefonts/arial32.exe Sha256: 85297a4d146e9c87ac6f74822734bdee5f4b2a722d7eaa584b7f2cbf76f478f6 Url: http://downloads.sourceforge.net/corefonts/arialb32.exe Sha256: a425f0ffb6a1a5ede5b979ed6177f4f4f4fdef6ae7c302a7b7720ef332fec0a8 Url: http://downloads.sourceforge.net/corefonts/comic32.exe Sha256: 9c6df3feefde26d4e41d4a4fe5db2a89f9123a772594d7f59afd062625cd204e Url: http://downloads.sourceforge.net/corefonts/courie32.exe Sha256: bb511d861655dde879ae552eb86b134d6fae67cb58502e6ff73ec5d9151f3384 Url: http://downloads.sourceforge.net/corefonts/georgi32.exe Sha256: 2c2c7dcda6606ea5cf08918fb7cd3f3359e9e84338dc690013f20cd42e930301 Url: http://downloads.sourceforge.net/corefonts/impact32.exe Sha256: 6061ef3b7401d9642f5dfdb5f2b376aa14663f6275e60a51207ad4facf2fccfb Url: http://downloads.sourceforge.net/corefonts/times32.exe Sha256: db56595ec6ef5d3de5c24994f001f03b2a13e37cee27bc25c58f6f43e8f807ab Url: http://downloads.sourceforge.net/corefonts/trebuc32.exe Sha256: 5a690d9bb8510be1b8b4fe49f1f2319651fe51bbe54775ddddd8ef0bd07fdac9 Url: http://downloads.sourceforge.net/corefonts/verdan32.exe Sha256: c1cb61255e363166794e47664e2f21af8e3a26cb6346eb8d2ae2fa85dd5aad96 Url: http://downloads.sourceforge.net/corefonts/webdin32.exe Sha256: 64595b5abc1080fba8610c5c34fab5863408e806aafe84653ca8575bed17d75a Script: /usr/lib/msttcorefonts/update-ms-fonts Should-Download: msttcorefonts/accepted-mscorefonts-eula
可以看到11个文件的下载链接。直接下载字体文件,放在一个文件夹里。如/home/yourname/ttf-mscorefonts/目录下。
1 sudo dpkg-reconfigure ttf-mscorefonts-installer
指定下载字体的目录,确认安装配置。
1 2 3 4 5 6 cd /usr/share/package-data-downloads/sudo rm ttf-mscorefonts-installercd /var/lib/update-notifier/package-data-downloads/sudo rm ttf-mscorefonts-installercd /var/lib/update-notifier/user.d/sudo rm data-downloads-failed
至此更新结束。