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

Bug#219743: apt-get ignores --no-upgrade option



On Sat, Nov 08, 2003 at 11:40:01AM +0100, Jan Gregor wrote:

> I tried to install libti68k-dev libticables3-dev and libticalcs3-dev
> with:
>  apt-get --no-upgrade install libti68k-dev libticables3-dev libticalcs3-dev
> 
> and there's result:
> 
> Reading Package Lists... Done
> Building Dependency Tree... Done
> The following extra packages will be installed:
>   fileutils libusb-dev tidev-modules-source 
> The following NEW packages will be installed:
>   libti68k-dev libticables3-dev libticalcs3-dev libusb-dev
>   tidev-modules-source 
> 1 packages upgraded, 5 newly installed, 0 to remove and 358  not
>   upgraded.
> Need to get 0B/1151kB of archives. After unpacking 2400kB will be
>   used.
> Do you want to continue? [Y/n]
> 
> 
> apt-get simply ignores my request to not upgrade fileutils.

It isn't quite so simple.  tidev-modules-source Depends: coreutils (>=
4.5.1-1), so it is being installed automatically.  This happens to force an
upgrade of fileutils due to a conflict with coreutils.

The alternative would be to fail, since those packages cannot be installed
without upgrading fileutils.

I believe the no-upgrade option only applies to packages which are
explicitly requested, and not to packages which might be upgraded in order
to satisfy dependencies.  For example, apt-get --no-upgrade install
fileutils would exit without upgrading fileutils.  Perhaps the documentation
should be clarified.

-- 
 - mdz



Reply to: