dpkg被中断,无法在linux中安装软件错误 [英] can not install software in linux error as dpkg was interrupted
问题描述
我正尝试使用以下命令安装单声道,
I was trying to install mono using following commands,
-
sudo apt-get install mono-*
不幸的是,我在安装终端时关闭了终端.再次,我开始重新安装,但显示错误
unfortunately, I closed the terminal while it installing. again i started to reinstall but shown error like
无法获取锁/var/lib/dpkg/lock-打开(11:资源临时 不可用)
Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
我尝试了以下命令寻求解决方案,
I tried below commands for solution,
-
sudo rm /var/lib/apt/lists/lock
-
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
但是现在我得到了类似的错误
But now I am getting the error like
dpkg被中断,您必须手动运行'sudo dpkg --configure -a' 纠正问题.
dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
我该如何解决这个问题?
how do I fix this one?
推荐答案
当您停止使用终端机或Ubuntu应用程序中心之间的任何安装时,将发生此错误.这可以通过删除损坏的安装来解决.为此,请在终端中以相同顺序输入以下命令.
This error occurs when u stop the any installation in-between either using terminal or Ubuntu app center. This can be solved by removing the broken installation. To do so enter the following command in the terminal in the same order.
cd /var/lib/dpkg/updates
sudo rm *
sudo apt-get update
这篇关于dpkg被中断,无法在linux中安装软件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!