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 - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-06-2003, 05:31 AM   #76
fintan
LQ Newbie
 
Registered: Aug 2003
Distribution: gentoo, redhat
Posts: 12

Rep: Reputation: 0
Quick question


Is it possible to set up a central server that will download all the up to date packages then ditribute them to say 3 other servers? Thanks

fintan
 
Old 11-06-2003, 12:55 PM   #77
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you need to be root, and check that that folder exists



you can configure a machine to download the updates. The problem is that if the system on machines are not the same then you will download the wrong updates.If they are the same then you could just use nfs to share the folder.

Last edited by DavidPhillips; 11-06-2003 at 12:56 PM.
 
Old 11-06-2003, 04:00 PM   #78
CletusJones
Member
 
Registered: Oct 2003
Location: Chicago
Distribution: debian, ubuntu
Posts: 48

Rep: Reputation: 15
The problem that I've been having with up2date is different than everyone else's problems...

I was able to download and install the new SSL certificate as well as the update to up2date without incident. However, when I run up2date it will download the packages for a while and eventually just stop transmitting/receiving data altogether. I'm a poor college student living on my own, so I've got dialup ATM but I don't see that being an issue because I can download the updates for my Win2k box just fine...

Any ideas?
 
Old 11-06-2003, 05:55 PM   #79
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143

Rep: Reputation: 15
Hi,

In trying to get to the up2date dir in /etc/sysconfig/rhn/up2date
I get this in terminal,

David@LinuxBox sysconfig]$ cd rhn

[David@LinuxBox rhn]$ cd up2date

bash: cd: up2date: Input/output error

[David@LinuxBox rhn]$ ls

ls: up2date: Input/output error

rhn-applet rhnsd systemid up2date-keyring.g

There is no up2date dir or file in rhn !

What should there be?

Thanks..
 
Old 11-06-2003, 06:22 PM   #80
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
ls -l /etc/sysconfig/rhn
total 36
drwxr-xr-x 2 root root 4096 Oct 29 15:13 clientCaps.d
-rw-r--r-- 1 root root 270 Nov 3 04:46 rhn-applet
-rw-r--r-- 1 root root 13 Oct 29 15:13 rhnsd
-rw-r--r-- 1 root root 1666 Nov 3 01:52 sources
-rw------- 1 root root 1316 Nov 3 21:45 systemid
-rw------- 1 root root 1315 Nov 3 16:57 systemid.save
-rw------- 1 root root 3429 Nov 3 21:48 up2date
-rw------- 1 root root 2155 Jan 15 2003 up2date-keyring.gpg
-rw------- 1 root root 97 Nov 3 01:13 up2date-uuid




download the proper up2date rpm and force install it manually

Last edited by DavidPhillips; 11-06-2003 at 06:25 PM.
 
Old 11-06-2003, 08:04 PM   #81
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143

Rep: Reputation: 15
Wow.. Sort of short, aren't I ?

What is the best command to make from the root command line to get this down and force it?

Thanks
 
Old 11-06-2003, 09:08 PM   #82
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
for redhat 8

curl -C - -O 'https://download-3.rhn.redhat.com/download/1068260497/33277cbd5539d23e6c7b993a9d8c056454c31b96/0/0/rhn/repository/NULL/up2date/3.0.7.2-1/i386/up2date-3.0.7.2-1.i386.rpm'

curl -C - -O 'https://download-3.rhn.redhat.com/download/1068260780/bac5061d539994a3d8af7a47af62e41c29dc321b/0/0/rhn/repository/NULL/up2date-gnome/3.0.7.2-1/i386/up2date-gnome-3.0.7.2-1.i386.rpm'


md5sum up2date*


compare output with this, if ok proceed. If not download again.

* up2date-3.0.7.2-1.i386.rpm - MD5 Checksum: 15bc5dc918916bca3a5c29148979716e
* up2date-gnome-3.0.7.2-1.i386.rpm - MD5 Checksum: 1ae89cf79880f3bc5de7b86eb1d47a2b


rpm -iv --force up2date*
 
Old 11-06-2003, 10:21 PM   #83
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143

Rep: Reputation: 15
Sould this be done in root dir or rhn ? Thanks
 
Old 11-06-2003, 10:53 PM   #84
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143

Rep: Reputation: 15
Okay, in root dir,


[root@LinuxBox root]# md5sum up2date*

15bc5dc918916bca3a5c29148979716e up2date-3.0.7.2-1.i386.rpm
1ae89cf79880f3bc5de7b86eb1d47a2b up2date-gnome-3.0.7.2-1.i386.rpm

[root@LinuxBox root]# ls -l
total 640
-rw-r--r-- 1 root root 2182 Nov 17 2002 anaconda-ks.cfg
drwx------ 3 root root 4096 Nov 6 15:30 Desktop
drwx------ 6 root root 4096 Nov 3 15:55 evolution
-rw-r--r-- 1 root root 15135 Nov 17 2002 install.log
-rw-r--r-- 1 root root 0 Nov 17 2002 install.log.syslog
-rw-r--r-- 1 root root 851 Nov 3 11:30 ks.cfg
-rw-r--r-- 1 root root 486806 Nov 7 13:59 up2date-3.0.7.2-1.i386.rpm
-rw-r--r-- 1 root root 118686 Nov 7 13:59 up2date-gnome-3.0.7.2-1.i386.rpm

