Bug#833656: cme fails with dpkg error

gregor herrmann gregoa at debian.org
Sun Aug 7 22:07:37 UTC 2016


Control: reassign -1 libconfig-model-dpkg-perl 2.082

On Sun, 07 Aug 2016 17:02:48 +0200, gregor herrmann wrote:

> % cme fix dpkg-control
> cme: using Dpkg::Control model
> cme: running fix on dpkg-control configuration...
> Reading package lists... Error!
> flAbsPath on /var/lib/apt/var/lib/dpkg/status failed - realpath (2: No such file or directory)
> Could not open file  - open (2: No such file or directory)
> Problem opening 
> The package lists or status file could not be parsed or opened.
> Backend error: Can't call method "get" on an undefined value at /usr/share/perl5/Config/Model/Dpkg/Dependency.pm line 716.

Wrong package, this is in libconfig-model-dpkg-perl ... 

> (Interestingly I've noted the same in pepperflashplugin-nonfree: #833643)

And there's an interesting hint about changes in apt and a possible
way for a fix:

 | problem is:
 |   * don't hardcode /var/lib/dpkg/status as dir::state::status
 | in apt 1.3~pre3
 |
 | fix is adding:
 | Dir::State::Status "/var/lib/dpkg/status";
 | around line 160 in /usr/sbin/update-pepperflashplugin-nonfree


Hm.
/usr/share/perl5/Config/Model/Dpkg/Dependency.pm line 716.
is $apt_cache->get($pkg);
and $apt_cache is AptPkg::Cache->new

so maybe the problem is in libapt-pkg-perl? Or in the way it's used
here?


Cheers,
gregor

-- 
 .''`.  Homepage https://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Ludwig Hirsch: Die Gang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20160808/bad86942/attachment.sig>


More information about the pkg-perl-maintainers mailing list