Package: apt
Version: 0.7.20.2ubuntu6
Severity: normal

Problem: I would like to download several packages with their dependencies 
through apt-get. Specifically, I am using chdist and apt-get, so it would 
be a great comfort if this bug is fixed.

Description:
While having installed nvidia-glx-180 (ubuntu-specific) on my system, 
I have tried to download some packages that are known to conflict:
$ apt-cache show nvidia-glx-71 nvidia-glx-180
Package: nvidia-glx-71
[...]
Architecture: amd64
Source: nvidia-graphics-drivers-71
Version: 71.86.08-0ubuntu1
Replaces: nvidia-glx, nvidia-glx-173, nvidia-glx-177, nvidia-glx-180, 
nvidia-glx-71, nvidia-glx-96, nvidia-glx-envy, nvidia-glx-legacy, 
nvidia-glx-legacy-envy, nvidia-glx-new, nvidia-glx-new-envy, nvidia-glx-src
Provides: nvidia-glx, xserver-xorg-video-5
Depends: nvidia-71-kernel-source (>= 71.86.08), x11-common (>= 1:7.0.0), 
libc6 (>= 2.3), libgl1-mesa | libgl1, libx11-6, libxext6
Recommends: nvidia-settings
Conflicts: nvidia-glx, nvidia-glx-src, xorg-driver-fglrx
[...]

Package: nvidia-glx-180
[...]
Architecture: amd64
Source: nvidia-graphics-drivers-180
Version: 180.44-0ubuntu1
Replaces: nvidia-glx, nvidia-glx-173, nvidia-glx-177, nvidia-glx-180, 
nvidia-glx-71, nvidia-glx-96, nvidia-glx-envy, nvidia-glx-legacy, 
nvidia-glx-legacy-envy, nvidia-glx-new, nvidia-glx-new-envy, nvidia-glx-src
Provides: nvidia-glx, xserver-xorg-video-5
Depends: nvidia-180-kernel-source (>= 180.44), nvidia-180-libvdpau (>= 180.44), 
x11-common (>= 1:7.0.0), libc6 (>= 2.3.2), libgl1-mesa | libgl1, libx11-6, 
libxext6, zlib1g (>= 1:1.1.4)
Recommends: nvidia-settings
Conflicts: nvidia-glx, nvidia-glx-src, xorg-driver-fglrx
[...]

Here are some commands I tried by enabling force-all:
apt-get -o DPkg::Options::="--force-all" -d install nvidia-glx-71
apt-get -o DPkg::Options::="--force-all" -d install nvidia-glx-71
apt-get -o DPkg::Options::="--force-breaks" -o 
DPkg::Options::="--force-conflicts" -d install nvidia-glx-71

I have also tried to apply the following rules:
$ cat /etc/apt/apt.conf.d/custom-apt-test
DPkg 
{
  Options {"--force-all";}
}

Moreover, the apt-config dump shows another attempt with these options:
DPkg::Options:: "--force-breaks";
DPkg::Options:: "--force-conflicts";
DPkg::Options:: "--force-depends";

None of them seem to work.

These were also tested through chdist apt-get (with proper apt.conf options) 
and still cause problem, probably because apt-get checks the system for 
installed packages, even with the -d option passed.

Suggestion:
The solutions I can recommend would be to
a) Fix the dpkg options to be recognized (I might be using something 
   wrong here so not 100% sure).
and/or
b) Since "-d" argument specifically tells apt-get not to install/process a 
package
   but just download it, apt-get should not check the system for installed 
packages 
   with the "-d" option enabled (probably limit it to a warning?).

Thank you for your time!

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::Update "";
APT::Update::Ppost-Invoke "";
APT::Update::Ppost-Invoke:: "[ ! -x /usr/lib/ia32-libs-tools/mangle ] || cat 
/var/lib/apt/lists/*_Packages /usr/lib/ia32-libs-tools/mangle --index 
>/dev/null";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "touch 
/var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";
APT::Update::Post-Invoke-Success:: "(sleep 60; /usr/bin/dbus-send --system 
--dest=org.freedesktop.PackageKit --type=method_call 
/org/freedesktop/PackageKit org.freedesktop.PackageKit.StateHasChanged 
string:'cache-update')&";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Periodic "";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "1";
APT::Archives "";
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
aptitude "";
aptitude::Keep-Unused-Pattern "^linux-image.*$ | ^linux-restricted-modules.*$ | 
^linux-ubuntu-modules.*$";
aptitude::Get-Root-Command "sudo:/usr/bin/sudo";
Unattended-Upgrade "";
Unattended-Upgrade::Allowed-Origins "";
Unattended-Upgrade::Allowed-Origins:: "Ubuntu jaunty-security";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch 
/var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/run/updates-available 
]; then echo > /var/run/updates-available; fi ";
DPkg::Options "";
DPkg::Options:: "--force-breaks";
DPkg::Options:: "--force-conflicts";
DPkg::Options:: "--force-depends";
Acquire "";
Acquire::http "";
Acquire::http::Dl-Limit "80";
Acquire::Translation "none";

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://rs.archive.ubuntu.com/ubuntu/ jaunty main restricted universe 
multiverse
deb-src http://rs.archive.ubuntu.com/ubuntu/ jaunty main restricted universe 
multiverse

deb http://rs.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted 
universe multiverse
deb-src http://rs.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted 
universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://security.ubuntu.com/ubuntu jaunty-security main restricted universe 
multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted 
universe multiverse

-- System Information:
Debian Release: 5.0
  APT prefers jaunty-updates
  APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-11-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt depends on:
ii  libc6                   2.9-4ubuntu6     GNU C Library: Shared libraries
ii  libgcc1                 1:4.3.3-5ubuntu4 GCC support library
ii  libstdc++6              4.3.3-5ubuntu4   The GNU Standard C++ Library v3

Versions of packages apt recommends:
ii  ubuntu-keyring                2008.03.04 GnuPG keys of the Ubuntu archive

Versions of packages apt suggests:
pn  apt-doc               <none>             (no description available)
ii  aptitude              0.4.11.11-1ubuntu1 terminal-based package manager
ii  bzip2                 1.0.5-1ubuntu1     high-quality block-sorting file co
ii  dpkg-dev              1.14.24ubuntu1     Debian package development tools
ii  lzma                  4.43-14ubuntu1     Compression method of 7z format in
ii  python-apt            0.7.9~exp2ubuntu10 Python interface to libapt-pkg
ii  synaptic              0.62.5ubuntu3      Graphical package manager

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to