PDA

View Full Version : up2date broken ??


Lorien
8th May 2005, 08:54 PM
Hello all

just installed yesterday fedora core 4 test 2. everything is good but up2date isn't working correctly.
i can select the packages that i want to update but the forward button for next step is grayed out, so i can't proceed with download and install.

So i found out that some do updates with the yum command. so is it possible to do the updates with yum on fc4 test2 ??
What is needed to change in the yum.conf or somewhere else ?

Hope someone can help me out.

thanks alot

Lorien

brisray
9th May 2005, 04:08 AM
I've never got up2date working either, but you can use yum to do it.

You may need to change a line in yum.conf from gpgcheck=1 to gpgcheck=0

At the comamnd line use

yum - y update

The -y means answer yes to all questions asked by the server.

If you get dependancy errors - like I do with struts11 - then you may need to run it again using

yum -y --exclude=xxxxxxx update

where xxxxxxxx is the file name you're having problems with.

You can also use the wildcard * for multiple files, so an example for my command line would be

yum -y --exclude=struts* update

Ray

Lorien
9th May 2005, 07:17 AM

The correct download site for fc4test2 is already configured in yum ?

brisray
9th May 2005, 09:39 AM
It looks like it, I haven't had to change anything to get yum to find the servers.

At the bottom of the yum.conf file is a line that says you can either add your own yum repositiories to the .conf file or in /etc/yum.repos.d as .repo files

There should already be a number of .repo files in /etc/yum.repos.d that yum uses for updates.

Ray

pertsix
9th May 2005, 10:11 PM
not to seem too newbish but how do I edit yum.conf?

pertsix
9th May 2005, 10:40 PM
how to edit read only i meant*

Tantalus90
9th May 2005, 11:32 PM
at the login screen enter "root" instead of your username, and the root password

then you should be able to edit everything

or open a console and login there as root

change directory to where your yum.conf file lives

and type "vi yum.conf"

edit with the insert key and arrows

to quit , "esc" key then "ZZ"

more on vi here http://www.cs.fsu.edu/general/vimanual.html

Tant

Lorien
10th May 2005, 07:12 AM
i got updates working but not with yum. i startet up2date -u --nosig

pertsix
10th May 2005, 12:35 PM
Ok, did that command above, went through the entire thing..

(Last package finished, the text afterwards...)

zlib-devel-1.2.2.2-3.x86_64 ########################## Done.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/sbin/up2date", line 1231, in exceptionHandler
log = up2dateLog.initLog()
NameError: global name 'up2dateLog' is not defined

Original exception was:
Traceback (most recent call last):
File "/usr/sbin/up2date", line 1264, in ?
sys.exit(main() or 0)
File "/usr/sbin/up2date", line 799, in main
fullUpdate, dryRun=options.dry_run))
File "/usr/sbin/up2date", line 1136, in batchRun
batch.run()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 87, in run
self.__getPackages()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 168, in __getPackages
up2date.getPackage(pkg, wrapperUtils.printPkg, wrapperUtils.printRetrieveHash)
File "/usr/share/rhn/up2date_client/up2date.py", line 178, in getPackage
buf = rpcServer.doCall(repos.getPackage, pkg, msgCallback, progressCallback) File "/usr/share/rhn/up2date_client/rpcServer.py", line 309, in doCall
ret = apply(method, args, kwargs)
File "/usr/share/rhn/up2date_client/repoDirector.py", line 39, in getPackage
return self.handlers[channel['type']].getPackage(pkg, msgCallback, progressCallback)
File "/usr/share/rhn/up2date_client/rpmSource.py", line 186, in getPackage
package = source.getPackage(pkg, MsgCallback, progressCallback)
File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line 124, in getPackage
rpmPath = pkg[7]
IndexError: list index out of range

pertsix
10th May 2005, 12:37 PM
tried to use up2date itself:


[chris@localhost ~]$ up2date
http://fedora.redhat.com/download/up2date-mirrors/fedora-core-rawhide
using mirror: http://download.fedora.redhat.com/pub/fedora/linux/core/development/x86_64/
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/sbin/up2date", line 1231, in exceptionHandler
log = up2dateLog.initLog()
NameError: global name 'up2dateLog' is not defined

