系统相关
首页 > 系统相关> > ubuntu使用sudo apt install 命令时报错,无法安装任何软件

ubuntu使用sudo apt install 命令时报错,无法安装任何软件

作者:互联网

ubuntu使用sudo apt install 命令时遇到如下报错:

Errors were encountered while processing:
binfmt-support
hddtemp
ros-kinetic-diagnostic-common-diagnostics
ros-kinetic-diagnostics
ros-kinetic-robot
ros-kinetic-desktop
ros-kinetic-simulators
ros-kinetic-desktop-full
E: Sub-process /usr/bin/dpkg returned an error code (1)

步骤:

sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bak
sudo mkdir /var/lib/dpkg/info
sudo apt-get update
sudo apt-get -f install
sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/info.bak
sudo rm -rf /var/lib/dpkg/info
sudo mv /var/lib/dpkg/info.bak /var/lib/dpkg/info

问题得到解决。方法来自网络,以上为亲测可行方法

标签:info,lib,sudo,apt,install,var,kinetic,dpkg
来源: https://blog.csdn.net/XiaoJake/article/details/115478370