[Bug 1960582] Re: [critical] dpkg error while processing - can't install nor upgrade

Martin Belanger 1960582 at bugs.launchpad.net
Sun Aug 14 16:06:10 UTC 2022


I hit the same issue upgrading from 20.04 to 22.04. This morning there
was a pop-up window telling that a new version of Ubuntu (22.04) was
available and whether I wanted to upgrade. I clicked on upgrade now.
During the install I saw error message for some packages being upgraded
including dpkg. What was suggested above (sudo cp /var/backups/dpkg.*)
has improved things a bit, but now I'm getting:

sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2232 not upgraded.
78 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
dpkg: error: duplicate file trigger interest for filename '/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders' and package 'libgdk-pixbuf-2.0-0:i386'
E: Sub-process dpkg --set-selections returned an error code (2)
E: Couldn't clean the currently selected dpkg states

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1960582

Title:
  [critical] dpkg error while processing - can't install nor upgrade

Status in dpkg package in Ubuntu:
  Expired

Bug description:
  My current ubuntu version : 
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu Jammy Jellyfish (development branch)
  Release:	22.04
  Codename:	jammy

  Issue : 
  when `sudo apt update` is ok, all newest package is downloaded
  but `sudo apt ugprade` show current error : ]

  sudo apt upgrade
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  Calculating upgrade... Done
  The following packages have been kept back:
    librygel-renderer-2.6-2 librygel-server-2.6-2 rygel
  The following packages will be upgraded:
    bolt code deja-dup enchant-2 fwupd gdm3 gir1.2-gdm-1.0 gir1.2-gst-plugins-base-1.0 gir1.2-nm-1.0 gir1.2-nma-1.0
    gir1.2-upowerglib-1.0 gjs gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-plugins-base
    gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-good gstreamer1.0-pulseaudio gstreamer1.0-x initramfs-tools
    initramfs-tools-bin initramfs-tools-core iputils-ping iputils-tracepath language-pack-en language-pack-gnome-en
    libenchant-2-2 libfwupd2 libfwupdplugin5 libgdm1 libgjs0g libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0
    libgstreamer-plugins-good1.0-0 libnl-3-200 libnl-genl-3-200 libnl-route-3-200 libnm0 libnma-common libnma0
    libpkcs11-helper1 libseccomp2 libunistring2 libunistring2:i386 libupower-glib3 media-types nano network-manager
    network-manager-config-connectivity-ubuntu python3-paramiko python3-software-properties simple-scan
    software-properties-common software-properties-gtk upower
  56 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
  10 not fully installed or removed.
  Need to get 0 B/94,6 MB of archives.
  After this operation, 1.928 kB of additional disk space will be used.
  Do you want to continue? [Y/n] Y
  Extracting templates from packages: 100%
  Preconfiguring packages ...
  Setting up dpkg (1.21.1ubuntu1) ...
  head: error reading 'dpkg': Is a directory
  dpkg: error processing package dpkg (--configure):
   installed dpkg package post-installation script subprocess returned error exit status 1
  Errors were encountered while processing:
   dpkg
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  i have to resintall all of the package in cache with `sudo dpkg -i /var/cache/apt/archives/*.deb
  `, but the cache sometimes is not the newest packages 
  and when i rerun `sudo apt upgrade`, there is still not the newest package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1960582/+subscriptions




More information about the foundations-bugs mailing list