[Bug 994509] Re: Duplicate packages entries en AptPkg::Cache

Bug Watch Updater 994509 at bugs.launchpad.net
Wed May 8 01:23:25 UTC 2013


** Changed in: libapt-pkg-perl (Debian)
       Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libapt-pkg-perl in Ubuntu.
https://bugs.launchpad.net/bugs/994509

Title:
  Duplicate packages entries en AptPkg::Cache

Status in “libapt-pkg-perl” package in Ubuntu:
  Confirmed
Status in “libapt-pkg-perl” package in Debian:
  New

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::Cache->new();
  foreach my $key (keys %{$cache}) {
      print "$key\n";
  }

  print "Done";

  1;
  ====

  In the affected machine we get duplciate entries for all packages:
  root at 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 at zentyal23:~# apt-cache policy libpng12-dev
  libpng12-dev:
    Installed: (none)
    Candidate: 1.2.46-3ubuntu4
    Version table:
       1.2.46-3ubuntu4 0
          500 http://fr.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
  ====

  The sources.list used in this test (I only let one entry to simplify
  thing):

  root at zentyal23:~# cat /etc/apt/sources.list

  deb http://fr.archive.ubuntu.com/ubuntu/ precise main restricted
  =====

  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libapt-pkg-perl/+bug/994509/+subscriptions




More information about the foundations-bugs mailing list