PDA

View Full Version : up2date error


sijp
24th July 2004, 08:03 PM
Hi I am trying to update my fedora 1 using up2date and it gives me the following error:

Traceback (most recent call last):
File "/usr/share/rhn/up2date_client/gui.py", line 1361, in onChannelsPageNext
self.pkgList = self.pList.getPackagesToInstall()
File "/usr/share/rhn/up2date_client/packageList.py", line 521, in getPackagesToInstall
result = self.__skipPackages(result)
File "/usr/share/rhn/up2date_client/packageList.py", line 550, in __skipPackages
packageList = self.__skipFiles(packageList)
File "/usr/share/rhn/up2date_client/packageList.py", line 571, in __skipFiles
ignoreMsgCallback = self.ignoreMsgCallback)
File "/usr/share/rhn/up2date_client/packageList.py", line 610, in buildHeaderList
hdr = headerList[pkg]
File "/usr/share/rhn/up2date_client/headers.py", line 37, in __getitem__
self.__retrievePackage(item)
File "/usr/share/rhn/up2date_client/headers.py", line 42, in __retrievePackage hdr, sourceType = rpcServer.doCall(self.repos.getHeader, item)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 112, in doCall
ret = apply(method, args, kwargs)
File "/usr/share/rhn/up2date_client/repoDirector.py", line 31, in getHeader
return self.handlers[channel['type']].getHeader(pkg, msgCallback, progressCallback)
File "/usr/share/rhn/up2date_client/rpmSource.py", line 210, in getHeader
header = source.getHeader(pkg, progressCallback = progressCallback)
File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line 96, in getHeader
hdrBuf = fh.read()
File "/usr/lib/python2.2/gzip.py", line 156, in read
self._read(readsize)
File "/usr/lib/python2.2/gzip.py", line 198, in _read
self._read_gzip_header()
File "/usr/lib/python2.2/gzip.py", line 110, in _read_gzip_header
raise IOError, 'Not a gzipped file'
IOError: Not a gzipped file
Traceback (most recent call last):
File "/usr/share/rhn/up2date_client/gui.py", line 1440, in onSkippedPagePrepare
maxlength = max(map(lambda x: len(x[0][0]), self.skipPkgList)) * 8
ValueError: min() or max() arg is an empty sequence


I have up2date 4.1.21-3 and it happens when It is trying to fetch 'awesfx'.

please tell me what to do.

tchung
24th July 2004, 09:09 PM
Hello,

Personally, I would use "yum" to update the system.
If you're not familiar with "yum", please read my article at:

http://fedoranews.org/tchung/howto/2003-11-09-yum-intro.shtml

To install awesfx, you should type:

# yum install awesfx

Thomas

ilja
24th July 2004, 09:15 PM
Hello,

To install awesfx, you should type:

# yum install awesfx

And to update it
yum update awesfx

sijp
24th July 2004, 09:51 PM
well I think it is because all the header before the 'awesfx' have been already fetched previously. so how can I make it fetch everything from the begining.

thanks for your replies...
I am trying to update more than one package (actually alot) so I cannot use yum as you suggested nor I can use what was suggested in your article (or maybe I am wrong).

I used :
#yum update
and it downloaded 12 updates and installed them perfectly but the up2date is saying I have 1312 new updates.
the new updates appeared when I changed the mirrors.
so I want to update everything but it even don't get to the part where I can choose what I want to update...

ilja
24th July 2004, 09:54 PM
synchronise the mirror of the config-files of yum and up2date, so you have the same servers in yum as in up2date and yum will update exactly the same packages as up2date would have. It's not a question of the programm, but of the mirrorlist.

sijp
24th July 2004, 10:02 PM
where is the config file for yum located?

tchung
24th July 2004, 10:03 PM
I used :
#yum update
and it downloaded 12 updates and installed them perfectly but the up2date is saying I have 1312 new updates.
the new updates appeared when I changed the mirrors.
so I want to update everything but it even don't get to the part where I can choose what I want to update...

Please check config file for yum which is located at:
/etc/yum.conf

AND
config file for up2date which is located at:
/etc/sysconfig/rhn/sources

They both should point to the same 'stable' repository server.

It seems very suspicious that you need '1312' updates via up2date.

Thomas

ilja
24th July 2004, 10:13 PM
where is the config file for yum located?
as thomas said
/etc/yum.conf
see http://www.fedorafaq.org/#installsoftware

sijp
24th July 2004, 11:04 PM
OK - I changed the mirrors to what they used to be before I changed them. now up2date says that there are'nt any updates - when I open it the same thing happens: it gets stuck when fetching "awesfx".

this are my mirrors:
http://mirrors.kernel.org/fedora/core/1/i386/os/
http://mirrors.kernel.org/fedora/core/updates/1/i386/


I did as you said about yum - but I got dependencies after a very long waiting...

p.s.
before that it was stuck when fetching a different package so I installed it manually so now it is getting stuck in this one.

Lakewood Photos - Kopavogur - Grazhdanka Photos