Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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
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???)
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?
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.
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...
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.