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

Bug#565213: apt-listbugs: can't install because it's not installed



* Francesco Poli <frx@firenze.linux.it> [20100114 16:37]:
> On Wed, 13 Jan 2010 21:42:06 +0100 Jörgen Tegnér wrote:

[...]

> However, I've just reproduced the bug on a sid chroot:

> # aptitude install apt-listbugs
> [...]
> # aptitude remove apt-listbugs
> [...]
> # cat /etc/apt/apt.conf.d/10apt-listbugs.disabled 
> // Check all packages whether they has critical bugs before they are installed.
> // If you don't like it, comment it out.
> DPkg::Pre-Install-Pkgs {"/usr/sbin/apt-listbugs apt || exit 10";};
> DPkg::Tools::Options::/usr/sbin/apt-listbugs "";
> DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version "2";
> // AptListbugs::IgnoreRegexp "FTBFS";
> # aptitude install apt-listbugs
> [...]
> Do you want to continue? [Y/n/?] 
> Writing extended state information... Done
> /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
[...]

> It seems that APT changed behavior (in version 0.7.25.1) and stopped
> ignoring .disabled configuration fragments in /etc/apt/apt.conf.d/

> Downgrading to apt/0.7.25 (currently in testing) restores the previous
> behavior.

> I seem to be unable to find any documentation about this behavior
> change in APT: the apt.conf(5) man page simply mentions the existence
> of the /etc/apt/apt.conf.d/ without documenting which files are skipped
> there (see also bug #558348).
> Even apt changelog does not seem to say anything about this change.

> I am hence reassigning the bug to package apt, version 0.7.25.1 .

> Dear apt maintainers, is this behavior change intended?
> If so, how can a package disable an apt configuration fragment
> in /etc/apt/apt.conf.d/ without deleting the file (on package removal)?

It's not just about .disabled files, it also affects any manually
modified configuration files (resulting in e.g. *.dpkg-dist) - files
that shouldn't be considered at all.

A file like:

# cat /etc/apt/apt.conf.d/10fsckup.dpkg-dist
DPkg::Pre-Install-Pkgs {"false || exit 10";};

is (wrongly) being considered and used by apt 0.7.25.1.
The breakage happend between 0.7.25 and 0.7.25.1., though as
Francesco already pointed out there's nothing about that in the
docs/changelog/....

regards,
-mika-

Attachment: signature.asc
Description: Digital signature


Reply to: