dpkg:错误:文件名‘/usr/lib/gio/modules’和软件包‘libglib2.0-0:i386’的重复文件触发兴趣

dpkg:错误:文件名‘/usr/lib/gio/modules’和软件包‘libglib2.0-0:i386’的重复文件触发兴趣

每次我在 Ubuntu 20.04 上尝试 sudo apt-get upgrade 时,都会遇到一个非常奇怪的错误

错误如下:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libldap-2.4-2 libldap-common libsystemd0 libudev1 zlib1g
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
16 not fully installed or removed.
Need to get 0 B/577 kB of archives.
After this operation, 12.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error: duplicate file trigger interest for filename '/usr/lib/gio/modules' and package 'libglib2.0-0:i386'
E: Sub-process /usr/bin/dpkg returned an error code (2)
 

答案1

查看 /var/lib/dpkg/triggers/File 并删除有问题的行。在更改之前将“File”备份为“File.BAK”。这在 Linux Mint 21.1 中对我有用。

相关内容