LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2009, 03:18 AM   #1
reyhaneh.emi
LQ Newbie
 
Registered: May 2009
Location: Iran,Tehran
Posts: 24

Rep: Reputation: 15
Question yum update error


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
 
Old 05-30-2009, 03:46 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you sure your proxy is working ? Try connecting a web browser (you can use elinks if you don't have the gui installed)
 
Old 05-30-2009, 04:52 AM   #3
reyhaneh.emi
LQ Newbie
 
Registered: May 2009
Location: Iran,Tehran
Posts: 24

Original Poster
Rep: Reputation: 15
I installed elinks and tried to connect google but it says unable to retrieve http://google.com
Does it mean that my proxy don't work?
 
Old 05-30-2009, 04:56 AM   #4
reyhaneh.emi
LQ Newbie
 
Registered: May 2009
Location: Iran,Tehran
Posts: 24

Original Poster
Rep: Reputation: 15
I installed elinks and tried to connect google and yahoo but it says unable to retrieve http://google.com
Does it mean that my proxy don't work?
 
Old 05-31-2009, 03:31 AM   #5
reyhaneh.emi
LQ Newbie
 
Registered: May 2009
Location: Iran,Tehran
Posts: 24

Original Poster
Rep: Reputation: 15
What I can do now to fix this error? any suggestion?
 
Old 05-31-2009, 05:11 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It could be anything from your proxy server not working to firewall issues.

What do you mean you suspend your proxy and run it in the background?
 
Old 06-01-2009, 01:12 AM   #7
reyhaneh.emi
LQ Newbie
 
Registered: May 2009
Location: Iran,Tehran
Posts: 24

Original Poster
Rep: Reputation: 15
I mean I used:
bg python
 
Old 06-01-2009, 01:12 AM   #8
reyhaneh.emi
LQ Newbie
 
Registered: May 2009
Location: Iran,Tehran
Posts: 24

Original Poster
Rep: Reputation: 15
I mean I used:
bg python
 
Old 06-01-2009, 01:19 AM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What is "main.py"?
 
Old 06-01-2009, 02:26 AM   #10
reyhaneh.emi
LQ Newbie
 
Registered: May 2009
Location: Iran,Tehran
Posts: 24

Original Poster
Rep: Reputation: 15
I don't know exactly.Here is the code :

#! /usr/bin/python

# This file is part of 'NTLM Authorization Proxy Server'
# Copyright 2001 Dmitry A. Rozmanov <dima@xenon.spb.ru>
#
# NTLM APS is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# NTLM APS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the sofware; see the file COPYING. If not, write to the
# Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#
import __init__

import sys

import server, config, config_affairs


#--------------------------------------------------------------
# config affairs
# look for default config name in lib/config.py
conf = config.read_config(config.findConfigFileNameInArgv(sys.argv, __init__.ntlmaps_dir+'/'))

conf['GENERAL']['VERSION'] = '0.9.9.0.1'

#--------------------------------------------------------------
print 'NTLM authorization Proxy Server v%s' % conf['GENERAL']['VERSION']
print 'Copyright (C) 2001-2004 by Dmitry Rozmanov and others.'

config = config_affairs.arrange(conf)


#--------------------------------------------------------------
# let's run it
serv = server.AuthProxyServer(config)
serv.run()
 
Old 06-01-2009, 04:10 AM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So you don't really know if you are running a proxy?

Why don't you try yum without any proxy settings?
 
Old 06-01-2009, 04:17 AM   #12
reyhaneh.emi
LQ Newbie
 
Registered: May 2009
Location: Iran,Tehran
Posts: 24

Original Poster
Rep: Reputation: 15
Because I'm behind a proxy and I should use yum with proxy settings.But I don't know why it didn't work although I carefully set every thing
 
Old 06-01-2009, 04:27 AM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What do you get with
Code:
telnet myproxy.domain 3128
 
Old 06-01-2009, 04:59 AM   #14
reyhaneh.emi
LQ Newbie
 
Registered: May 2009
Location: Iran,Tehran
Posts: 24

Original Poster
Rep: Reputation: 15
It says:
proxy.company/3128:Temporary failure in name resolution.
 
Old 06-01-2009, 05:26 AM   #15
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So you have a DNS problem

What does
Code:
dig proxy.company
give you?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum Update error mzizana Linux - Software 2 02-13-2008 06:08 AM
Yum Update error rsreekumar Linux - Software 1 06-18-2007 07:10 PM
Yum on FC6. 'yum update' error. mufy Fedora 8 06-14-2007 02:03 AM
Why this error when trying to do a yum update? oldjoe Fedora 33 11-19-2006 11:22 PM
Yum Update error fcoutel Red Hat 1 12-30-2004 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration