Duplicate packages entries en AptPkg::Cache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libapt-pkg-perl (Debian) |
Fix Released
|
Unknown
|
|||
libapt-pkg-perl (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Package version 0.1.25build2
Ubuntu version 12.04 Ubuntu precise (development branch)
I have only seen this problem in one machine out of tens.
The AptPkg::Cache has duplicate key entries for the packages. Normally perl has could not have duplicates keys but his is a tied hash .
I attached the cache.pl simple script to test it.:
====
use strict;
use warnings;
use AptPkg::Cache;
my $cache = AptPkg:
foreach my $key (keys %{$cache}) {
print "$key\n";
}
print "Done";
1;
====
In the affected machine we get duplciate entries for all packages:
root@host:~# perl cache.pl | tail
libsdbm-ruby1.8
libsdbm-ruby1.8
libreoffice-l10n-ga
libindicate-doc
libungif4g
libungif4g
libreadline-dev
libreadline-dev
libpng12-dev
libpng12-dev
====
However if we use apt-cache all is normal:
root@zentyal23:~# apt-cache policy libpng12-dev
libpng12-dev:
Installed: (none)
Candidate: 1.2.46-3ubuntu4
Version table:
1.
500 http://
====
The sources.list used in this test (I only let one entry to simplify thing):
root@zentyal23:~# cat /etc/apt/
deb http://
=====
Also I have tested to run apt-get update but this not fixed the problem, anyway apt-cache and apt-get works as expected so this should be a specific problem of libapt-pkg-perl
Changed in libapt-pkg-perl (Debian): | |
status: | Unknown → New |
Changed in libapt-pkg-perl (Debian): | |
status: | New → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.