LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-15-2003, 01:46 PM   #1
mazzo
Member
 
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142

Rep: Reputation: 15
fedora and up2date


Hi

Is anyone else having a problem getting up2date to work ?

Can't register and it can't find the url to check what's available.

It was fine the other day (apart from the registration bit).

Thanks
 
Old 11-15-2003, 02:20 PM   #2
Stevn_S
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
I'm having the same problem. I assume its just the yum repository is down because you can still get to the ftp directories from Fedoras site. Weird, but I imagine it will be corrected soon.
 
Old 11-15-2003, 08:20 PM   #3
lhm0155
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
add the following lines into your /etc/sysconfig/rhn/sources file
yum fedora-core-1 http://download.fedora.redhat.com/pub/fedora/linux/core/1/i386/os/
yum updates-released http://download.fedora.redhat.com/pub/fedora/linux/core/updates/1/i386/
#yum updates-testing http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/1/i386/

leave the # in front of yum updates otherwise you'll get unstable (RAWHIDE) as well AND comment out up2date default in the sources file when it occurs otherwise it will still error out
hope this helps

Last edited by lhm0155; 11-15-2003 at 08:25 PM.
 
Old 11-16-2003, 09:08 AM   #4
jolavillette
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Rep: Reputation: 0
Thk Ihm0155, it worked for me !
 
Old 11-16-2003, 10:28 AM   #5
Silly Sam
LQ Newbie
 
Registered: Oct 2003
Location: Detroit
Posts: 14

Rep: Reputation: 0
Quote:
Originally posted by lhm0155
add the following lines into your /etc/sysconfig/rhn/sources file


I used the "iv" program inside the GUI to modify the source file. It is something similiar to notepad, but acts very strangely after pasting the below lines. I am not sure if I did this correctly? Could not figure out if it needed to be saved either? Can anyone please help...

I pasted the files exactly as stated above.

Quote:
leave the # in front of yum updates otherwise you'll get unstable (RAWHIDE) as well
AND comment out up2date default in the sources file when it occurs otherwise it will still error out hope this helps
Here is what my source file looks like:

### this describes the various package repos up2date will look into
### for packages. It currently supports apt-rpm repos, yum repos,
### and "dir" repos


### format is one repo entry per line, # starts comments, the
### first word on each line is the type of repo.

### the defalt rhn (using "default" as the url means
### use the one in the up2date config file
#up2date default


### When a channel-label is required for the non up2date repo's,
### the label is soley used as an internal identifier and is not
### based on the url or any other info from the repo.

### an apt style repo, this time arjanv's 2.6 kernel repo
### format is:
### type channel-label service:server path repo name

#apt arjan-2.6-kernel-i386 http://people.redhat.com ~arjanv/2.5/ kernel

### Note that for apt repos, there can be multiple repo names specificed
### space seperated.

### an yum style repo
### format:
### type channel-label url

yum fedora-core-1 http://fedora.redhat.com/releases/fedora-core-1
yum updates-released http://fedora.redhat.com/updates/released/fedora-core-1
#yum updates-testing http://fedora.redhat.com/updates/testing/fedora-core-1

### an local directory full of packages
### format
#dir my-favorite-rpms-i386-9 /var/spool/RPMS/


# multiple versions of all repos except "up2date" can be used. Depenencies
# can be resolved "cross-repo" if need be.

I am so lost.... Anyone see a Fedora for Dummies book yet?

Thanks in Advance...
Silly Sam
Newbie
 
Old 11-16-2003, 04:33 PM   #6
lhm0155
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
gotcha..ok then just replace the lines

replace the lines in your sources file that start with yum to the ones i specified and it should work just fine
 
Old 11-16-2003, 10:36 PM   #7
Silly Sam
LQ Newbie
 
Registered: Oct 2003
Location: Detroit
Posts: 14

Rep: Reputation: 0
I start off by placing my root password in first. I keep getting an error message dealing with the /var/temp/ folder when trying to modify the source file. I get a warning about duplicate files, but it is referencing the /var/temp/folder. I deleted all of the files inside of the /var/temp/folder, then altered the file according to the instructions. After I closed the file out, I tried to copy and paste the file to /etc/sysconfig/rhn/ and it turns out that I do not have permissions to the /etc/sysconfig/rhn/sources file, so the next question is how do I give myself permissions for this? I logged in under the root password and also tried to change permissions of the folder, but it mentions that I am not the owner of these files. Any help would greatly be appreciated.

Silly Sam
Newbie...
 
Old 11-17-2003, 12:10 AM   #8
Silly Sam
LQ Newbie
 
Registered: Oct 2003
Location: Detroit
Posts: 14

Rep: Reputation: 0
After examining other posts the solution was very easy. I used the terminal screen, logged in as root and copied the file over to the correct directory. I then had two files named sources and sources.swp. The sources.swp was the new modified one so I renamed the sources to sourcesold and the sources.swp to sources. I am now able to check for updates....

Thanks for all of the support...

From one Newbie to the next. Please visit this site for basic instructions on how to manage your way through the terminal... With some knowledge of DOS, I was able to figure this out rather quickly....

http://linuxcommand.org/index.php

Silly Sam
 
Old 11-17-2003, 03:39 AM   #9
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
The .swp file is there because you're still editing it (may be in another application or terminal window?). Most probably it still there because you killed the terminal w/o closing the editor properly.
 
Old 11-17-2003, 06:29 AM   #10
mazzo
Member
 
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142

Original Poster
Rep: Reputation: 15
Thanks for the advice.

Been out of action for a day or so, so will try it later.

BTW, did anyone manage to register - or is this just a hang-up from the RH9 up2date requirement (to register) ?
 
Old 11-17-2003, 07:57 AM   #11
lhm0155
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
goes in 2 parts

tthe system WILL register by typing in rhn_register, then it will tell you that its not a valid archictecture and all and by putting the above lines into your up2date sources file, it will associate the channel to your machine... so yes the nag about the registration did go away at least on my machine
 
Old 11-17-2003, 09:41 AM   #12
Silly Sam
LQ Newbie
 
Registered: Oct 2003
Location: Detroit
Posts: 14

Rep: Reputation: 0
Talking

Quote:
Originally posted by wiraone
The .swp file is there because you're still editing it (may be in another application or terminal window?). Most probably it still there because you killed the terminal w/o closing the editor properly.
Wira one,

You were correct! It turned out that I was using the emacs program incorrectly and resulting in the creation of the sources.swp file. I spent about 15 - 20 minutes in the tutorial on how to use the program, and now as a Newbie, I am more dangerous then ever before. LOL.... For newbies, open emacs, click on help, then tutorial. Really appreciate all of the help from the community...

Lessons Learned:
- Spent numerous hours trying to get the update to work
- You cannot use the ecmacs or the IV program like notepad
- Kicking the dog actually helps when solving problems (Note to self: kick dog lightly!)
- Use the CTRL/ALT/F1 key to gain access (sign in as root)
- More importantly type "exit" and then CTRL/ALT/F7 to get back to the desktop
- Achieve one milestone at a time...
- Keep smiling and thanking the Fedora community ("Thanks Everyone")

Silly Sam
Unstable Newbie
 
Old 11-17-2003, 12:48 PM   #13
mazzo
Member
 
Registered: Jun 2003
Location: Thames Valley, UK
Distribution: RedHat from 4 -9, Fedora, Ubuntu, Centos 3 - 7, Puppy Linux, and lots of raspberry pi
Posts: 142

Original Poster
Rep: Reputation: 15
Thanks lhm0155

I will give it a go !
 
  


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
Fedora Core 2 up2date condatis Fedora 2 12-03-2004 08:18 PM
Fedora Core 2 up2date... Le_Petit_Lapin Linux - Newbie 6 09-01-2004 11:15 AM
Fedora up2date proble SolidSnake Fedora 23 06-22-2004 10:03 PM
up2date fedora core 2 Vladimyre Linux - Newbie 1 04-16-2004 11:37 PM
fedora up2date hangs...? grapier Fedora 3 03-10-2004 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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