中断 ttf-mscorefonts 安装程序后出现包管理问题

中断 ttf-mscorefonts 安装程序后出现包管理问题

我尝试sudo apt-get install ubuntu-restricted-extras在 13.10 上安装,一切运行正常,直到ttf-mscorefonts installer出现了一个问题。好几分钟都没能下载。所以我退出了这个过程。

现在我无法安装任何软件,无法从软件中心安装。每当我尝试使用类似的操作时sudo apt-get install ****,它都会显示类似以下内容:

$ sudo apt-get install pip
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to   correct     the problem. 
neel101@neel101-Inspiron-7520:~$ sudo dpkg --configure -a
Setting up update-notifier-common (0.147) ...
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe

这种情况持续了几分钟......

编辑

我按下Ctrl+键C,结果出现了

^CTraceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 296, in <module>
    process_download_requests()
  File "/usr/lib/update-notifier/package-data-downloader", line 234, in    process_download_requests
    dest_file = urllib.urlretrieve(files[i])[0]
  File "/usr/lib/python2.7/urllib.py", line 94, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.7/urllib.py", line 268, in retrieve
    block = fp.read(bs)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
KeyboardInterrupt
dpkg: error processing update-notifier-common (--configure):
 subprocess installed post-installation script was interrupted
dpkg: dependency problems prevent configuration of ttf-mscorefonts-installer:
 ttf-mscorefonts-installer depends on update-notifier-common (>= 0.119ubuntu2);     however:
  Package update-notifier-common is not configured yet.

dpkg: error processing ttf-mscorefonts-installer (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of flashplugin-installer:
 flashplugin-installer depends on update-notifier-common (>= 0.119ubuntu2); however:
  Package update-notifier-common is not configured yet.

dpkg: error processing flashplugin-installer (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 update-notifier-common
 ttf-mscorefonts-installer
 flashplugin-installer

答案1

尝试以下命令,

sudo apt-get autoremove
sudo apt-get clean 

它将删除所有未使用的包。

或者

sudo dpkg -P ttf-mscorefonts-installer
sudp dpkg -P flashplugin-installer

相关内容