LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-21-2006, 05:18 AM   #1
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Rep: Reputation: 15
up2date error


I tried to make sure this isnt a repeated post by doing a search, however was unable to find a post relating to this so here I go:

I am trying to run the up2date command in command line but get the error:

RPM Error:
Could not determine what version of RHL you are running.
If you get this error, try running

rpm --rebuilddb


So I run the command 'rpm --rebuilddb' command and then followed by 'up2date' but no luck. Please can you help me with this as I need to make some important updates to the server.

Kind regards
 
Old 03-21-2006, 05:57 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Don't use up2date. I'm not kidding.

I take it this is fedora? (Please place your distro in your profile. See "My LQ > Edit Profile" on the right.) Note: we cannot tell which version of RHL you are running either.

You should be using yum for updates. See www.fedorafaq.org
 
Old 03-21-2006, 06:40 AM   #3
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Original Poster
Rep: Reputation: 15
Hi Simon, Sorry I forgot to mention that its redhat linux es- this is my work environment although at home i use fedora.
regards
 
Old 03-21-2006, 08:15 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Red Hat Linux Edge Server? Which one?
http://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux
Would this be RHEL 2.1ES (Panama) released in May 2003. It is based on RHL7.2 ... i.e. quite old. Your work should consider upgrading to RHEL4 ... they seem to have missed two opportunities for a free upgrade

I don't know how it is with RHEL, but with RHL and Fedora, only the latest two releases are supported in up2date.

However, your error would appear to be a little different. I'd complain to RedHat - especially if the company is still paying for support. Alternatively, you could try installing an up to date up2date from rpm, downloaded from rhn.

Then there is yum for rhel mentioned here ... don't know how good it is.
http://sial.org/howto/yum/
 
Old 03-21-2006, 08:25 AM   #5
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Original Poster
Rep: Reputation: 15
Sorry, iam not making myself clear: this problem only existed after i recently did an update using the up2date command. So basically it use to work but since having updated its giving me the above error. Ther version is RHEL 4(ENTERPRISE LINUX AS) and now after the updated kernel its now on version 2.6.9.11. I hope this helps......sorry for not giving the info earlier
 
Old 03-21-2006, 08:49 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by fedora user from post #3
Sorry I forgot to mention that its redhat linux es
Quote:
Originally Posted by fedora user from post #5
Ther version is RHEL 4(ENTERPRISE LINUX AS)
... that's quite a big difference there!

However, I did get that up2date was working until after the last update. When this happened to me, it was because RHL9 support was dropped. This should not be the case with RHEL4 AS (Red Hat Enterprise Linux 4 Advanced Server edition), though it could be expected to be an issue with RHL ES (Red Hat Linux Edge Server edition).

In the last update, was up2date itself updated? (check up2date version with rpm -q up2date) If not then it should be. It may even be that a reinstall of up2date will fix the problem.

Also, can you show me the entire up2date command you tried to run ... the error you get seems to be from rpm (i.e. after the packages have been downloaded but before they are installed???)
 
Old 03-21-2006, 09:18 AM   #7
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Original Poster
Rep: Reputation: 15
Thanks for the response simon..
in the last update the up2date command did update itself as I was told it needed updating. I think you could be very right that the updates had been downloaded but not installed(i had someone else messign about with this server). The command I have been using is simply 'up2date' on the command prompt.
If for argument sake updates have been downloaded but not installed, how can I tackle this in that case?

regards
 
Old 03-21-2006, 06:08 PM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
If someone else has been messing about - hit their head against the wall until they tell you what they did... you may also get clues in /var/log/up2date

To check, I guess you'd need to find where downloaded rpm's are stored, cd to that directory, and do
Code:
# rpm -Uvh *.rpm
Or you can use
Code:
# up2date -i
... see the up2date man page for more details.

In general, it is good practise when updating up2date to update only up2date and then update everything else. Better yet, if you can possibly use yum, do so.
 
Old 03-22-2006, 06:45 AM   #9
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Original Poster
Rep: Reputation: 15
If someone else has been messing about - hit their head against the wall until they tell you what they did... you may also get clues in /var/log/up2date


I am very close to doing that....the only problem is ppl are so thick up there that they may end up breaking the wall :-/

ta once again for the advice....gonna give it a go...and take things from there...

regards
 
Old 03-22-2006, 05:24 PM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Just a tip while we wait for the results to come in: If you want to quote someone in the "quick reply" thing, you noticed you can copy and paste OK - did you know you can stick it into a quote box too? Just stick it in the vb code ... for a quote, the code is "quote" ... and it's used like this:

[vbcode]text string code to be applied to[/vbcode]
Quote:
I am very close to doing that [banging heads to get information]....the only problem is ppl are so thick up there that they may end up breaking the wall :-/
... Ah well, there are other parts of the anatomy which they may value more...

I heard RMS, at a UN conference, on learning that he had limited dimplomatic immunity as a UN delegate, lamented that he had missed several chances to shoot proprietary-advocate rivals for the betterment of humanity
 
Old 04-30-2006, 07:35 PM   #11
ReggieSmith
LQ Newbie
 
Registered: Feb 2006
Distribution: RHEL and FC5
Posts: 2

Rep: Reputation: 0
Question

Quote:
Originally Posted by Simon Bridge
... that's quite a big difference there!

However, I did get that up2date was working until after the last update. When this happened to me, it was because RHL9 support was dropped. This should not be the case with RHEL4 AS (Red Hat Enterprise Linux 4 Advanced Server edition), though it could be expected to be an issue with RHL ES (Red Hat Linux Edge Server edition).

In the last update, was up2date itself updated? (check up2date version with rpm -q up2date) If not then it should be. It may even be that a reinstall of up2date will fix the problem.

Also, can you show me the entire up2date command you tried to run ... the error you get seems to be from rpm (i.e. after the packages have been downloaded but before they are installed???)
Can You tell me how to do a complete reinstall of up2date? Mine is hosed and I'm not quite sure how to fix it.
 
Old 04-30-2006, 10:35 PM   #12
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Ah - there's yum install up2date

You'll need to get the up2date rpms from redhat, and install them via the rpm command.
 
Old 04-30-2006, 10:38 PM   #13
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
I'm guessing that up2date -i did the trick for fedorauser as we havn't seen hide nor hair since... (or, he's in prison for taking my other advise?)
 
Old 05-01-2006, 11:11 AM   #14
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Original Poster
Rep: Reputation: 15
Hi Simon,
I am still here dude...
ur right with the first guess, i had success with the first request and was progressing onto other things )
REGARDS
 
Old 05-01-2006, 08:04 PM   #15
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Cool: nice to know.

When a suggestion works, it is best to let us know - closes off the thread nicely, and reassures folk following you that this thread, in fact, contains a solution.

Happy hacking.
 
  


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
up2date error kafnir Linux - General 1 05-01-2006 11:19 AM
up2date error aylmert Linux - Enterprise 3 12-31-2005 01:33 PM
Error after up2date. Skuggi Linux - General 2 01-22-2005 01:59 PM
up2date error Btwixt_Group Linux - Newbie 2 01-17-2004 10:34 AM
Error when I use up2date, please help ICO Linux - General 2 08-15-2003 04:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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