Ubuntu中安装包时提示:you might want to run 'sudo dpkg --configure -a' to correct the problem

场景

在Ubuntu中执行

sudo apt-get install -y nano

时提示:

you might want to run 'sudo dpkg --configure -a' to correct the problem

Ubuntu中安装包时提示:you might want to run 'sudo dpkg --configure -a' to correct the problem_第1张图片

实现

按照提示输入:

sudo dpkg --configure -a

执行之后就可以再执行安装命令

Ubuntu中安装包时提示:you might want to run 'sudo dpkg --configure -a' to correct the problem_第2张图片

你可能感兴趣的:(Linux)