Bug#681660: apt: ds

July 15th, 2012 - 05:10 am ET by Faheem Mitha | Report spam
Package: apt
Version: 0.8.10.3+squeeze1
Severity: normal


MIME-Version: 1.0
From: Faheem Mitha <faheem@bulldog.duhs.duke.edu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: If source for target specified to apt-get install does not exist,
then apt installs stable version
Bcc: Faheem Mitha <faheem@bulldog.duhs.duke.edu>
Message-ID: <20120715084714.10526.26716.reportbug@bulldog.duhs.duke.edu>
X-Mailer: reportbug 4.12.6
Date: Sun, 15 Jul 2012 04:47:14 -0400

Package: apt
Version: 0.8.10.3+squeeze1
Severity: normal


It seems to me that in this situation, apt should exit with an error,
since the squeeze-backports version requested is not available, but
instead the stable version is installed.

faheem@bulldog[default branch:rev 1]:/usr/local/src/ccl-1.8$ sudo
apt-get install dh-lisp -t squeeze-backports
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
dh-lisp
0 upgraded, 1 newly installed, 0 to remove and 121 not upgraded.
Need to get 10.1 kB of archives.
After this operation, 102 kB of additional disk space will be used.
Get:1 http://debian.lcs.mit.edu/debian/ squeeze/main dh-lisp all
0.6.6 [10.1 kB]
Fetched 10.1 kB in 0s (22.2 kB/s)
Selecting previously deselected package dh-lisp.
(Reading database ... 161556 files and directories currently installed.)
Unpacking dh-lisp (from .../archives/dh-lisp_0.6.6_all.deb) ...
Processing triggers for man-db ...
Setting up dh-lisp (0.6.6) ...

faheem@bulldog[default branch:rev 1]:/usr/local/src/ccl-1.8$ apt-cache
policy dh-lisp
dh-lisp:
Installed: 0.6.6
Candidate: 0.6.6
Version table:
0.7.1 0
50 http://debian.lcs.mit.edu/debian/ unstable/main amd64 Packages
*** 0.6.6 0
500 http://debian.lcs.mit.edu/debian/ squeeze/main amd64 Packages
100 /var/lib/dpkg/status



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::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-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::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Cache-Limit "156777216";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
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::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
Unattended-Upgrade "";
Unattended-Upgrade::Allowed-Origins "";
Unattended-Upgrade::Allowed-Origins:: "${distro_id} stable";
Unattended-Upgrade::Allowed-Origins:: "${distro_id} ${distro_codename}-security";
CommandLine "";
CommandLine::AsString "apt-config dump";



Package: *
Pin: release a=testing
Pin-Priority: 50

Package: *
Pin: release a=wheezy
Pin-Priority: 50

Package: *
Pin: release a=unstable
Pin-Priority: 50

Package: *
Pin: release a=experimental
Pin-Priority: 1

Package: *
Pin: release a=snapshot.debian.net
Pin-Priority: 1


#
# deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official amd64 NETINST Binary-1 20080218-14:10]/ etch contrib main

#deb http://debian.lcs.mit.edu/debian/ etch main non-free contrib
#deb-src http://debian.lcs.mit.edu/debian/ etch main non-free contrib

#deb http://security.debian.org/ etch/updates main contrib non-free
#deb-src http://security.debian.org/ etch/updates main contrib non-free

#deb http://debian.lcs.mit.edu/debian/ lenny main non-free contrib
#deb-src http://debian.lcs.mit.edu/debian/ lenny main non-free contrib

#deb http://security.debian.org/ lenny/updates main contrib non-free
#deb-src http://security.debian.org/ lenny/updates main contrib non-free

#deb http://debian.lcs.mit.edu/debian/ squeeze main non-free contrib
#deb-src http://debian.lcs.mit.edu/debian/ squeeze main non-free contrib

#deb http://security.debian.org/ squeeze/updates main contrib non-free
#deb-src http://security.debian.org/ squeeze/updates main contrib non-free

deb http://debian.lcs.mit.edu/debian/ unstable main non-free contrib
deb-src http://debian.lcs.mit.edu/debian/ unstable main non-free contrib

#deb-src http://www.backports.org/debian/ lenny-backports main contrib non-free
#deb http://www.backports.org/debian/ lenny-backports main contrib non-free

#deb http://cran.r-project.org/bin/linux/debian lenny-cran/
#deb-src http://cran.r-project.org/bin/linux/debian lenny-cran/

deb http://debian.lcs.mit.edu/debian/ squeeze main contrib non-free
deb-src http://debian.lcs.mit.edu/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

deb http://cran.stat.ucla.edu/bin/linux/debian squeeze-cran/
deb-src http://cran.stat.ucla.edu/bin/linux/debian squeeze-cran/

deb http://www.backports.org/debian/ squeeze-backports main contrib non-free

deb http://debian.csail.mit.edu/debian/ experimental main non-free contrib
deb-src http://debian.csail.mit.edu/debian/ experimental main non-free contrib

Debian Release: 6.0.5
APT prefers stable
APT policy: (500, 'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii debian-archive-keyring 2010.08.28 GnuPG archive keys of the Debian a
ii gnupg 1.4.10-4 GNU privacy guard - a free PGP rep
ii libc6 2.11.3-3 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.7.0-1 GCC support library
ii libstdc++6 4.7.0-1 GNU Standard C++ Library v3
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime

apt recommends no packages.

Versions of packages apt suggests:
pn apt-doc <none> (no description available)
ii aptitude 0.6.3-3.2+squeeze1 terminal-based package manager (te
ii bzip2 1.0.5-6+squeeze1 high-quality block-sorting file co
ii dpkg-dev 1.16.1.2~bpo60+1 Debian package development tools
ii lzma 4.43-14 Compression method of 7z format in
ii python-apt 0.7.100.1+squeeze1 Python interface to libapt-pkg
ii synaptic 0.70~pre1+b1 Graphical package manager







Debian Release: 6.0.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (50, 'unstable'), (50, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-vserver-686-bigmem (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/bash

Versions of packages apt depends on:
ii debian-archive-keyring 2010.08.28 GnuPG archive keys of the Debian a
ii gnupg 1.4.10-4 GNU privacy guard - a free PGP rep
ii libc6 2.11.3-3 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.7-20111231-1 GCC support library
ii libstdc++6 4.7-20111231-1 GNU Standard C++ Library v3
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime

apt recommends no packages.

Versions of packages apt suggests:
pn apt-doc <none> (no description available)
ii aptitude 0.6.3-3.2+squeeze1 terminal-based package manager (te
ii bzip2 1.0.5-6+squeeze1 high-quality block-sorting file co
ii dpkg-dev 1.16.1.1~bpo60+2 Debian package development tools
ii lzma 4.43-14 Compression method of 7z format in
ii python-apt 0.7.100.1+squeeze1 Python interface to libapt-pkg
ii wajig 2.0.47 simplified Debian package manageme



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Replies

#1 Julian Andres Klode
July 15th, 2012 - 05:50 am ET | Report spam
On Sun, Jul 15, 2012 at 02:50:28PM +0530, Faheem Mitha wrote:


On Sun, 15 Jul 2012, Julian Andres Klode wrote:

>On Sun, Jul 15, 2012 at 02:23:00PM +0530, Faheem Mitha wrote:

>>It seems to me that in this situation, apt should exit with an error,
>>since the squeeze-backports version requested is not available, but
>>instead the stable version is installed.
>
>-t sets the target release. You want dh-lisp/squeeze-backports, which
>then should result in:
>
> $ apt-get install dh-lisp/squeeze-backports
> [...]
> E: Release 'squeeze-backports' for 'dh-lisp' was not found

Yes, it sets the target release. Since the target does not exist,
should apt not abort?



It sets a global target release. If you don't have squeeze-backports
in your sources.list, it will error out with something like:

E: The value 'squeeze-backports' is invalid for APT::Default-Release as such a release is not available in the sources

(in unstable, not in stable). Whether the package exists in the
target release or not is irrelevant:

apt-get install -t squeeze-backports package

means: give packages from squeeze-backports priority 990
and install the version of 'package' with the highest
priorirty

apt-get install package/squeeze-backports

means: install 'package' from squeeze-backports



>And you really messed up your bug report by embedding the
>bug email with its headers inside your real email.

Not really my fault. The machine which the report is for cannot send
email, so I saved it and tried to send it from my home machine using
reportbug's --body-file option, but it sent it without giving me a
chance to edit. The documentation is less than clear about this in
the squeeze reportbug man page. See the bug report
http://bugs.debian.org/cgi-bin/bugr...i?bugH4245



Just remember it for the next time.

I can close this one and resubmit if anyone cares.



The bug is closed. That's what my last email did (although
I did not mention this explicitly). There's no reason to
reopen the bug report in my opinion.

Warning a user that a package does not exist in the release
configured by APT::Default-Release (which is the same as -t)
really seems a bit to extreme.

Julian Andres Klode - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics