[Bug 2039390] Re: dpkg-dev: libdpkg-perl=1.21.1ubuntu2.1 downgrade required on Ubuntu 22.04

Julian Andres Klode 2039390 at bugs.launchpad.net
Sun Oct 15 17:40:25 UTC 2023


It seems you disabled jammy-updates which contains the correct version.
That results in outcomes like this and is not recommended.

Downgrading packages is not supported, hence apt not doing that for you.

** Changed in: dpkg (Ubuntu)
       Status: New => Invalid

-- 
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/2039390

Title:
  dpkg-dev: libdpkg-perl=1.21.1ubuntu2.1 downgrade required on Ubuntu
  22.04

Status in dpkg package in Ubuntu:
  Invalid

Bug description:
  What was expected? `sudo apt-get install -y dpkg-dev` works out of the
  box.

  What happened instead/reproduction:
  ```bash
  sudo apt-get install -y dpkg-dev

  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:

  The following packages have unmet dependencies:
   dpkg-dev : Depends: libdpkg-perl (= 1.21.1ubuntu2.1) but 1.21.1ubuntu2.2 is to be installed
              Recommends: build-essential but it is not going to be installed
              Recommends: fakeroot
              Recommends: libalgorithm-merge-perl but it is not going to be installed
  E: Unable to correct problems, you have held broken packages.

  sudo apt-get install -y libdpkg-perl=1.21.1ubuntu2.1 --allow-
  downgrades

  ...
  dpkg: warning: downgrading libdpkg-perl from 1.21.1ubuntu2.2 to 1.21.1ubuntu2.1
  ...

  sudo apt-get install -y dpkg-dev

  ... now succeeds
  ```

  Info:

  ```
  lsb_release -rd
  Description:    Ubuntu 22.04.3 LTS
  Release:        22.04

  apt-cache policy dpkg-dev
  dpkg-dev:
    Installed: 1.21.1ubuntu2.1
    Candidate: 1.21.1ubuntu2.1
    Version table:
   *** 1.21.1ubuntu2.1 500
          500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
          500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
          100 /var/lib/dpkg/status
       1.21.1ubuntu2 500
          500 http://ch.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
          500 http://ch.archive.ubuntu.com/ubuntu jammy/main i386 Packages
  ```

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




More information about the foundations-bugs mailing list