Bug#386344: apt-proxy: APT-Proxy has Problems with ~ in package-names: detailed output

2006-09-16 Thread Russell Steicke
I'm also seeing this problem.  Here's my apt-proxy-v2.conf and some detailed
output.  I hope this helps.


$ cat /etc/apt-proxy/apt-proxy-v2.conf
[DEFAULT]
;; All times are in seconds, but you can add a suffix
;; for minutes(m), hours(h) or days(d)

;; Server IP to listen on
;address = 192.168.0.254

;; Server port to listen on
port = 

;; Control files (Packages/Sources/Contents) refresh rate
;;
;; Minimum time between attempts to refresh a file
min_refresh_delay = 1h

;; Minimum age of a file before attempting an update (NOT YET IMPLEMENTED)
;min_age = 23h

;; Uncomment to make apt-proxy continue downloading even if all
;; clients disconnect.  This is probably not a good idea on a
;; dial up line.
;; complete_clientless_downloads = 1

;; Debugging settings.
;; for all debug information use this:
;; debug = all:9
;debug = all:4 db:0
debug = all:9 db:7

;; Debugging remote python console
;; Do not enable in an untrusted environment
;telnet_port = 9998
;telnet_user = apt-proxy
;telnet_password = secret

;; Network timeout when retrieving from backend servers
timeout = 15

;; Cache directory for apt-proxy
cache_dir = /var/cache/apt-proxy

;; Use passive FTP? (default=on)
;passive_ftp = on

;; Use HTTP proxy?
;http_proxy = host:port

;; Enable HTTP pipelining within apt-proxy (for test purposes)
;disable_pipelining=0

;;--
;; Cache housekeeping

;; Time to perform periodic housekeeping:
;;  - delete files that have not been accessed in max_age
;;  - scan cache directories and update internal tables
cleanup_freq = 1d

;; Maximum age of files before deletion from the cache (seconds)
max_age = 120d

;; Maximum number of versions of a .deb to keep per distribution
max_versions = 4

;; Add HTTP backends dynamicaly if not already defined? (default=on)
;dynamic_backends = on

;;---
;;---
;; Backend servers
;;
;; Place each server in its own [section]

;[main]
;backends =
;   ftp://ftp.wa.au.debian.org/debian

[debian]
backends =
ftp://ftp.au.debian.org/debian
ftp://ftp.wa.au.debian.org/debian
rsync://mirror.aarnet.edu.au/debian

[security]
backends =
http://security.debian.org

[non-US]
backends =
rsync://ftp.wa.au.debian.org/debian-non-US
ftp://ftp.au.debian.org/pub/debian-non-US


$ 


$ sudo apt-get install cdrecord
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  wodim
Suggested packages:
  xcdroast cdrtools-doc cdrkit-doc
The following NEW packages will be installed
  wodim
The following packages will be upgraded:
  cdrecord
1 upgraded, 1 newly installed, 0 to remove and 526 not upgraded.
Need to get 395kB of archives.
After unpacking 221kB disk space will be freed.
Do you want to continue [Y/n]? 
Errhttp://localhost sid/main cdrecord 5:1.0~pre4-1
  404 file not found on backend
Errhttp://localhost sid/main wodim 5:1.0~pre4-1
  404 file not found on backend
Failed to fetch 
http://localhost:/debian/pool/main/c/cdrkit/cdrecord_1.0~pre4-1_all.deb  
404 file not found on backend
Failed to fetch 
http://localhost:/debian/pool/main/c/cdrkit/wodim_1.0~pre4-1_powerpc.deb  
404 file not found on backend
E: Unable to fetch some archives, maybe run apt-get update or try with 
--fix-missing?
$ 


