Dpkg错误“ Dpkg被中断”和解决方案

This is a small post about dpkg error. Dpkg is a tool used to manage package installation, removing, update of distributions like Debian, Ubuntu. Actually dpkg can be used distributions like Fedora, CentOS, RedHat but their default package manager is rpm.

这是有关dpkg错误的一则小文章。 Dpkg是用于管理软件包安装,删除和更新Debian,Ubuntu等发行版的工具。 实际上dpkg可以用于Fedora,CentOS,RedHat等发行版,但它们的默认软件包管理器是rpm。

错误 (Error)

Here is the problem while install a package with apt-get or dpkg directly the operation is interrupted. After trying again to install a package we get an error like “dpkg was interrupted, you must manually run

这是直接使用apt-get或dpkg安装软件包时出现的问题,操作被中断。 再次尝试安装软件包后,出现类似“ dpkg被中断,您必须手动运行”的错误。

Dpkg Error
Dpkg Error
Dpkg错误

This error can be caused by different problems.

此错误可能是由不同的问题引起的。

重新配置Dpkg (Reconfigure Dpkg)

We need to repair dpkg package database in order to resume apt-get update operation. We can run dpkg to reconfigure the package database like below and correct the problem. We will provide --configure  and -a option to the dpkg command like below. This command will regenerate the package database and fix errors. We also need the root privileges to change dpkg database which will be provided with sudo command like below.

我们需要修复dpkg软件包数据库,以便恢复apt-get update操作。 我们可以运行dpkg来重新配置软件包数据库,如下所示并更正问题。 我们将为dpkg命令提供--configure-a选项,如下所示。 此命令将重新生成软件包数据库并修复错误。 我们还需要root特权来更改dpkg数据库,该数据库将由sudo命令提供,如下所示。

$ sudo dpkg --configure -a
Reconfigure Dpkg
Reconfigure Dpkg
重新配置Dpkg

The interrupted package installation with dpkg is completed with success.

dpkg中断的软件包安装成功完成。

LEARN MORE  How To Solve " sub process usr bin dpkg returned an error code 1" Error?
了解更多信息如何解决“子进程usr bin dpkg返回错误代码1”错误?

翻译自: https://www.poftut.com/dpkg-error-dpkg-was-interrupted-and-solution/

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值