LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 05-20-2009, 04:08 AM   #1
reyhaneh.emi
LQ Newbie
 
Registered: May 2009
Location: Iran,Tehran
Posts: 24

Rep: Reputation: 15
Unhappy problem with Yum update-install-list on CentOS 5.2


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.I configured /etc/repos.d/CentOs-Base.repo es and /etc/yum.conf once and /etc/repos.d/CentOs-Base.repo es and /etc/profile.conf the other time but I got the same error:

Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
http://repo.elastix.org/centos/5/upd...ta/repomd.xml: [Errno 4
]IOError:<urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Error: Cannot open/read repomd.xml filr or repository: elastix-beta

here is my /etc/yum.repos.d/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=5&arch=i386&repo=os
baseurl=http://mirror.centos.org/centos/5/os/i386/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel*

#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
baseurl=http://mirror.centos.org/centos/5/os/i386/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel*

#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/5/addons/i386/

gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel*

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
baseurl=http://mirror.centos.org/centos/5/os/i386/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel*

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
baseurl=http://mirror.centos.org/centos/5/os/i386/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

and here my /etc/yum.conf:

[main]
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
proxy=http://user-proxyassword@myproxy.domain.com:3128/
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

but I got the above error so thia time I changed /etc/profile.conf and undo the changes in yum.conf but I got the same error.Here is my /etc/profile.conf:

# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|$1($|" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}

# ksh workaround
if [ -z "$EUID" -a -x /usr/bin/id ]; then
EUID=`id -u`
UID=`id -ru`
fi

# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi

# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

if [ -x /usr/bin/id ]; then
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
fi

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done

unset i
unset pathmunge
# The Web proxy server, with the username and password for this account
http_proxy="http://proxy-userassword@myproxy.domain.com:3128"
export http_proxy

and i got the same error:

Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
http://repo.elastix.org/centos/5/upd...ta/repomd.xml: [Errno 4
]IOError:<urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Error: Cannot open/read repomd.xml filr or repository: elastix-beta

I don't know what to do,help me please in configuring yum.
thanks in advance.
 
Old 05-20-2009, 02:25 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here:
http://www.linuxquestions.org/questi...d.php?t=727233
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem with Yum update-install-list on CentOS 5.2 reyhaneh.emi Linux - Newbie 4 05-23-2009 03:56 AM
RHEL 5.2 yum update with CentOS 5.2 repositories- possible? damunzy Linux - Enterprise 4 08-12-2008 02:30 AM
Clearing the yum update list philwynk Linux - Newbie 1 07-06-2008 03:08 PM
yum update problem, centos 4.92 repo no longer available parv Linux - Distributions 3 04-15-2007 07:10 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:08 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