[root@LinuxBox root]# rpm -iv --force up2date*
Preparing packages for installation...
up2date-3.0.7.2-1
rpmdb: /var/lib/rpm/Sha1header: Input/output error
error: cannot open Sha1header index using db3 - Input/output error (5)
up2date-gnome-3.0.7.2-1
rpmdb: /var/lib/rpm/Sha1header: Input/output error
[root@LinuxBox root]#

Can't believe the probs I'h having here!!

Appreciate the help.. I'd be totally lost without it!

Where should i go now?
 
Old 11-07-2003, 12:14 AM   #85
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try this

rpm --rebuilddb


This will likely fail due to your problem and you will need to go to more drastic measures.

I do not know what will happen if you do this...


rm -f /var/lib/rpm/*
rpm --initdb
rpm -i -v --force --nodeps --noscripts --notriggers --excludepath / up2date*

rpm --rebuilddb
 
Old 11-07-2003, 12:56 AM   #86
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143

Rep: Reputation: 15
Hey, go get yourself a nice cup of coffee on me !!

Seems like the db was corrupted, as the 'rebuild' command alone fixed it.

It has downloaded all the paks but has now said i did not select kernel 2.4.2.0 archg i686 etc...

Should I get this as well or go with the default

Thanks
 
Old 11-07-2003, 02:44 AM   #87
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
by default kernel packages are excluded. You should update it however with this command

up2date -uf


you could also use up2date --configure to remove kernel* from the package exceptions
 
Old 11-07-2003, 05:07 PM   #88
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143

Rep: Reputation: 15
Thank you David.

For others maybe with same problem, I followed David's advice to the letter and these were my final screens. At this point I still have 1 pak left which is the message at the bottom of this post.

[root@LinuxBox root]# rpm -iv --force up2date*

Preparing packages for installation...
up2date-3.0.7.2-1
rpmdb: /var/lib/rpm/Sha1header: Input/output error
error: cannot open Sha1header index using db3 - Input/output error (5)
up2date-gnome-3.0.7.2-1
rpmdb: /var/lib/rpm/Sha1header: Input/output error

[root@LinuxBox root]# rpm --rebuilddb

[root@LinuxBox root]# rpm -iv --force up2date*
Preparing packages for installation...
up2date-3.0.7.2-1
up2date-gnome-3.0.7.2-1
[root@LinuxBox root]# up2date -uf

Fetching package list for channel: redhat-linux-i386-8.0...
########################################

Fetching Obsoletes list for channel: redhat-linux-i386-8.0...
########################################

Fetching package list for channel: redhat-linux-i386-8.0...
########################################

Fetching Obsoletes list for channel: redhat-linux-i386-8.0...
########################################

Testing package set / solving RPM inter-dependencies...
########################################
XFree86-4.2.1-21.i386.rpm: ########################## Done.
iptables-1.2.8-8.80.2.i386. ########################## Done.
kernel-2.4.20-20.8.i686.rpm ########################## Done.
perl-5.8.0-88.3.i386.rpm: ########################## Done.
stat-3.3-4.i386.rpm: ########################## Done.
pam-devel-0.75-46.8.0.i386. ########################## Done.
Preparing ########################################### [100%]

Installing...
1:XFree86 ########################################### [100%]
2:iptables ########################################### [100%]
3:kernel ########################################### [100%]
4erl warning: /usr/lib/perl5/5.8.0/Net/libnet.cfg saved a/5.8.0/Net/libnet.cfg.rpmorig
########################################### [100%]
error: unpacking of archive failed: cpio: lstat
There was a fatal RPM install error. The message was:
There was a rpm unpack error installing the package: perl-5.8.0-88.3
You have new mail in /var/spool/mail/root
[root@LinuxBox root]#

Well, this is where I am now.
 
Old 11-07-2003, 06:47 PM   #89
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
looks like perl rpm had a problem, however it seems that rpm and up2date are working now. how's your disk space holding up?
 
Old 11-07-2003, 07:03 PM   #90
ozstar
Member
 
Registered: Oct 2003
Location: Sydney OZ
Distribution: Ubuntu 20.04LTS, Zorin 16.2 Pro
Posts: 143

Rep: Reputation: 15
I am fine with HD space. I have 15GB left on c:

Yes up2 is working and so is the install. Just the Perl.. Is that a prblem.. Will I ever need it?
 
  


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
Problems with up2date... monkiidansu Fedora 12 09-26-2005 10:37 AM
Problems with up2date mohd281 Linux - Newbie 13 08-17-2005 03:13 AM
Up2date problems dreyes81 Linux - Newbie 2 07-10-2005 02:22 PM
up2date problems... chiefreborn Linux - Software 3 06-14-2005 02:57 AM
up2date problems Arc4ne Linux - Security 5 08-27-2004 09:28 PM

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

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