Hi every body.I already have installed centOs 5.2 on Vmware.It works on a PC and connect to internet via proxy.I want to make rpm packages but it's not possible because RPM-Build package is not installed. So I decided to use yum to download all necessary packages but I got errors.I installed python 2.5 msi on my windows and configured necessary files according to
http://richard.gluga.com/2008/10/ntlm-proxies.html
I get this message when i type python main.py:
NTLM authorization Proxy Server v0.9.9.0.1
Copyright (c) 2001-2004 by Dmitry Rozmandov and others.
Now listening at hostname on port 3128
I suspend it and run it in background and run yum update but although i've changed my /etc/yum.repos.d/CentOs-Base.repo I get this error:
Loading "installonlyn"plugin
Setting up repositories
http://repo.elastix.org/centos/5/upd...ta/repomd.xml: [Errno 4] IOError: <urlopen error nonumeric port: '3128?' >
Trying other mirror.
Error:Cannot open/read repomd.xml file for repository: elastix-beta
What is this error?here is my CentOs-Base.repo:
CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
and here is my yum.conf:
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
timeout=300
proxy=http://myproxy.domain:3128
proxy_username=username
proxy_password=password
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d