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

Launchpad Bug Tracker 1986766 at bugs.launchpad.net
Wed Aug 17 11:37:29 UTC 2022


You have been subscribed to a public bug:

## 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
````

** Affects: dpkg (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment dpkg
-- 
dpkg --verify crashes when 1 package has malformed md5sums file
https://bugs.launchpad.net/bugs/1986766
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to dpkg in Ubuntu.



More information about the foundations-bugs mailing list