LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-16-2009, 08:49 AM   #1
crazysexycool
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Rep: Reputation: 0
Yum in Centos 5.2 driving me insane


I get the following error when i try to update typing in yum update i am using centos 5.2 in a VM on IBM thinkpad T61P

I can use the internet and i am behind a proxy hope somone can help here is my CentOS-Base file.

[root@jf3252485-2066 yum.repos.d]# ls
CentOS-Base.repo CentOS-Base.repo.save CentOS-Media.repo
[root@jf3252485-2066 yum.repos.d]# cat 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
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
priority=1
protect=1
enabled=1

#released updates
[update]
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
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
priority=1
protect=1

#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
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
priority=1
protect=1

#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
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
priority=1
protect=1

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

#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=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
priority=2
protect=1


[root@jf3252485-2066 yum.repos.d]#
 
Old 02-16-2009, 11:38 AM   #2
azc
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Rep: Reputation: 3
Have you seen this page?

http://wiki.centos.org/TipsAndTricks/YumAndRPM
 
Old 02-17-2009, 12:19 AM   #3
crazysexycool
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hi thanks for the link but that link doesnt help much with the problem i have i have already configured the yum.conf file

as i said all my proxy details are correct as i am a ble to connect to the internet.

but still cannot update.
 
Old 02-17-2009, 12:22 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Are you connecting to internet via transparent proxy or do you set your web browser to connect it via proxy?
 
Old 02-17-2009, 12:35 AM   #5
Isix
Member
 
Registered: Mar 2007
Location: Windhoek, Namibia
Distribution: Slackware, Kubuntu, Mandriva & PCLinuxOS
Posts: 80

Rep: Reputation: 18
You can browse internet, but does yum seem to go the websites? If yum does not go on the web, then your proxy details may not be known by yum. If it is the case then try in the terminal:

Code:
export http_proxy:"http://myproxyname.domain:port"
export ftp_proxy:"http://myproxyname.domain:port"
where myproxyname.domain and port are your proxy values.
 
Old 02-17-2009, 02:28 AM   #6
crazysexycool
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Are you connecting to internet via transparent proxy or do you set your web browser to connect it via proxy?

Yes i do connect via a proxy and i have edited my web browser to use the proxy settings.

_________
export http_proxy:"http://myproxyname.domainort"
export ftp_proxy:"http://myproxyname.domainort"

I have tried these and i get the error not a valid identifier

for the both of them.
thank you for everyones help
 
Old 02-17-2009, 02:38 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Ok you will need to set the environment variable http_proxy. It has already been answered in the post #5. Do that. Or else you can do it other way as well.

Code:
 http_proxy=proxy_ip:proxy_port
export http_proxy
Does the same thing just different way.
 
Old 02-23-2009, 01:12 AM   #8
crazysexycool
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Good Day.

I have tried and tried still no luck
 
Old 02-23-2009, 04:22 AM   #9
crazysexycool
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hi can somone tell me what my CentOS-Base repo file should look like.

Thanks.
 
  


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
snd_hda_intel driving me insane TrevorBradley Linux - Hardware 1 02-11-2007 08:18 PM
Xine Driving me Insane BlackSheep024 Linux - Software 3 06-29-2006 10:55 AM
RPMs are driving me insane gauge73 Linux - Newbie 11 05-05-2005 01:02 PM
Mplayer Driving Me Insane!!!!! njschroe Linux - Software 7 01-24-2005 05:31 PM
cvswinex driving me insane araldit Linux - Newbie 0 07-02-2004 05:05 PM

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

All times are GMT -5. The time now is 08:54 PM.

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