Ubuntu16.04 - 安装Courier New字体

这应该是一个很简单的任务吧?网上很多地方告诉我们,只要在shell终端里面执行命令:"sudo apt-get installttf-mscorefonts-installer"就可以了,但是我执行了好多次,都没能成功,错误提示:

ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
Err:1 http://downloads.sourceforge.net/corefonts/andale32.exe

经过一番搜索和尝试,最后终于成功安装了Courier New字体,解决方法如下:

1,解锁dpkg

如果刚才尝试了上面安装命令,那么马上重新启动Ubuntu,进入系统后,打开shell终端,在终端中输入命令:

sudo dpkg --configure -a

这个命令执行完毕后,应该没有任何提示,表明命令执行成功!

2,依次执行下面两条命令:

命令A,

sudo wget http://httpredir.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb

命令B,

sudo dpkg --configure -a

执行上面命令后,如果终端中不断滚动各种信息,不用管,等到出现提示符,就可以执行下一条命令,等到命令执行完毕,会出现提示符等待输入命令状态!最终Courier New字体会成功安装到Ubuntu里,随后我们就可以在各种工具里使用Courier New字体了!

参考:

http://blog.csdn.net/besidemyself/article/details/7362341

https://my.oschina.net/lieefu/blog/822556

http://askubuntu.com/questions/153928/failure-to-download-extra-data-files-after-installing-ttf-mscorefonts-installe

http://blog.csdn.net/chz870128/article/details/6263513

  

posted on 2017-02-16 14:50  sunylat  阅读(596)  评论(0编辑  收藏  举报