dpkg --verify crashes when 1 package has malformed md5sums file
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://
500 http://
100 /var/lib/
1.21.1ubuntu2 500
500 http://
## 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/
missing /usr/share/
??5?????? c /etc/gdm3/
````
## 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/
missing /usr/share/
??5?????? c /etc/gdm3/
````
summary: |
- dpkg --verify crashes when 1 pacakge has malformed md5sums file + dpkg --verify crashes when 1 package has malformed md5sums file |
affects: | ubuntu → dpkg (Ubuntu) |
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/ FindRightPackag e. 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.]