码迷,mamicode.com
首页 > 其他好文 > 详细

E: Sub-process /usr/bin/dpkg returned an error code (1) 解决方案

时间:2014-09-22 15:21:52      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   os   使用   ar   for   

E: Sub-process /usr/bin/dpkg returned an error code (1) 解决方案

软件版本:
  操作系统:ubuntu 10.04
  内核版本:Linux version 2.6.32-41-generic

目录:
  1. 错误
  2. 解决方法
    1) 方案一
    2) 方案二
    3) 方案三
  3. 参考资料

1. 错误

  在使用 apt-get 安装工具时,无论安装什么软件都会遇到这样子的错误:

bubuko.com,布布扣
dpkg: warning: files list file for package `tex-common‘ missing, assuming package has no files currently installed.
(Reading database ... 150177 files and directories currently installed.)
Preparing to replace tex-common 2.06ubuntu0.1 (using .../tex-common_2.06ubuntu0.1_all.deb) ...
Unpacking replacement tex-common ...
Processing triggers for doc-base ...
Processing 2 changed doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Setting up tex-common (2.06ubuntu0.1) ...
Running mktexlsr. This may take some time... done.
No packages found matching texlive-base.
dpkg: error processing tex-common (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 tex-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
bubuko.com,布布扣

 

2. 解决方案

1) 方案一

cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info
重新安装,在此为:
sudo apt-get --reinstall vsfpd
sudo mv info info.bak
sudo mkdir info
重新安装,在此为:
sudo apt-get --reinstall vsfpd

  这个方案来源于[1]。这种方法可能会造成安装软件时出现一大片 warning 。

2) 方案二

cd /var/lib/dpkg/info
sudo mkdir vsftpd
sudo mv vsftpd.* vsftp

  这个方法是根据方案一想出来的,也可以解决这个错误。暂时不知道会不会造成其他错误。

3) 方案三

sudo apt-get purge vsftpd
sudo apt-get install vsftpd

  这个方案其实就是将vsftpd清除后,重装。来源于[2]

3. 参考资料

[1]. http://forum.ubuntu.org.cn/viewtopic.php?f=86&t=90547 
[2]. http://askubuntu.com/questions/25693/dpkg-behaving-strangely


E: Sub-process /usr/bin/dpkg returned an error code (1) 解决方案

标签:style   blog   http   color   io   os   使用   ar   for   

原文地址:http://blog.csdn.net/dongqinliuzi/article/details/39474627

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!