/etc/apt/sources.list:
deb http://debian.uchicago.edu/debian/ testing main contrib non-free
deb-src http://debian.uchicago.edu/debian/ testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
/etc/apt/apt-file.conf:
# Apt-file configuration file
# Substitutions are made as follow:
# host => remote hostname
# port => port
# uri => complete URI from sources.list
# path => path from /
# dist => the distrib name
# comp => the component name
# cache => path to the cache dir
# dest => the destination file name
# cdrom => cdrom mount point
# Where are located Packages (relative to <comp>
directory)
destination =
<host>_<path>_dists_<dist>_Contents-<arch>.gz
# Fetch methods using curl -L
http = curl -L -I "<uri>/dists/<dist>/Contents-<arch>.gz"
2>&1 | grep '^HTTP.*404' > /dev/null || (curl -L -z
"<cache>/<dest>" -R -o "<cache>/<dest>_tmp"
"<uri>/dists/<dist>/Contents-<arch>.gz" >/dev/null 2>&1 &&
(mv "<cache>/<dest>_tmp" "<cache>/<dest>" 2>&1 && chmod
644 "<cache>/<dest>") || (rm -f "<cache>/<dest>_tmp"; echo
"Can't get <uri>/dists/<dist>/Contents-<arch>.gz"))
ftp = curl -L --ftp-pasv -I
"<uri>/dists/<dist>/Contents-<arch>.gz" 2>&1 | grep
'^Content-Length:' > /dev/null && (curl -L --ftp-pasv -z
"<cache>/<dest>" -R -o "<cache>/<dest>_tmp"
"<uri>/dists/<dist>/Contents-<arch>.gz" >/dev/null 2>&1 &&
(mv "<cache>/<dest>_tmp" "<cache>/<dest>" 2>&1 && chmod
644 "<cache>/<dest>") || (rm -f "<cache>/<dest>_tmp"; echo
"Can't get <uri>/dists/<dist>/Contents-<arch>.gz"))
# If you prefere wget uncomment following
http2 = wget -N -P "<cache>" -O "<cache>/<dest>_tmp"
"<uri>/dists/<dist>/Contents-<arch>.gz" >/dev/null 2>&1 &&
(mv "<cache>/<dest>_tmp" "<cache>/<dest>" && chmod 644
"<cache>/<dest>")|| (rm -f "<cache>/<dest>_tmp"; echo
"<uri>/dists/<dist>/Contents-<arch>.gz not found")
ftp2 = wget -N --passive-ftp -P "<cache>" -O
"<cache>/<dest>_tmp"
"<uri>/dists/<dist>/Contents-<arch>.gz" >/dev/null 2>&1 &&
( mv "<cache>/<dest>_tmp" "<cache>/<dest>" && chmod 644
"<cache>/<dest>") || (rm -f "<cache>/<dest>_tmp"; echo
"<uri>/dists/<dist>/Contents-<arch>.gz not found")
ssh = scp -l <user> -P <port|22>
"<host>:/<path>/dists/<dist>/Contents-<arch>.gz"
"<cache>/<dest>" && chmod 644 "<cache>/<dest>"
rsh = rcp -l <user>
"<host>:/<path>/dists/<dist>/Contents-<arch>.gz"
"<cache>/<dest>" && chmod 644 "<cache>/<dest>"
file = cp "/<path>/dists/<dist>/Contents-<arch>.gz"
"<cache>/<dest>" && chmod 644 "<cache>/<dest>"
copy = cp "/<path>/dists/<dist>/Contents-<arch>.gz"
"<cache>/<dest>" && chmod 644 "<cache>/<dest>"
cdrom = echo "Put CDROM labeled <path> in the cdrom
device" > /dev/stderr ; read ; mount "<cdrom>"; cp
"<cdrom>/dists/<dist>/Contents-<arch>.gz" "<cache>/<dest>"
&& chmod 644 "<cache>/<dest>"; umount "<cdrom>"
Don
On Fri, 4 Jan 2008, [EMAIL PROTECTED] wrote:
Date: Fri, 04 Jan 2008 20:26:10 -0800
From: [EMAIL PROTECTED]
To: [email protected]
Subject: Re: apt-get problem
Resent-Date: Sat, 5 Jan 2008 04:27:24 +0000 (UTC)
Resent-From: [email protected]
Quoting "Douglas A. Tutty" <[EMAIL PROTECTED]>:
On Fri, Jan 04, 2008 at 06:32:52PM -0600, Don Montgomery wrote:
Hello,
I am having a problem with apt-get (please see below).
(I have noted no other network problems: browser and ssh
work fine.) I am not sure what is supposed to go on with
localhost. Any ideas?
Thanks in advance, Don
[EMAIL PROTECTED]:/home/don# apt-get update
Err http://security.debian.org testing/updates Release.gpg
Could not connect to localhost:4001 (127.0.0.1). -
connect (111 Connection refused)
Err http://security.debian.org testing/updates/main
Translation-en_US
Could not connect to localhost:4001 (127.0.0.1). -
connect (111 Connection refused)
It looks like your apt is trying to connect via an http proxy on
localhost at port 4001 and is unable to. Does your browser connect via
a proxy? ssh uses a different port so wouldn't be involved in a proxy
issue.
For completeness, give us your /etc/apt/sources.list.
I don't know where proxies are set up for apt.
/etc/apt/apt.conf might contain some settings, and most likely the place for
a proxy.
Cheers,
Mike
--
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]