Linux 安装软件报错 Sub-process /usr/bin/dpkg returned an error code (1)

Linux 通过 apt-get 安装软件时报错,换一个软件安装也一样。

Errors were encountered while processing:
blueman
E: Sub-process /usr/bin/dpkg returned an error code (1)

 

解决办法:

root@ubuntu:/# cd /var/lib/dpkg/
root@ubuntu:/var/lib/dpkg# mv info/ info_old
root@ubuntu:/var/lib/dpkg# mkdir info
root@ubuntu:/var/lib/dpkg# apt-get update
root@ubuntu:/var/lib/dpkg# apt-get -f install
root@ubuntu:/var/lib/dpkg# mv info/* info_old/
root@ubuntu:/var/lib/dpkg# rm -rf info/
root@ubuntu:/var/lib/dpkg# mv info_old/ info

 

此时再重新安装就不会报错

 

参考:https://blog.csdn.net/sun___shy/article/details/80917134

 

posted @ 2019-08-14 16:42  LeeAaron  阅读(3073)  评论(0编辑  收藏  举报