Your message dated Sun, 26 Oct 2008 16:36:44 +0100
with message-id <[EMAIL PROTECTED]>
and subject line closed
has caused the Debian Bug report #294344,
regarding Sometimes apt-proxy returns partial files to the HTTP client (APT)
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
294344: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=294344
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: apt-proxy
Version: 1.3.0
Severity: important
Sometimes, apt-get receives incomplete Packages.gz files which makes
gzip to fail uncompressing that file.
I'm not able to reproduce this in a orderly fashion since either
reissuing "apt-get update" after the failure or cleaning the cache and
typing "apt-get update" works. I can't really tell what's hapenning.
Here are the two log entries for the file that failed. The first entry
is the one where it failed. The second one is the second attempt where
it worked (without brutally cleaning the cache)
[9689 04:01:27] Delivered partial file
/var/cache/apt-proxy/http://deb.plutohome.com/debian/dists/20dev/main/binary-i386/Packages.gz,
from offset 0.
[10799 04:03:15] Delivered partial file
/var/cache/apt-proxy/http://deb.plutohome.com/debian/dists/sarge/main/binary-i386/Packages.gz,
from offset 1298312.
Any ideas?
My version contains minor local modifications regarding multiple
slashes. That's the only difference from the woody package, which I
append to this message.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages apt-proxy depends on:
ii ash 0.5.1-3 Compatibility package for the Debi
ii grep-dctrl 2.1.8 Grep Debian package information
ii netbase 4.19 Basic TCP/IP networking system
ii tcpd 7.6.dbs-6 Wietse Venema's TCP wrapper utilit
ii wget 1.9.1-8 retrieves files from the web
-- no debconf information
Patch: it shows more changes than there have actually been made because
I replaced some spaces with tabs here and there. Also has support for an
external backends file (usefull for script automation).
*** /home/users/radu/test/apt-proxy-1.3.0-pluto-3.patch
diff -ur apt-proxy-1.3.0/apt-proxy apt-proxy-1.3.0-pluto-3/apt-proxy
--- apt-proxy-1.3.0/apt-proxy 2002-04-04 15:30:19.000000000 +0300
+++ apt-proxy-1.3.0-pluto-3/apt-proxy 2005-01-19 01:25:35.000000000 +0200
@@ -12,7 +12,7 @@
# `I was joking!' -- Paul Mackerras
# `Note that Rusty's name is at the top' -- Stephen Rothwell.
# `Perl!!! Please?' -- Martin Schwenke
-APT_PROXY_VERSION=1.3.0
+APT_PROXY_VERSION=1.3.0-pluto-3
# Default values
APT_PROXY_LOGFILE=/dev/null
@@ -197,31 +197,31 @@
#WGET_CMD="$WGET --non-verbose --timestamping --no-host-directories
\
WGET_CMD="$WGET --timestamping --no-host-directories --tries=5 \
--no-directories -P $DL_DESTDIR"
- if [ -z "$DL_DIR" ];then
- # File
- DL_TEMPFILE=$DL_DESTDIR/.`echo $DL_DESTFILE | tr -s / _`.wget
-
- debug $WGET_CMD -O $DL_TEMPFILE $DL_URL
- $WGET_CMD -O $DL_TEMPFILE $DL_URL > $DL_LOG 2>&1
- RET=$?
- if [ $RET = 0 ];then
- # Success
-
- # If the remote file is not newer than the local file, the
- # output file is zero length
- if [ -s $DL_TEMPFILE ]; then
- # move file to final location
- mv $DL_TEMPFILE $DL_FILE
- debug "got file: `ls -l $DL_FILE`"
- else
- rm -f $DL_TEMPFILE
- fi
-
+ DL_URL=`echo "$DL_URL" | sed 's!//*!/!g; s!/$!!;
s!^http:/!http://!; s!^ftp:/!ftp://!'`
+ if [ -z "$DL_DIR" ];then
+ # File
+ DL_TEMPFILE=$DL_DESTDIR/.`echo $DL_DESTFILE | tr -s /
_`.wget
+
+ debug $WGET_CMD -O $DL_TEMPFILE $DL_URL
+ $WGET_CMD -O $DL_TEMPFILE $DL_URL > $DL_LOG 2>&1
+ RET=$?
+ if [ $RET = 0 ];then
+ # Success
+
+ # If the remote file is not newer than the
local file, the
+ # output file is zero length
+ if [ -s $DL_TEMPFILE ]; then
+ # move file to final location
+ mv $DL_TEMPFILE $DL_FILE
+ debug "got file: `ls -l $DL_FILE`"
+ else
+ rm -f $DL_TEMPFILE
+ fi
+ else
+ # Remove empty file created by wget
+ rm -f $DL_TEMPFILE
+ fi
else
- # Remove empty file created by wget
- rm -f $DL_TEMPFILE
- fi
- else
# Directory
# Note: ftp using wget will create a .listing file in the parent
diff -ur apt-proxy-1.3.0/apt-proxy.conf apt-proxy-1.3.0-pluto-3/apt-proxy.conf
--- apt-proxy-1.3.0/apt-proxy.conf 2002-04-04 15:30:19.000000000 +0300
+++ apt-proxy-1.3.0-pluto-3/apt-proxy.conf 2005-01-18 20:54:58.000000000
+0200
@@ -3,6 +3,10 @@
# Change this path if you do not want to keep your cache under var
APT_PROXY_CACHE=/var/cache/apt-proxy
+if [ -f /etc/apt-proxy/backends.sh ]; then
+ . /etc/apt-proxy/backends.sh
+fi
+
### Rsync Backends
# Three or more fields each:
# 1) URL prefix
@@ -19,23 +23,23 @@
# HINT: Any request matching none of these is not served, making
# partial caching easy.
-add_backend /main/ \
- $APT_PROXY_CACHE/debian/ \
- ftp.us.debian.org::debian/ \
- ftp.de.debian.org::debian/ \
- ftp2.de.debian.org::debian/ \
- ftp.uk.debian.org::debian/
-
-add_backend /non-US/ \
- $APT_PROXY_CACHE/non-US/ \
- ftp.de.debian.org::debian-non-US/ \
- ftp2.de.debian.org::debian-non-US/ \
- ftp.uk.debian.org::debian/non-US/
-
-add_backend /security/ \
- $APT_PROXY_CACHE/security/ \
- security.debian.org::debian-security/ \
- non-us.debian.org::debian-security/
+#add_backend /main/ \
+# $APT_PROXY_CACHE/debian/ \
+# ftp.us.debian.org::debian/ \
+# ftp.de.debian.org::debian/ \
+# ftp2.de.debian.org::debian/ \
+# ftp.uk.debian.org::debian/
+
+#add_backend /non-US/ \
+# $APT_PROXY_CACHE/non-US/ \
+# ftp.de.debian.org::debian-non-US/ \
+# ftp2.de.debian.org::debian-non-US/ \
+# ftp.uk.debian.org::debian/non-US/
+
+#add_backend /security/ \
+# $APT_PROXY_CACHE/security/ \
+# security.debian.org::debian-security/ \
+# non-us.debian.org::debian-security/
# Here are some more examples:
#
Only in apt-proxy-1.3.0-pluto-3: apt-proxy-import-simple
Only in apt-proxy-1.3.0-pluto-3: build-stamp
Only in apt-proxy-1.3.0-pluto-3/debian: apt-proxy
diff -ur apt-proxy-1.3.0/debian/changelog
apt-proxy-1.3.0-pluto-3/debian/changelog
--- apt-proxy-1.3.0/debian/changelog 2002-04-04 15:30:19.000000000 +0300
+++ apt-proxy-1.3.0-pluto-3/debian/changelog 2005-02-09 11:41:24.000000000
+0200
@@ -1,3 +1,22 @@
+apt-proxy (1.3.0-pluto-3) unstable; urgency=low
+
+ * Added apt-proxy-import-simple which assumes files are named correctly
+ - removes need for dpkg-name from dpkg-dev in this special case
+
+ -- Radu Cristescu <[EMAIL PROTECTED]> Wed, 19 Jan 2005 01:28:00 +0200
+
+apt-proxy (1.3.0-pluto-2) unstable; urgency=low
+
+ * Was stripping too many slashes :)
+
+ -- Radu Cristescu <[EMAIL PROTECTED]> Tue, 18 Jan 2005 19:38:00 +0200
+
+apt-proxy (1.3.0-pluto-1) unstable; urgency=low
+
+ * Stripping multiple slashes from URLs (this is a real menace)
+
+ -- Radu Cristescu <[EMAIL PROTECTED]> Tue, 18 Jan 2005 19:14:00 +0200
+
apt-proxy (1.3.0) unstable; urgency=low
* Release new version into Debian archive.
Only in apt-proxy-1.3.0-pluto-3/debian: files
diff -ur apt-proxy-1.3.0/debian/rules apt-proxy-1.3.0-pluto-3/debian/rules
--- apt-proxy-1.3.0/debian/rules 2002-04-04 15:30:19.000000000 +0300
+++ apt-proxy-1.3.0-pluto-3/debian/rules 2005-01-19 02:10:23.000000000
+0200
@@ -33,6 +33,8 @@
apt-proxy debian/apt-proxy/usr/sbin/apt-proxy
install -g root -o root -m 755 \
apt-proxy-import debian/apt-proxy/usr/sbin/apt-proxy-import
+ install -g root -o root -m 755 \
+ apt-proxy-import-simple
debian/apt-proxy/usr/sbin/apt-proxy-import-simple
install -g root -o root -m 644 \
apt-proxy.conf debian/apt-proxy/etc/apt-proxy/apt-proxy.conf
--- End Message ---
--- Begin Message ---
Package: apt-proxy
Version: 1.9.36.3+nmu1
Hi,
This bug is closed for a long time ago, but the BTS does not understand
it as the version 1.3.7 used in the previous [EMAIL PROTECTED] email is not
listed in the changelog.
Xavier
--- End Message ---