Original exception was:
Traceback (most recent call last):
File "/usr/share/rhn/up2date_client/gui.py", line 1311, in onChannelsPageNext
self.pList.run()
File "/usr/share/rhn/up2date_client/packageList.py", line 125, in run
self.progressCallback)
File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 331, in getAvailableAllArchPackageList
package_list = availablePackageList(
File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 153, in availablePackageList
repos = repoDirector.initRepoDirector()
File "/usr/share/rhn/up2date_client/repoDirector.py", line 75, in initRepoDirector
from repoBackends import repomdRepo
File "/usr/share/rhn/up2date_client/repoBackends/repomdRepo.py", line 16, in ? import yumBaseRepo
File "/usr/share/rhn/up2date_client/repoBackends/yumBaseRepo.py", line 14, in ?
import yum
File "/usr/share/rhn/__init__.py", line 32, in ?

ImportError: No module named updates
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/sbin/up2date", line 1231, in exceptionHandler
log = up2dateLog.initLog()
NameError: global name 'up2dateLog' is not defined

Original exception was:
Traceback (most recent call last):
File "/usr/share/rhn/up2date_client/gui.py", line 1393, in onSkippedPagePrepare
maxlength = max(map(lambda x: len(x[0][0]), self.skipPkgList)) * 8
ValueError: max() arg is an empty sequence

Lorien
10th May 2005, 12:50 PM
you recieved that error after it updated every package already ?
did you reboot your system afterwards ?

pertsix
10th May 2005, 09:02 PM
of course. still 513 updates needed.

Terre
15th May 2005, 10:24 AM
I tried up2date -u --nosig
and got this:

http://fedora.redhat.com/download/up2date-mirrors/fedora-core-rawhide
using mirror: http://download.fedora.redhat.com/pub/fedora/linux/core/developmen t/i386/
http://fedora.redhat.com/download/mirrors/fedora-extras-devel
using mirror: http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/ fedora/linux/extras/development/i386/
Repository freshrpms already added, not adding again
Repository livna-stable already added, not adding again
Baseurl(s) for repo: ['http://download.fedora.redhat.com/pub/fedora/linux/core/d evelopment/i386/', 'http://mirror.hiwaay.net/redhat/fedora/linux/core/developmen t/i386/', 'http://ftp.dulug.duke.edu/pub/fedora/linux/core/development/i386/', ' http://mirrors.kernel.org/fedora/core/development/i386/', 'http://sunsite.mff.cu ni.cz/pub/fedora/development/i386/', 'http://distro.ibiblio.org/pub/linux/distri butions/fedora/linux/core/development/i386/']
Baseurl(s) for repo: ['http://download.fedora.redhat.com/pub/fedora/linux/extras /development/i386/', 'http://mirrors.kernel.org/fedora/extras/development/i386/' , 'http://fedora.cat.pdx.edu/linux/extras/development/i386/', 'http://fedora.gtl ib.cc.gatech.edu/pub/fedora.redhat/linux/extras/development/i386/', 'http://fr2. rpmfind.net/linux/fedora/extras/development/i386/', 'http://fr.rpmfind.net/linux /fedora/extras/development/i386/', 'http://ftp.chg.ru/pub/Linux/fedora/linux/ext ras/development/i386/', 'http://ftp.kddilabs.jp/Linux/packages/fedora/extras/dev elopment/i386/', 'http://ftp.lug.ro/fedora/linux/extras/development/i386/', 'htt p://ftp-stud.fht-esslingen.de/pub/Mirrors/fedora.redhat.com/linux/extras/develop ment/i386/', 'http://ftp.uni-bayreuth.de/linux/fedora/linux/extras/development/i 386/', 'http://gd.tuwien.ac.at/opsys/linux/fedora/extras/development/i386/', 'ht tp://mirror.hiwaay.net/redhat/fedora/linux/extras/development/i386/', 'http://mi rror.switch.ch/ftp/mirror/fedora/linux/extras/development/i386/', 'http://mirror .web-ster.com/fedora/extras/development/i386/', 'http://www.mirrorservice.org/si tes/download.fedora.redhat.com/pub/fedora/linux/extras/development/i386/']
Baseurl(s) for repo: ['http://rpm.livna.org/fedora/3.92/i386/RPMS.stable', 'http ://livna.cat.pdx.edu/fedora/3.92/i386/RPMS.stable']
Baseurl(s) for repo: ['http://rpm.livna.org/fedora/3.92/i386/RPMS.unstable', 'http://livna.cat.pdx.edu/fedora/3.92/i386/RPMS.unstable']
Baseurl(s) for repo: ['http://rpm.livna.org/fedora/3.92/i386/RPMS.testing', 'http://livna.cat.pdx.edu/fedora/3.92/i386/RPMS.testing']
Baseurl(s) for repo: ['http://fr2.rpmfind.net/linux/fedora/extras/3.92/i386/', 'http://mirrors.kernel.org/fedora/extras/3.92/i386/', 'http://mirror.hiwaay.net/redhat/fedora/linux/extras/3.92/i386/', 'http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/fedora/linux/extras/3.92/i386/']
Cannot open/read repomd.xml file for repository: extras
failure: repodata/repomd.xml from extras: [Errno 256] No more mirrors to try.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/sbin/up2date", line 1231, in exceptionHandler
log = up2dateLog.initLog()
NameError: global name 'up2dateLog' is not defined

Original exception was:
Traceback (most recent call last):
File "/usr/sbin/up2date", line 1264, in ?
sys.exit(main() or 0)
File "/usr/sbin/up2date", line 799, in main
fullUpdate, dryRun=options.dry_run))
File "/usr/sbin/up2date", line 1119, in batchRun
batch.init()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 65, in init
self.__findPackagesToUpdate()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 101, in __findPackagesToUpdate
plist.addGlobs(self.listOfGlobs)
File "/usr/share/rhn/up2date_client/packageList.py", line 160, in addGlobs
availList = rhnPackageInfo.getAvailablePackageList()
File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 235, in getAvailablePackageList
package_list = availablePackageList(
File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 153, in availablePackageList
repos = repoDirector.initRepoDirector()
File "/usr/share/rhn/up2date_client/repoDirector.py", line 76, in initRepoDirector
repomdRepo.register(rd)
File "/usr/share/rhn/up2date_client/repoBackends/repomdRepo.py", line 390, in register
repomdRepo = RepomdRepo()
File "/usr/share/rhn/up2date_client/repoBackends/repomdRepo.py", line 353, in __init__
self.rmdrs = RepomdRepoSource()
File "/usr/share/rhn/up2date_client/repoBackends/repomdRepo.py", line 108, in __init__
YumBaseWrapper.__init__(self)
File "/usr/share/rhn/up2date_client/repoBackends/repomdRepo.py", line 41, in __init__
self.yb.doRepoSetup()
File "__init__.py", line 216, in doRepoSetup
File "repos.py", line 628, in getRepoXML
File "repos.py", line 607, in get
yum.Errors.RepoError: failure: repodata/repomd.xml from extras: [Errno 256] No more mirrors to try.

Terre
15th May 2005, 12:55 PM
Changelog

* Mon May 9 18:00:00 2005 Adrian Likins <alikins{%}redhat{*}com> 4.4.18
- fix problem with missing import

* Wed Apr 27 18:00:00 2005 Adrian Likins <alikins{%}redhat{*}com> 4.4.17
- fix some bugs in the way repomdRepo creates the package lists

* Tue Apr 26 18:00:00 2005 Adrian Likins <alikins{%}redhat{*}com> 4.4.16
- support repomd repos (and use the yum config if it exists)
bugzilla #135121

http://ftp.idilis.ro/mirrors/fedora/core/development/i386/repodata/repoview/up2date-0-4.4.18-1.html

I think this is my problem anyway... I'm using the old version of up2date. 4.4.17

The only problem is that when I try to use the rpm to upgrade to the new bugfixed version of up2date, I get the Package not found error message - saying I haven't got up2date on my system! I've been messing around with it for 2 hours, Red Hat Alert Notification Tool tells me it IS on my system and needs updating, when I try to reinstall the package via terminal, it also insists the package is on my system, so how can it say I haven't got it installed?

Any suggestions as to how to install version 4.4.18 will be gratefully received!

Terre
15th May 2005, 01:07 PM
http://mirrors.bevc.net/fedora/development/i386/Fedora/RPMS/up2date-gnome-4.4.18-1.i386.rpm
http://ftp.idilis.ro/mirrors/fedora/core/development/i386/Fedora/RPMS/up2date-4.4.18-1.i386.rpm
I've got the updated version of up2date now. I d/led both of these files, then did
rpm -Uvh up2date-4.4.18-1.i386.rpm up2date-gnome-4.4.18-1.i386.rpm

When I tried to up2date -u --nosig, I got a similar but different error message:

Cannot open/read repomd.xml file for repository: extras
failure: repodata/repomd.xml from extras: [Errno 256] No more mirrors to try.
An error has occurred:
yum.Errors.RepoError
See /var/log/up2date for more information

This is the output from the log:

[Sun May 15 13:03:05 2005] up2date File "/usr/sbin/up2date", line 1265, in ?
sys.exit(main() or 0)
File "/usr/sbin/up2date", line 800, in main
fullUpdate, dryRun=options.dry_run))
File "/usr/sbin/up2date", line 1120, in batchRun
batch.init()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 65, in init
self.__findPackagesToUpdate()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 101, in __findPackagesToUpdate
plist.addGlobs(self.listOfGlobs)
File "/usr/share/rhn/up2date_client/packageList.py", line 160, in addGlobs
availList = rhnPackageInfo.getAvailablePackageList()
File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 235, in getAvailablePackageList
package_list = availablePackageList(
File "/usr/share/rhn/up2date_client/rhnPackageInfo.py", line 153, in availablePackageList
repos = repoDirector.initRepoDirector()
File "/usr/share/rhn/up2date_client/repoDirector.py", line 76, in initRepoDirector
repomdRepo.register(rd)
File "/usr/share/rhn/up2date_client/repoBackends/repomdRepo.py", line 390, in register
repomdRepo = RepomdRepo()
File "/usr/share/rhn/up2date_client/repoBackends/repomdRepo.py", line 353, in __init__
self.rmdrs = RepomdRepoSource()
File "/usr/share/rhn/up2date_client/repoBackends/repomdRepo.py", line 108, in __init__
YumBaseWrapper.__init__(self)
File "/usr/share/rhn/up2date_client/repoBackends/repomdRepo.py", line 41, in __init__
self.yb.doRepoSetup()
File "__init__.py", line 216, in doRepoSetup
File "repos.py", line 628, in getRepoXML
File "repos.py", line 607, in get

Feels like I'm getting closer to the solution - but I have to go and eat now. Hope somebody can help me!