vzpkgcache behind proxy [message #7001] |
Fri, 29 September 2006 14:08 |
goeldi
Messages: 92 Registered: June 2006
|
Member |
|
|
I am sitting behind a proxy with authentication. Using yum (not vzyum) works, when I change from bash to sh and enter:
export http_proxy=http://proxy.customer.ch:3128/
export ftp_proxy=http://proxy.customer.ch:3128/
export proxy_username=some.name
export proxy_password=******
additionally I had to change the standard /etc/nsswitch.conf of CentOS from old:
passwd: files
shadow: files
group: files
etc....
to new:
passwd: compat
shadow: files
group: compat
THEN using yum works. But vzpkgcache fails with this error message:
# vzpkgcache centos-4
Creating cache for centos-4-i386-default OS template
Setting up Install Process
Setting up repositories
centos4-vz-addons 100% |=========================| 951 B 00:00
http://mirror.centos.org/centos/4/os/i386/repodata/repomd.xm l: [Errno 14] HTTP Error 407: Proxy Authentication Required
Trying other mirror.
Cannot open/read repomd.xml file for repository: centos4-base
failure: repodata/repomd.xml from centos4-base: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from centos4-base: [Errno 256] No more mirrors to try.
ERROR: yum failed with 1 exit code
WTF?
|
|
|
|
|
|