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

Bug#548013: marked as done (apt: Claim optional dependency of required package is a hard dependency)



Your message dated Sun, 03 Apr 2016 11:41:26 +0200
with message-id <2flk2kfvxkp.fsf@diskless.uio.no>
and subject line Re: Bug#548013: apt: Claim optional dependency of required package is a hard dependency
has caused the Debian Bug report #548013,
regarding apt: Claim optional dependency of required package is a hard dependency
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
548013: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548013
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package:  apt
Version:  0.7.23.1
Severity: normal

I discovered this while tracking down a problem reported by piuparts
(see #539142).  There, apt refuses to remove install-info because it
is seen to be a dependency of the required package util-linux, while
aptitude is OK with removing it, because it is only an optional
dependency and a new enough dpkg is installed.  The version of
util-linux have this depends line:

  Depends: [...], dpkg (>= 1.15.4) | install-info

In the chroot, version 1.15.4 of dpkg is installed.

Here is a test run.  Note how apt-get refuses to remove install-info,
while aptitude happily remove it.


# debootstrap sid chroot-directory http://ftp.se.debian.org/debian ; chroot chroot-directory apt-get remove -y install-info; chroot chroot-directory aptitude remove -y install-info
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
[...]
I: Configuring apt-utils...
I: Configuring aptitude...
I: Configuring tasksel-data...
I: Configuring tasksel...
I: Base system installed successfully.
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  info install-info
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  install-info (due to util-linux)
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 659kB disk space will be freed.
E: There are problems and -y was used without --force-yes
Reading package lists... Done
Building dependency tree... Done
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
The following packages are BROKEN:
  info
The following packages will be REMOVED:
  install-info
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 258kB will be freed.
The following packages have unmet dependencies:
  info: Depends: install-info but it is not installable
The following actions will resolve these dependencies:

Remove the following packages:
info

Score is 115

Writing extended state information... Done
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 10023 files and directories currently installed.)
Removing info ...
Removing install-info ...
Processing triggers for man-db ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done

#

Happy hacking,
-- 
Petter Reinholdtsen



--- End Message ---
--- Begin Message ---
Version: 1.2.9

[Petter Reinholdtsen 2009-09-23]
> I discovered this while tracking down a problem reported by piuparts
> (see #539142).  There, apt refuses to remove install-info because it
> is seen to be a dependency of the required package util-linux, while
> aptitude is OK with removing it, because it is only an optional
> dependency and a new enough dpkg is installed.  The version of
> util-linux have this depends line:
> 
>   Depends: [...], dpkg (>= 1.15.4) | install-info
> 
> In the chroot, version 1.15.4 of dpkg is installed.
> 
> Here is a test run.  Note how apt-get refuses to remove install-info,
> while aptitude happily remove it.
> 
> # debootstrap sid chroot-directory http://ftp.se.debian.org/debian ; chroot
> chroot-directory apt-get remove -y install-info; chroot chroot-directory
> aptitude remove -y install-info

I tried to reproduce this in todays sid, but could not reproduce it
using the oneliner above because install-info was not installed by
default any more.

I tried to modify it to install install-info as well, as it is now an
optional dependency of the required package gzip:

  debootstrap --include=install-info sid chroot-directory \
              http://httpredir.debian.org/debian
  chroot chroot-directory apt-get remove -y install-info

This succeeded, and I conclude that this bug is fixed in todays sid.
Closing.
--
Happy hacking
Petter Reinholdtsen

--- End Message ---

Reply to: