Ubuntu:E: Sub-process /usr/bin/dpkg returned an error code (1)

blog:https://www.cnblogs.com/Rohn/

Ubuntu系统安装软件时报以下错误:

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

解决:

mv /var/lib/dpkg/info /var/lib/dpkg/info_old
mkdir /var/lib/dpkg/info
apt update
apt -f install
mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old
rm -rf /var/lib/dpkg/info
mv /var/lib/dpkg/info_old /var/lib/dpkg/info

你可能感兴趣的:(Ubuntu:E: Sub-process /usr/bin/dpkg returned an error code (1))