Francesco Poli a scris:
> tag 611913 unreproducible
> severity 611913 normal
> thanks
> 
> 
> On Thu, 03 Feb 2011 18:56:25 +0200 Eddy Petrișor wrote:
> 
>> Subject: apt-listbugs: Breaks installation if removed and not purged
>> Package: apt-listbugs
>> Version: 0.0.90
>> Severity: critical
>> Justification: breaks unrelated software
> [...]
>> Hello,
> 
> Hi Eddy.
> Thanks for your bug report!
> 
>> I am aware that the 0.0.90 version is not in lenny nor in squeeze,
>> but I've checked the faulty script and it has the same form in 0.0.89.
>>
>> The problem is that I have tried to remove apt-listbugs and after its
>> removal all package manipulation fails with this message:
>>
>> /bin/sh: /usr/sbin/apt-listbugs: not found
>> 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
> 
> This problem should be fixed since apt-listbugs/0.0.77 (see changelog)
> and I am not able to reproduce it.
> 
> I've just tried the following in a sid chroot:
> 
>   # aptitude install apt-listbugs
>   [...]
>   # aptitude remove apt-listbugs
>   [...]
>   # ls /etc/apt/apt.conf.d/10apt-listbugs 
>   ls: cannot access /etc/apt/apt.conf.d/10apt-listbugs: No such file or 
> directory
>   # ls /etc/apt/apt.conf.d/*listbugs*
>   /etc/apt/apt.conf.d/10apt-listbugs.disabled
>   # aptitude install apt-listbugs
>   [...]
>   # echo $?
>   0

I think the problem is that aptitude caches these since I've seen
aptitude fail even after modifying by hand the script.

So the way to reproduce is probably install apt-listbugs and then remove it.

>>
>> The problem is that once uninstalled and not purged this command/hook
>> fails (/etc/apt/apt.conf.d/10apt-listbugs):
>>
>>
>> DPkg::Pre-Install-Pkgs {"/usr/sbin/apt-listbugs apt || exit 10"};
> 
> This file should be renamed to
> /etc/apt/apt.conf.d/10apt-listbugs.disabled
> when apt-listbugs is removed (but not purged).
> 
> Both apt-get and aptitude ignore *.disabled configuration fragments,
> AFAICT.
> 
>> Since /usr/sbin/apt-listbugs is no longer present. The problem is that
>> even if one tries to install back via dpkg apt-listbugs and no longer
>> has the ruby deps, the problem still persists.
> [...]
> 
> If everything else fails, try to temporarily convert the line
> 
>   DPkg::Pre-Install-Pkgs {"/usr/sbin/apt-listbugs apt || exit 10";};
> 
> into a comment (by placing a // symbol at the beginning of the line
> itself)...
> 
> 


-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to