dpkg: error: duplicate file trigger interest for filename `/usr/lib/gio/modules' and package `libglib2.0-0:i386'
The dpkg trigger file has duplicates. We would need to manually remove all of them.
$ cd /var/lib/dpkg/triggers/ $ sudo vim File /usr/share/octave/packages octave /usr/lib/libreoffice/share/extensions libreoffice-common /usr/lib/x86_64-linux-gnu/gio/modules libglib2.0-0 /usr/lib/gio/modules libglib2.0-0 /usr/share/glib-2.0/schemas libglib2.0-0 /usr/lib/i386-linux-gnu/gio/modules libglib2.0-0:i386 /usr/lib/gio/modules libglib2.0-0:i386 /usr/share/glib-2.0/schemas libglib2.0-0:i386 /etc/dbus-1/system.d dbus/noawait /usr/share/dbus-1/system-services dbus/noawait /usr/lib/vlc/plugins vlc-nox/noawait
Notice the duplicates in bold. Remove them manually.
If there are many duplicates then a quick way to see the duplicates is to run
$ cat File | cut -d" " -f 2 | uniq -c 1 octave 1 libreoffice-common 3 libglib2.0-0 3 libglib2.0-0:i386 2 dbus/noawait 1 vlc-nox/noawait 2 libgdk-pixbuf2.0-0 1 udev/noawait 1 cups/noawait 2 systemd/noawait
The number in front of each package gives the duplicate count.
After removing duplicates run
$ sudo apt-get install -f
to install missing dependencies
Comments