首页 > 解决方案 > 每次都出现dpkg错误如何解决?

问题描述

首先,这是由于这些 python 包:

python-numpy
python-pandas

现在它显示:

rutvik@rutvik-HP-Laptop-15-bs1xx:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libc-bin
Suggested packages:
  manpages
The following packages will be upgraded:
  libc-bin
1 upgraded, 0 newly installed, 0 to remove and 482 not upgraded.
12 not fully installed or removed.
Need to get 0 B/634 kB of archives.
After this operation, 73.7 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 36232 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.30-0ubuntu2.1_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/libc-bin_2.30-0ubuntu2.1_amd64.deb (--unpack):
 triggers ci file contains unknown directive `interest-await'
Errors were encountered while processing:
 /var/cache/apt/archives/libc-bin_2.30-0ubuntu2.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我不确定是什么导致了这个问题。有人可以帮我吗?

标签: pythonupgradedpkg

解决方案


您的 dpkg 软件包数据库似乎已损坏。试试这个命令来修复它:

sudo dpkg ––configure –a

推荐阅读