Running:
{{{
$ sudo dpkg --clear-avail
}}}
will only fix /var/lib/dpkg/available. Invalid entries in /var/lib/dpkg/status
will still cause warnings.
In my case, the invalid entry was virtualbox-2.1:
{{{
$ dpkg -l > /dev/null
warning, in file '/var/lib/dpkg/status' near line 61502 package
'virtualbox-2.1':
error in Version string '2.1.4-42893_Ubuntu_intrepid': invalid character in
revision number
warning, in file '/var/lib/dpkg/status' near line 61503 package
'virtualbox-2.1':
error in Config-Version string '2.1.4-42893_Ubuntu_intrepid': invalid
character in revision number
$ grep -A8 virtualbox-2.1 /var/lib/dpkg/status
Package: virtualbox-2.1
Status: deinstall ok config-files
Priority: optional
Section: misc
Installed-Size: 62164
Maintainer: Sun Microsystems, Inc. <[email protected]>
Architecture: i386
Version: 2.1.4-42893_Ubuntu_intrepid
Config-Version: 2.1.4-42893_Ubuntu_intrepid
}}}
Purging the package:
{{{
$ sudo apt-get purge virtualbox-2.1
}}}
removed the warning (it had already been marked as "deinstall" by
the 10.04 -> 10.10 upgrade manager).
--
dpkg complains about non-existing lines in /var/lib/dpkg/ files
https://bugs.launchpad.net/bugs/636586
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs