LinuxQuestions.org
Visit Jeremy's Blog.
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 10-12-2011, 05:50 AM   #16
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976

Quote:
Originally Posted by shanky View Post
i changed the code as told..and when i type on the console as yum update
it shows the repo file ..but the first line tells me that the file contains parsing errors..
??
Please, show us the current content of fedora.repo.
 
Old 10-12-2011, 06:56 AM   #17
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
this is the current content of the repo file

1 [fedora]
2 name=Fedora $releasever - $basearch
3 failovermethod=priority
4 baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/os/
5 #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
6 enabled=1
7 metadata_expire=7d
8 gpgcheck=1
9 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
10
11 [fedora-debuginfo]
12 name=Fedora $releasever - $basearch - Debug
13 failovermethod=priority
14 #baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
15 mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
16 enabled=0
17 metadata_expire=7d
18 gpgcheck=1
19 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
20
21 [fedora-source]
22 name=Fedora $releasever - Source
23 failovermethod=priority
24 #baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
25 mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
26 enabled=0
27 metadata_expire=7d
28 gpgcheck=1
29 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

i did ":w" so as to write the file..and then should i also be giving the command "~/.bashrc /etc/yum.repos.d/fedora.repo"
nevertheless i did try yum before and after giving the bash command

before i give this is what i get when i use yum :
"Loaded plugins: refresh-packagekit
http://archives.fedoraproject.org/pu...ta/repomd.xml: [Errno 4] IOError: <urlopen error [Errno -3] Temporary failure in name resolution>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again"

after i give the bash command:
bash: /root/.bashrc: Permission denied

not really sure whether i should be giving the bashrc command ..but i remember doing it long time back for another file,but yum doesnt work in either cases..i am considering shifting to fc15 but only when i am sure this is not possible on fc11 will i do so..

thanks
 
Old 10-12-2011, 07:38 AM   #18
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
The .bashrc file is not necessary here. Usually when you modify the $HOME/.bashrc file, you source (not execute) it using
Code:
. .bashrc
to immediately apply changes to the current shell. In this case you modify a yum repo configuration file that will be used as is by the next yum session.

I cannot see any problem in the file you posted above. What is the exact error message about the "parsing errors"? Can you reproduce it?

Regarding the IOError: <urlopen error [Errno -3] Temporary failure in name resolution> it is a DNS problem, that is the URL address cannot be translate to a real IP address, since your system is not connected to a DNS server. Check the content of /etc/resolv.conf and try to ping the IP addresses inside it to see if they are reachable. Maybe are you behind a proxy?
 
1 members found this post helpful.
Old 10-13-2011, 12:53 AM   #19
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
hiiii coculix..
yeah i was using proxy..just been told that yum will not work in case we are using proxy!!!
so i will try once again disabling the proxy..and in case it still doesnt work then i would consider shifting to fc15..
will update the thread soon..
thanks a lot !!
 
Old 10-13-2011, 01:20 AM   #20
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Actually yum can work through proxy! We need to edit the /etc/yum.conf file and add a proxy line into the [main] section like this:
Code:
proxy=http://username:password@proxy.server.name:8080/
 
1 members found this post helpful.
Old 10-13-2011, 03:13 AM   #21
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
oh..i shall definitely try it out and let you kno..thanks again!!
 
Old 10-13-2011, 03:21 AM   #22
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
i jus checked the file and this is what it shows..the last part of the file is what interests me..just check it out

1 [main]
2 cachedir=/var/cache/yum
3 keepcache=0
4 debuglevel=2
5 logfile=/var/log/yum.log
6 exactarch=1
7 obsoletes=1
8 gpgcheck=1
9 plugins=1
10 installonly_limit=3
11
12 # This is the default, if you make this bigger yum won't see if the metadata
13 # is newer on the remote and so you'll "gain" the bandwidth of not having to
14 # download the new metadata and "pay" for it by yum not having correct
15 # information.
16 # It is esp. important, to have correct metadata, for distributions like
17 # Fedora which don't keep old packages around. If you don't like this checking
18 # interupting your command line usage, it's much better to have something
19 # manually check the metadata once an hour (yum-updatesd will do this).
20 # metadata_expire=90m
21
22 # PUT YOUR REPOS HERE OR IN separate files named file.repo
23 # in /etc/yum.repos.d


so does he mean i have to keep updating the yum if i make any changes and where should i be adding the code u have told..??
 
Old 10-13-2011, 03:25 AM   #23
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Nope, you can just edit the file and try to use yum again. You can add the line anywhere under [main], e.g immediately below installonly_limit=3.
 
Old 10-13-2011, 03:27 AM   #24
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
great..will try out and let you know in a while..
 
Old 10-13-2011, 05:25 AM   #25
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
no coculix..it doesnt seem to be working !!
what i should i write for server.name in the code that you have told me
when i try the line /etc/resolve.conf to show the servers it doesnt show me any servers nor the names
DNS1=xxx.xxx.xxx.xxx
DNS2=xxx.xxx.xxx.xxx
 
Old 10-13-2011, 07:11 AM   #26
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by shanky View Post
what i should i write for server.name in the code that you have told me
when i try the line /etc/resolve.conf to show the servers
Forget about the DNS servers in /etc/resolv.conf, we have established you are behind a proxy, hence you need the host name of the PROXY server and your credentials to access the PROXY server itself. You need to know even the port number if different from the default one (8080).
 
Old 10-14-2011, 01:02 AM   #27
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
hiii
i have directly connected to the internet and installed all the packages..thanks a lot for your help and guidance !!
 
  


Reply


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
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
problem when run yum (No module named yum) ezak Linux - Distributions 4 10-16-2009 05:04 AM
yum header/pidof yum problem yohmie Fedora 3 03-24-2009 08:54 AM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 03:34 AM
Yum Problem - /var/cache/yum/base/primary.xml.gz:1 ice99 Linux - Software 0 12-15-2005 02:08 PM


All times are GMT -5. The time now is 03:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration