/var/lib/dpkg/status has faulty entries

Bug #1854772 reported by Thomas Schweikle
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-listchanges (Ubuntu)
Triaged
Undecided
Unassigned
dpkg (Ubuntu)
New
Undecided
Unassigned

Bug Description

Es wurden 1.109 kB in 0 s geholt (3.865 kB/s).
Traceback (most recent call last):
  File "/usr/share/apt-listchanges/DebianFiles.py", line 117, in readfile
    self.stanzas += [ControlStanza(x) for x in f.read().split('\n\n') if x]
  File "/usr/share/apt-listchanges/DebianFiles.py", line 117, in <listcomp>
    self.stanzas += [ControlStanza(x) for x in f.read().split('\n\n') if x]
  File "/usr/share/apt-listchanges/DebianFiles.py", line 70, in __init__
    field, value = line.split(':', 1)
ValueError: not enough values to unpack (expected 2, got 1)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 280, in <module>
    main(config)
  File "/usr/bin/apt-listchanges", line 83, in main
    status.readfile('/var/lib/dpkg/status')
  File "/usr/share/apt-listchanges/DebianFiles.py", line 120, in readfile
    {'what': file, 'errmsg': str(ex)}) from ex
RuntimeError: Fehler beim Verarbeiten von »/var/lib/dpkg/status«: not enough values to unpack (expected 2, got 1)
(Lese Datenbank ... 376829 Dateien und Verzeichnisse sind derzeit installiert.)

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: apt 1.9.4
ProcVersionSignature: Ubuntu 5.3.0-23.25-generic 5.3.7
Uname: Linux 5.3.0-23-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Dec 2 16:00:56 2019
InstallationDate: Installed on 2019-09-09 (83 days ago)
InstallationMedia: Xubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Thomas Schweikle (tps) wrote :
Revision history for this message
Thomas Schweikle (tps) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

The status file seems fine, apt is happy with it, this is either a bug in apt-listchanges or a specific FS corruption, but haven't seen that before.

affects: apt (Ubuntu) → apt-listchanges (Ubuntu)
Changed in apt-listchanges (Ubuntu):
status: New → Triaged
Revision history for this message
Julian Andres Klode (juliank) wrote :

The package foliocloudplugin is broken, it was probably written on a Mac - the description ends lines with ^M instead of a newline. (and also does not use a continuation line).

That said, apt-listchanges really ought to use apt_pkg TagFile parser and not hack up its own one.

Revision history for this message
Julian Andres Klode (juliank) wrote :

dpkg also probably should validate the contents of that field and clean it up if needed or reject install.

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.