红联Linux门户
Linux帮助

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

发布时间:2014-06-05 10:20:36来源:红联作者:velcbo
有的时候,在Ubuntu下使用sudo apt-get install可能导致意想不到的错误,尤其是中途中断了安装时,错误信息为:
Errors were encountered while processing:
/var/cache/apt/archives/shotwell_0.18.0-1~saucy1-i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

E: Sub-process /usr/bin/dpkg returned an error cod

此时可以这样解决:

cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info

E: Sub-process /usr/bin/dpkg returned an error cod

重新安装,在此为:
sudo apt-get install shotwell

以下未经测试:

我就是这样解决的 拿来给你分享一下。

在处理时有错误发生:
ttf-opensymbol
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决方案代码:

sudo fc-cache -fv 2>&1 | grep failed | cut -f1 -d":" | xargs -i sudo touch {} && sudo fc-cache -fv

来源:Linux公社
文章评论

共有 0 条评论