[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#717006: apt-listbugs prevents apt purge



Control: retitle -1 DPkg::Pre-Install-Pkgs hook info fails to include current version (-) of a removed package that is being purged
Control: reassign -1 libapt-pkg4.12 0.9.9.1
Control: affects -1 + apt-listbugs



On Tue, 16 Jul 2013 22:20:16 +0800 Ben Caradoc-Davies wrote:

[...]
> The failure to purge is repeatable, and can be seen with an install, 
> remove, and then purge:
[...]

Hello Ben, thanks a lot for your bug report!

I've just reproduced the issue you experienced in a sid chroot with
apt/0.9.9.1 and libapt-pkg4.12/0.9.9.1 :

  # aptitude install apt-listbugs
  [...]
  # aptitude install python3.2 python3.2-minimal
  [...]
  # aptitude remove python3.2 python3.2-minimal
  [...]
  # aptitude purge python3.2 python3.2-minimal
  The following packages will be REMOVED:  
    python3.2{p} python3.2-minimal{p} 
  0 packages upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
  Need to get 0 B of archives. After unpacking 0 B will be used.
  Do you want to continue? [Y/n/?] Y
  E: apt Pre-Install-Pkgs is giving me fewer fields than expected.
  E: Sub-process /usr/sbin/apt-listbugs apt || exit 10 returned an error code (10)
  E: Failure running script /usr/sbin/apt-listbugs apt || exit 10
  A package failed to install.  Trying to recover:

Indeed there seems to be a regression in the hook info (version 2)
provided by libapt-pkg.
With apt/0.9.9.1 and libapt-pkg4.12/0.9.9.1 the relevant
Pre-Install-Pkgs hook info is:

  VERSION 2

  python3.2 > - **REMOVE**

The python3.2 remove line only has 4 fields, while five are expected.
After downgrading to libapt-pkg4.12/0.9.8.2 apt/0.9.8.2, I get the
correct number of fields:

  VERSION 2

  python3.2 - > - **REMOVE**
  python3.2-minimal - > - **REMOVE**

and apt-listbugs successfully reads the hook info and does what it has
to.

As you pointed out at the beginning of your bug report, the issue may
have been introduced while adding version 3 of the hook info protocol.

I am reassigning your bug report to package libapt-pkg4.12 : I hope it
may be fixed soon.

Bye and thanks again for reporting the issue.


-- 
 http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt
 New GnuPG key, see the transition document!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Attachment: pgpKMZ7xXOb2a.pgp
Description: PGP signature


Reply to: