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

Bug#241809: marked as done (apt-get -y is broken by package authentication)



Your message dated Sat, 3 Apr 2004 11:48:58 -0800
with message-id <20040403194858.GW7200@alcor.net>
and subject line Bug#241809: apt-get -y is broken by package authentication
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 3 Apr 2004 04:39:23 +0000
>From andrew@catalyst.net.nz Fri Apr 02 20:39:23 2004
Return-path: <andrew@catalyst.net.nz>
Received: from 218-101-13-8.paradise.net.nz (lamb.mcmillan.net.nz) [218.101.13.8] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1B9cwE-0000wO-00; Fri, 02 Apr 2004 20:39:22 -0800
Received: by lamb.mcmillan.net.nz (Postfix, from userid 1000)
	id 783AEAD985B1; Sat,  3 Apr 2004 16:39:18 +1200 (NZST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Andrew McMillan <debian-bugs-200404@mcmillan.net.nz>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apt-get -y is broken by package authentication
X-Mailer: reportbug 2.55
Date: Sat, 03 Apr 2004 16:39:18 +1200
Message-Id: <[🔎] 20040403043918.783AEAD985B1@lamb.mcmillan.net.nz>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
	HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: apt
Version: 0.6.21
Severity: wishlist


This relates only to the version of apt, currently in experimental,
which does package authentication.

Since the "-y" option to Apt forces a "Yes" answer to each question
it is useless where packages cannot be authenticated, and I have to
not use it.  Among other things this breaks cron-apt, which expects
to do something like:

apt-get -fyd dist-upgrade

and which is intended to run to completion without interaction.

While I realise that ultimately it will be important to enable package
authentication in all cases, at present this is necessarily harder to
allow.

The questions from apt-get are currently:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
After unpacking 2801kB of additional disk space will be used.
Do you want to continue? [Y/n]
WARNING: The following packages cannot be authenticated!
  fileutils ethereal-common
Abort? [Y/n]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

perhaps it would be better if those were something like:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
After unpacking 2801kB of additional disk space will be used.
Do you want to continue? [Y/n]
WARNING: The following packages cannot be authenticated!
  fileutils ethereal-common
Do you still want to continue? [y/N]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

so that "--yes" and friends still allow unattended operation.

Thanks,
              Andrew McMillan


-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
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::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";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";

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


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

# Debian Unstable...
deb http://http.us.debian.org/debian unstable main contrib non-free
deb http://non-us.debian.org/debian-non-US unstable/non-US main

# Debian Unstable Source...
deb-src http://http.us.debian.org/debian unstable main

# MPlayer and others
deb ftp://ftp.nerim.net/debian-marillat/ unstable main

# Experimental, for the truly bleeding edge...
deb http://ftp.debian.org/debian ../project/experimental main contrib non-free

# DRI trunk for latest DRI drivers
deb http://dri.freedesktop.org/~daenzer/debian/dri-trunk-sid/ ./


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.5-rc3-mm1
Locale: LANG=C, LC_CTYPE=C

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.4-0pre2  GCC support library
ii  libstdc++5                  1:3.3.3-5    The GNU Standard C++ Library v3

-- no debconf information

---------------------------------------
Received: (at 241809-done) by bugs.debian.org; 3 Apr 2004 19:49:31 +0000
>From mdz@alcor.net Sat Apr 03 11:49:31 2004
Return-path: <mdz@alcor.net>
Received: from mta13.mail.adelphia.net (mta13.adelphia.net) [68.168.78.44] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1B9r90-0000jS-00; Sat, 03 Apr 2004 11:49:30 -0800
Received: from mizar.alcor.net ([69.167.148.1]) by mta13.adelphia.net
          (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with ESMTP
          id <20040403194859.BRMB28869.mta13.adelphia.net@mizar.alcor.net>;
          Sat, 3 Apr 2004 14:48:59 -0500
Received: from mdz by mizar.alcor.net with local (Exim 4.30)
	id 1B9r8U-0005Dm-NS; Sat, 03 Apr 2004 11:48:58 -0800
Date: Sat, 3 Apr 2004 11:48:58 -0800
From: Matt Zimmerman <mdz@debian.org>
To: Andrew McMillan <debian-bugs-200404@mcmillan.net.nz>,
	241809-done@bugs.debian.org
Subject: Re: Bug#241809: apt-get -y is broken by package authentication
Message-ID: <20040403194858.GW7200@alcor.net>
Mail-Followup-To: Matt Zimmerman <mdz@debian.org>,
	Andrew McMillan <debian-bugs-200404@mcmillan.net.nz>,
	241809-done@bugs.debian.org
References: <[🔎] 20040403043918.783AEAD985B1@lamb.mcmillan.net.nz>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] 20040403043918.783AEAD985B1@lamb.mcmillan.net.nz>
User-Agent: Mutt/1.5.5.1+cvs20040105i
Sender: Matt Zimmerman <mdz@alcor.net>
Delivered-To: 241809-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-4.5 required=4.0 tests=BAYES_01,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

On Sat, Apr 03, 2004 at 04:39:18PM +1200, Andrew McMillan wrote:

> Package: apt
> Version: 0.6.21
> Severity: wishlist
> 
> 
> This relates only to the version of apt, currently in experimental,
> which does package authentication.
> 
> Since the "-y" option to Apt forces a "Yes" answer to each question
> it is useless where packages cannot be authenticated, and I have to
> not use it.  Among other things this breaks cron-apt, which expects
> to do something like:

It is intentional that --yes/-y does not allow unauthenticated packages;
this is considered a dangerous, unexpected action which should not happen
automatically.

--force-yes will override this (as well as a number of other situations),
and --allow-unauthenticated will override only this particular check.

-- 
 - mdz



Reply to: