apt-get -f 安装“错误”

apt-get -f 安装“错误”
:~# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc-bin locales
The following packages will be upgraded:
  libc-bin locales
2 upgraded, 0 newly installed, 0 to remove and 520 not upgraded.
Need to get 0 B/4,071 kB of archives.
After this operation, 37.9 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 76346 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.24-17_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/libc-bin_2.24-17_amd64.deb (--unpack):
 triggers ci file contains unknown directive `interest-await'
Errors were encountered while processing:
 /var/cache/apt/archives/libc-bin_2.24-17_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

由于某种原因,可能是由于使用 PPA、跨软件包或此 libc 软件包的错误,您的系统无法理解 tigger 指令。删除触发器可能会解决问题,然后继续正常升级。

sudo -s
echo "#Nothing to do here" > /var/lib/dpkg/info/libc-bin.triggers
dpkg --configure -a
apt-get -f install
apt-get dist-upgrade

相关内容