Bug#311347: marked as done (apt: [apt-get] Option --config-file signals error when there is none)
Your message dated Tue, 31 May 2005 14:41:14 +0100
with message-id <0da801c565e7$1a2d8a10$eb00010a@andromeda>
and subject line Bug#311347: apt: [apt-get] Option --config-file signals error when there is none
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; 31 May 2005 12:10:31 +0000
>From jari.aalto@cante.net Tue May 31 05:10:31 2005
Return-path: <jari.aalto@cante.net>
Received: from fep07-0.kolumbus.fi (fep07-app.kolumbus.fi) [193.229.0.51]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1Dd5Zn-0005uE-00; Tue, 31 May 2005 05:10:31 -0700
Received: from bongo.cante.net ([81.197.3.110]) by fep07-app.kolumbus.fi
with ESMTP
id <20050531121029.JGZM9540.fep07-app.kolumbus.fi@bongo.cante.net>
for <submit@bugs.debian.org>; Tue, 31 May 2005 15:10:29 +0300
Received: from mx2.cante.net ([192.168.1.3]:1947 helo=cante.cante.net)
by bongo.cante.net with esmtp (Exim 4.50)
id 1Dd5Zl-0006k8-1k; Tue, 31 May 2005 15:10:29 +0300
Received: from jaalto by cante.cante.net with local (Exim 4.50)
id 1Dd5a4-0005rw-N2; Tue, 31 May 2005 15:10:48 +0300
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Jari Aalto <jari.aalto@cante.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apt: [apt-get] Option --config-file signals error when there is none
X-Mailer: reportbug 3.12
Date: Tue, 31 May 2005 15:10:48 +0300
Message-Id: <[🔎] E1Dd5a4-0005rw-N2@cante.cante.net>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Package: apt
Version: 0.5.28.6
Severity: normal
This command:
apt-get -c /etc/apt/sources.list update
gives error:
E: Syntax error /etc/apt/sources.list:10: Extra junk at end of file
but the file structure is perfect:
# nl -ba /etc/apt/sources.list
1 #deb file:///cdrom/ sarge main
2
3 deb http://ftp.fi.debian.org/debian/ testing main
4 deb-src http://ftp.fi.debian.org/debian/ testing main
5
6 deb http://security.debian.org/ testing/updates main
7
8 deb http://deb.opera.com/opera unstable non-free
9 deb ftp://ftp.nerim.net/debian-marillat/ unstable main
Whereas plain "apt-get update" works fine.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)
Versions of packages apt depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libgcc1 1:3.4.3-13 GCC support library
ii libstdc++5 1:3.3.6-5 The GNU Standard C++ Library v3
-- no debconf information
---------------------------------------
Received: (at 311347-done) by bugs.debian.org; 31 May 2005 13:46:45 +0000
>From debian-bts@adam-barratt.org.uk Tue May 31 06:46:44 2005
Return-path: <debian-bts@adam-barratt.org.uk>
Received: from mail0.avcosystems.co.uk [195.224.236.86]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1Dd74u-0000IR-00; Tue, 31 May 2005 06:46:44 -0700
Received: from lexx.avco ([192.168.0.1] helo=andromeda)
by mail0.avcosystems.co.uk with esmtp (Exim 4.50 #1 (Debian))
id 1Dd74M-0006Ln-5L; Tue, 31 May 2005 14:46:10 +0100
Received: from 127.0.0.1 (AVG SMTP 7.0.323 [267.3.0]); Tue, 31 May 2005 14:46:10 +0100
Message-ID: <0da801c565e7$1a2d8a10$eb00010a@andromeda>
From: "Adam D. Barratt" <debian-bts@adam-barratt.org.uk>
To: "Jari Aalto" <jari.aalto@cante.net>
Cc: <311347-done@bugs.debian.org>
References: <[🔎] E1Dd5a4-0005rw-N2@cante.cante.net>
Subject: Re: Bug#311347: apt: [apt-get] Option --config-file signals error when there is none
Date: Tue, 31 May 2005 14:41:14 +0100
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-AVCO-Scan-Signature: cedc0eb43f2d1a876fe812007c96f5f1
Delivered-To: 311347-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.5 required=4.0 tests=BAYES_30,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
On Tuesday, May 31, 2005 1:10 PM, Jari Aalto <jari.aalto@cante.net> wrote:
> This command:
>
> apt-get -c /etc/apt/sources.list update
>
> gives error:
>
> E: Syntax error /etc/apt/sources.list:10: Extra junk at end of file
[...]
> Whereas plain "apt-get update" works fine.
That's hardly surprising, given that you're trying to use -c for something
it was never designed for.
>From apt-get(8):
-c
--config-file
Configuration File; Specify a configuration file to
use. The program will read the default configura
tion file and then this configuration file. See
apt.conf(5) for syntax information.
sources.list is *not* apt.conf, so naturally trying to substitute one for
the other will fail. What you appear to be attempting is
apt-get -o Item::Dir::Etc::SourceList=/etc/apt/sources.list update
also as per apt-get(8)
Closing this report as due to user error.
Regards,
Adam
Reply to: