*SOLVED* apt-proxy/approx does not work under VE [message #16131] |
Thu, 23 August 2007 19:08  |
ggonzalez
Messages: 18 Registered: July 2007
|
Junior Member |
|
|
I have created a VE, and configured it with a veth interface (eth0).
with /etc/apt/sources.list:
deb http://ftp.debian.org/debian etch main
I can do 'aptitude update' on this VE. Everything works fine here. No problem to go thru out to the net.
With this configuration, I do:
aptitude install approx
Then, I configure 'approx' appropriately. I have 'approx' working on another 'real' machine.
I changed my /etc/apt/sources.list to us approx:
deb http://ftp.debian.org/debian etch main
deb http://debianmirror:8888/debian etch main
and try:
aptitude update
and now I get:
infravs05:~# aptitude update
Ign http://debianmirror etch Release.gpg
Ign http://debianmirror etch Release
Ign http://debianmirror etch/main Packages
Err http://debianmirror etch/main Packages
404 Not Found
Des:1 http://ftp.debian.org etch Release.gpg [378B]
Obj http://ftp.debian.org etch Release
Ign http://ftp.debian.org etch/main Packages/DiffIndex
Obj http://ftp.debian.org etch/main Packages
Descargados 1B en 1s (1B/s).
Leyendo lista de paquetes... Hecho
W: No se puede leer la lista de paquetes fuente http://debianmirror etch/main Packages (/var/lib/apt/lists/debianmirror:8888_debian_dists_etch_main _binary-i386_Packages) - stat (2 file or directory does not exist)
W: Maybe you want to execute 'apt-get update' to fix these problems
-----------------------------
debianmirror is an alias to infravs05. I have even tried changing this entry to infravs05. Same error.
infravs05:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:DF:D9:82
inet addr:10.0.0.245 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:868 errors:0 dropped:0 overruns:0 frame:0
TX packets:603 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:67184 (65.6 KiB) TX bytes:84375 (82.3 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
infravs05:~# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0
infravs05:~# netstat -na
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::ffff:10.0.0.245:22 ::ffff:10.0.0.231:47407 ESTABLISHED
udp 0 0 10.0.0.245:123 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp6 0 0 ::1:123 :::*
udp6 0 0 :::123 :::*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 5 [ ] DGRAM 434116 /dev/log
unix 2 [ ] DGRAM 434213
unix 2 [ ] DGRAM 434142
unix 2 [ ] DGRAM 434130
/var/log/daemon.log shows:
Aug 23 14:31:56 infravs05 approx: Connection from 10.0.0.245:42322
Aug 23 14:31:56 infravs05 approx: Request /debian/dists/etch/Release.gpg
Aug 23 14:31:56 infravs05 approx: Host: debianmirror:8888
Aug 23 14:31:56 infravs05 approx: Connection: keep-alive
Aug 23 14:31:56 infravs05 approx: User-Agent: Debian APT-HTTP/1.3
Aug 23 14:31:56 infravs05 approx: http://ftp.debian.org/debian/dists/etch/Release.gpg
Aug 23 14:31:56 infravs05 approx: Command: /usr/bin/curl --fail --silent --location --include "http://ftp.debian.org/debian/dists/etch/Release.gpg"
Aug 23 14:31:56 infravs05 approx: Download failed
Aug 23 14:31:56 infravs05 approx: Connection from 10.0.0.245:42322
Aug 23 14:31:56 infravs05 approx: Request /debian/dists/etch/Release
Aug 23 14:31:56 infravs05 approx: Host: debianmirror:8888
Aug 23 14:31:56 infravs05 approx: Connection: keep-alive
Aug 23 14:31:56 infravs05 approx: User-Agent: Debian APT-HTTP/1.3
Aug 23 14:31:56 infravs05 approx: Command: /usr/bin/curl --fail --silent --location --remote-time --output debian/dists/etch/Release.gpg.tmp "http://ftp.debian.org/debian/dists/etch/Release.gpg"
Aug 23 14:31:56 infravs05 approx: Cannot download http://ftp.debian.org/debian/dists/etch/Release.gpg
Aug 23 14:31:56 infravs05 approx: http://ftp.debian.org/debian/dists/etch/Release
Aug 23 14:31:56 infravs05 approx: Command: /usr/bin/curl --fail --silent --location --include "http://ftp.debian.org/debian/dists/etch/Release"
Aug 23 14:31:56 infravs05 approx: Download failed
---------------------------------------------
Given that 'aptitude' works fine when told to go directly to the internet mirrors, but does not work when told to go thru the 'approx' proxy, I tend to believe that this is a problem that is somehow related to the way I have my VE configured with regards to the veth, or an incompatibility of approx with VZ.
I also tried this same scenario with apt-proxy, instead of approx. Same results.
Thanks for any help.
Gustavo.
[Updated on: Fri, 07 September 2007 13:26] Report message to a moderator
|
|
|
|
|
|
|