$ sudo tail -F /var/log/apt-proxy.log
[10 lines deleted...]
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [Request] New Request, queued=0
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [debug] Header: Host: localhost:
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [debug] Header: Connection: 
keep-alive
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [debug] Header: User-Agent: Debian 
APT-HTTP/1.3
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [debug] Headers: Host: 
localhost:, Connection: keep-alive, User-Agent: Debian APT-HTTP/1.3
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [Request] Request: GET 
/debian/pool/main/c/cdrkit/cdrecord_1.0%7epre4-1_all.deb backend=debian 
uri=/debian/pool/main/c/cdrkit/cdrecord_1.0%7epre4-1_all.deb
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [debug] backend: debian 
[, 
, 
]
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [debug] New Cache entry: 
pool/main/c/cdrkit/cdrecord_1.0%7epre4-1_all.deb
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [CacheEntry] start 
download:pool/main/c/cdrkit/cdrecord_1.0%7epre4-1_all.deb
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [DownloadQueuePerClient] Adding new 
queue for client id 7
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [DownloadQueue] start next download 
(debian/pool/main/c/cdrkit/cdrecord_1.0%7epre4-1_all.deb)
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [DownloadQueue] creating new fetcher
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [fetcher] fetcher 
start:cdrecord_1.0%7epre4-1_all.deb
2006/09/17 00:12 WST [Channel,1,127.0.0.1] [Fetcher] Downloading: 
/var/cache/apt-proxy/d

Bug#386344: apt-proxy: APT-Proxy has Problems with ~ in package-names

2006-09-07 Thread Chris Halls
package apt-proxy
tags 386344 + moreinfo
thanks

On Wednesday 06 September 2006 23:29, Daniel 'DaB.' Baur wrote:
> Package: apt-proxy
> Version: 1.9.35
> Severity: grave
> Tags: security
> Justification: renders package unusable
>
> Apt-Proxy can not handle Package, which have the new ~ in there names.
> A example is libkrb5-dev_1.4.4~beta1-1_i386.deb which gives a "404 file not
> found on backend" error. Please fix it, because it is unpossible to play in
> any packages or security-updates.

$ sudo apt-get install brazilian-conjugate
[...]
Get: 1 http://aptproxy testing/main brazilian-conjugate 3.0~beta4-1 [104kB]
Fetched 104kB in 0s (153kB/s)

It doesn't seem to be purely down to a '~' in the filename. It might be 
something in your configuration. For example, I am using an http backend but 
you could be using another type. The best thing is to turn on debug info in 
your apt-proxy-v2.conf:

debug = all:9 db:7

Then restart apt-proxy, and send a copy of /var/log/apt-proxy.log for the 
session where you try to get the file. When you do the test, can you also 
please check that the backend server you are using really has the file - 
sometimes mirrors can get out of sync.

Thanks
Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Processed: Re: Bug#386344: apt-proxy: APT-Proxy has Problems with ~ in package-names

2006-09-07 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> package apt-proxy
Ignoring bugs not assigned to: apt-proxy

> tags 386344 + moreinfo
Bug#386344: apt-proxy: APT-Proxy has Problems with ~ in package-names
Tags were: security
Tags added: moreinfo

> thanks
Stopping processing here.

Please contact me if you need assistance.

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#386344: apt-proxy: APT-Proxy has Problems with ~ in package-names

2006-09-06 Thread Daniel 'DaB.' Baur
Package: apt-proxy
Version: 1.9.35
Severity: grave
Tags: security
Justification: renders package unusable

Apt-Proxy can not handle Package, which have the new ~ in there names.
A example is libkrb5-dev_1.4.4~beta1-1_i386.deb which gives a "404 file not 
found on
backend" error. Please fix it, because it is unpossible to play in any
packages or security-updates.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.20
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages apt-proxy depends on:
ii  adduser   3.96   Add and remove users and groups
ii  bzip2 1.0.3-3high-quality block-sorting file co
ii  debconf [debconf-2.0] 1.5.3  Debian configuration management sy
ii  logrotate 3.7.1-3Log rotation utility
ii  python2.3.5-11   An interactive high-level object-o
ii  python-apt0.6.19 Python interface to libapt-pkg
ii  python-central0.5.5  register and build utility for Pyt
ii  python-twisted-web0.6.0-1An HTTP protocol implementation to

apt-proxy recommends no packages.

-- debconf information:
  apt-proxy/upgrading-v2:
  apt-proxy/upgrading-v2-result:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]