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

Bug #1986766 reported by Lukas Hennies
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
New
Undecided
Unassigned

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

Lukas Hennies (gornoka)
summary: - dpkg --verify crashes when 1 pacakge has malformed md5sums file
+ dpkg --verify crashes when 1 package has malformed md5sums file
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1986766/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Lukas Hennies (gornoka)
affects: ubuntu → dpkg (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.