[Bug 1986766] Re: dpkg --verify crashes when 1 package has malformed md5sums file

Lukas Hennies 1986766 at bugs.launchpad.net
Wed Aug 17 11:37:27 UTC 2022


** Package changed: ubuntu => dpkg (Ubuntu)

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

Title:
  dpkg --verify crashes when 1 package has malformed md5sums file

Status in dpkg package in Ubuntu:
  New

Bug description:
  ## Problem
  dpkg --verify which should verify all packages on the system crashes if one package has broken information.

  ## Ubuntu release
  lsb release 
  Description:	Ubuntu 22.04.1 LTS
  Release:	22.04

  ## Package 
  package policy 
  dpkg:
    Installed: 1.21.1ubuntu2.1
    Candidate: 1.21.1ubuntu2.1
    Version table:
   *** 1.21.1ubuntu2.1 500
          500 http://be.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
          500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
          100 /var/lib/dpkg/status
       1.21.1ubuntu2 500
          500 http://be.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

  ## Expectation
  I would expect it to continue it's task and verify all further packages returning a non 0 exit code after it validated all packages.

  ````shell
  my-user at my-pc:~$ sudo dpkg --verify
  validation-error   control file 'md5sums' for package 'docker-desktop' is missing value separator
  missing            /usr/share/bash-completion/completions/iceweasel
  missing            /usr/share/bash-completion/completions/mozilla-firefox
  ??5?????? c        /etc/gdm3/custom.conf
  ````

  ## Reality

  e.g. dpkg with package with broken md5s file 
  ````shell
  my-user at my-pc:~$ sudo dpkg --verify 
  dpkg: error: control file 'md5sums' for package 'docker-desktop' is missing value separator
  ````

  e.g. without package with broken md5s file

  ````shell
  my-user at my-pc:~$ sudo dpkg --verify 
  missing     /usr/share/bash-completion/completions/iceweasel
  missing     /usr/share/bash-completion/completions/mozilla-firefox
  ??5?????? c /etc/gdm3/custom.conf
  ````

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




More information about the foundations-bugs mailing list