Package: approx
Version: 1.15
Severity: normal
My /var/cache/approx is on a FAT partition like this:
jaworz:~$ df -T | tail -n 3
/dev/sda1 vfat 163472 20 163452 1% /mnt/sda1
/mnt/sda1/approx none 163472 20 163452 1%
/var/cache/approx
jaworz:~$ cat /etc/fstab | grep sda
/dev/sda /media/usb0 auto rw,user,noauto
0 0
/dev/sda1 /mnt/sda1 vfat
defaults,dmask=0000,fmask=0111 0 0
/mnt/sda1/approx /var/cache/approx none bind
jaworz:~$ cat /proc/mounts | grep sda
/dev/sda1 /mnt/sda1 vfat
rw,nodiratime,fmask=0111,dmask=0000,codepage=cp437,iocharset=iso8859-1 0 0
/dev/sda1 /var/cache/approx vfat
rw,nodiratime,fmask=0111,dmask=0000,codepage=cp437,iocharset=iso8859-1 0 0
jaworz:~$
Besides that the partition is on an SD card inserted in an USB flash
card reader, but if it is on an ext3 partition in the same reader it
works correctly. Using mount --bind is also not the problem - testing
with ext3 in the same configuration worked correctly.
Here is what happens:
jaworz:~$ sudo aptitude update
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Get:1 http://192.168.1.14 sid Release.gpg [189B]
Get:2 http://192.168.1.14 sid Release [34.1kB]
Ign http://192.168.1.14 sid Release
Get:3 http://192.168.1.14 sid/main Packages [2857kB]
99% [3 Packages bzip2 0]
bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Inappropriate ioctl for device
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Err http://192.168.1.14 sid/main Packages
Sub-process bzip2 returned an error code (2)
Fetched 2891kB in 3s (787kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Deleting obsolete downloaded files
jaworz:~$
My approx config:
jaworz:~$ cat /etc/approx/approx.conf | grep -v '#' | uniq
interval 120
debug true
debian http://ftp.cz.debian.org/debian
jaworz:~$ cat /etc/apt/sources.list | grep -v '#'
deb http://192.168.1.14:9999/debian sid main
jaworz:~$
Both aptitude and approx is run on the same machine.
Here is daemon.log output:
Aug 13 03:33:44 localhost approx: Config file: /etc/approx/approx.conf
Aug 13 03:33:44 localhost approx: Port: 9999
Aug 13 03:33:44 localhost approx: Cache: /var/cache/approx
Aug 13 03:33:44 localhost approx: Interval: 2 hours
Aug 13 03:33:44 localhost approx: Debug: true
Aug 13 03:33:56 localhost approx: Connection from 192.168.1.14
Aug 13 03:33:56 localhost approx: Request /debian/dists/sid/Release.gpg
Aug 13 03:33:56 localhost approx: connection: keep-alive
Aug 13 03:33:56 localhost approx: host: 192.168.1.14:9999
Aug 13 03:33:56 localhost approx: user-agent: Debian APT-HTTP/1.3
Aug 13 03:33:56 localhost approx:
http://ftp.cz.debian.org/debian/dists/sid/Release.gpg
Aug 13 03:33:57 localhost approx: HTTP/1.1 200 OK
Aug 13 03:33:57 localhost approx: Date: Sat, 13 Aug 2005 01:33:56 GMT
Aug 13 03:33:57 localhost approx: Server: Apache/2.0.54 (Debian GNU/Linux)
mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-15 mod_ssl/2.0.54 OpenSSL/0.9.7e
mod_perl/1.999.21 Perl/v5.8.4
Aug 13 03:33:57 localhost approx: Last-Modified: Fri, 12 Aug 2005 19:44:55 GMT
Aug 13 03:33:57 localhost approx: ETag: "90001115-bd-bf7e3bc0"
Aug 13 03:33:57 localhost approx: Accept-Ranges: bytes
Aug 13 03:33:57 localhost approx: Content-Length: 189
Aug 13 03:33:57 localhost approx: Content-Type: text/plain; charset=ISO-8859-2
Aug 13 03:33:57 localhost approx: HTTP proxy response: 200
Aug 13 03:33:57 localhost approx: Date: Sat, 13 Aug 2005 01:33:56 GMT
Aug 13 03:33:57 localhost approx: Server: Apache/2.0.54 (Debian GNU/Linux)
mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-15 mod_ssl/2.0.54 OpenSSL/0.9.7e
mod_perl/1.999.21 Perl/v5.8.4
Aug 13 03:33:57 localhost approx: Last-Modified: Fri, 12 Aug 2005 19:44:55 GMT
Aug 13 03:33:57 localhost approx: Content-Length: 189
Aug 13 03:33:57 localhost approx: Content-Type: text/plain; charset=ISO-8859-2
Aug 13 03:33:57 localhost approx: open cache debian/dists/sid/Release.gpg
Aug 13 03:33:57 localhost approx: close cache debian/dists/sid/Release.gpg
Aug 13 03:33:57 localhost approx: setting mtime to Fri, 12 Aug 2005 19:44:55
GMT
Aug 13 03:33:57 localhost approx: close cache debian/dists/sid/Release.gpg
Aug 13 03:33:57 localhost approx: Connection from 192.168.1.14
Aug 13 03:33:57 localhost approx: Request /debian/dists/sid/Release
Aug 13 03:33:57 localhost approx: connection: keep-alive
Aug 13 03:33:57 localhost approx: host: 192.168.1.14:9999
Aug 13 03:33:57 localhost approx: user-agent: Debian APT-HTTP/1.3
Aug 13 03:33:57 localhost approx:
http://ftp.cz.debian.org/debian/dists/sid/Release
Aug 13 03:33:57 localhost approx: HTTP/1.1 200 OK
Aug 13 03:33:57 localhost approx: Date: Sat, 13 Aug 2005 01:33:57 GMT
Aug 13 03:33:57 localhost approx: Server: Apache/2.0.54 (Debian GNU/Linux)
mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-15 mod_ssl/2.0.54 OpenSSL/0.9.7e
mod_perl/1.999.21 Perl/v5.8.4
Aug 13 03:33:57 localhost approx: Last-Modified: Fri, 12 Aug 2005 19:44:55 GMT
Aug 13 03:33:57 localhost approx: ETag: "90013561-8514-bf7e3bc0"
Aug 13 03:33:57 localhost approx: Accept-Ranges: bytes
Aug 13 03:33:57 localhost approx: Content-Length: 34068
Aug 13 03:33:57 localhost approx: Content-Type: text/plain; charset=ISO-8859-2
Aug 13 03:33:57 localhost approx: HTTP proxy response: 200
Aug 13 03:33:57 localhost approx: Date: Sat, 13 Aug 2005 01:33:57 GMT
Aug 13 03:33:57 localhost approx: Server: Apache/2.0.54 (Debian GNU/Linux)
mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-15 mod_ssl/2.0.54 OpenSSL/0.9.7e
mod_perl/1.999.21 Perl/v5.8.4
Aug 13 03:33:57 localhost approx: Last-Modified: Fri, 12 Aug 2005 19:44:55 GMT
Aug 13 03:33:57 localhost approx: Content-Length: 34068
Aug 13 03:33:57 localhost approx: Content-Type: text/plain; charset=ISO-8859-2
Aug 13 03:33:57 localhost approx: close cache debian/dists/sid/Release.gpg
Aug 13 03:33:57 localhost approx: Connection from 192.168.1.14
Aug 13 03:33:57 localhost approx: Request
/debian/dists/sid/main/binary-i386/Packages.bz2
Aug 13 03:33:57 localhost approx: connection: keep-alive
Aug 13 03:33:57 localhost approx: host: 192.168.1.14:9999
Aug 13 03:33:57 localhost approx: user-agent: Debian APT-HTTP/1.3
Aug 13 03:33:57 localhost approx:
http://ftp.cz.debian.org/debian/dists/sid/main/binary-i386/Packages.bz2
Aug 13 03:33:58 localhost approx: HTTP/1.1 200 OK
Aug 13 03:33:58 localhost approx: Date: Sat, 13 Aug 2005 01:33:58 GMT
Aug 13 03:33:58 localhost approx: Server: Apache/2.0.54 (Debian GNU/Linux)
mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-15 mod_ssl/2.0.54 OpenSSL/0.9.7e
mod_perl/1.999.21 Perl/v5.8.4
Aug 13 03:33:58 localhost approx: Last-Modified: Fri, 12 Aug 2005 19:14:23 GMT
Aug 13 03:33:58 localhost approx: ETag: "382b8e36-2b97be-524c21c0"
Aug 13 03:33:58 localhost approx: Accept-Ranges: bytes
Aug 13 03:33:58 localhost approx: Content-Length: 2856894
Aug 13 03:33:58 localhost approx: Content-Type: text/plain; charset=ISO-8859-2
Aug 13 03:33:58 localhost approx: HTTP proxy response: 200
Aug 13 03:33:58 localhost approx: Date: Sat, 13 Aug 2005 01:33:58 GMT
Aug 13 03:33:58 localhost approx: Server: Apache/2.0.54 (Debian GNU/Linux)
mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-15 mod_ssl/2.0.54 OpenSSL/0.9.7e
mod_perl/1.999.21 Perl/v5.8.4
Aug 13 03:33:58 localhost approx: Last-Modified: Fri, 12 Aug 2005 19:14:23 GMT
Aug 13 03:33:58 localhost approx: Content-Length: 2856894
Aug 13 03:33:58 localhost approx: Content-Type: text/plain; charset=ISO-8859-2
Aug 13 03:33:58 localhost approx: close cache debian/dists/sid/Release.gpg
When aptitude fails quickly and quits, approx continues downloading the
file at least for some time after, because I see it in tcpdump.
Permissions are OK, because I mounted the FAT partition so it is
world-writable.
-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i586)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-386
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages approx depends on:
ii libc6 2.3.5-3 GNU C Library: Shared libraries an
ii libcurl3 7.14.0-4 Multi-protocol file transfer libra
ii libidn11 0.5.18-1 GNU libidn library, implementation
ii libpcre3 5.0-1.1 Perl 5 Compatible Regular Expressi
ii libssl0.9.7 0.9.7g-1 SSL shared libraries
ii wget 1.10-3+1.10.1beta1 retrieves files from the web
ii zlib1g 1:1.2.3-3 compression library - runtime
approx recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]