解决方法:修改 /var/lib/dpkg/info/msttcorefonts.prerm
把set -e改为set -x就能顺利卸载
改好后执行:sudo apt-get remove msttcorefonts
如果没找到/var/lib/dpkg/info/msttcorefonts.prerm
终端运行sudo aptitude purge ttf-mscorefonts-installer ubuntu-restricted-extras
问题陈述如下:
本想装一个字体包msttcorefonts,装到一半因为源里没有相应文件而失败。结果以后每
次apt-get都会自动继续msttcorefonts的安装...导致其他软件都无法安装。我试了dpkg-re
configure -a,apt-get remove ,apt-get -f -m都会出同样的错误。
错误信息:
Connecting to 59.66.131.43:808... connected.
Proxy request sent, awaiting response... 407 Unauthorized
14:55:50 ERROR 407: Unauthorized.
--14:55:50-- http://switch.dl.sourceforge.net/sou...ts/andale32.ex
e
=> `./andale32.exe'
Connecting to 59.66.131.43:808... connected.
Proxy request sent, awaiting response... 407 Unauthorized
14:55:50 ERROR 407: Unauthorized.
andale32.exe: No such file or directory
All done, errors in processing 1 file(s)
dpkg: 作下列清理工作时发生错误:
子进程 post-installation script 返回了错误号 1
在处理时有错误发生:
msttcorefonts
E: Sub-process /usr/bin/dpkg returned an error code (1)