Re: Hi all!! add "up2date command after FC4test3 installation" bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is bugs, follows...?
I was successful when I added two lines to yumRepo.py.

1. change to /usr/share/rhn/up2date_client/repoBackends/yumRepo.py
-------------------------------------------------------------------------------------------------------------------------
[root@localhost share]# rpm -q up2date
up2date-4.4.17-1
up2date-4.4.18-1
[root@localhost share]# diff -u /usr/share/rhn.org/up2date_client/repoBackends/yumRepo.py /usr/share/rhn/up2date_client/repoBackends/yumRepo.py --- /usr/share/rhn.org/up2date_client/repoBackends/yumRepo.py 2005-05-19 09:04:10.000000000 +0900 +++ /usr/share/rhn/up2date_client/repoBackends/yumRepo.py 2005-05-19 11:05:16.000000000 +0900
@@ -76,11 +76,12 @@
        channels = rhnChannel.getChannels()
        channel = channels.getByLabel(package[6])
        url = "%s/headers/%s" % (channel['url'],remoteFilename )
+ url = string.replace(url, '//headers', '/headers') #### ins generic : There was an error downloading: http://ftp.dulug.duke.edu/pub/fed ora/linux/core/development/i386//headers/gcc-c++-0-4.0.0-6.i386.hdr
       if msgCallback:
               msgCallback("Fetching %s" % url)
        # heck, maybe even borrow the one from yum

-
+ hdr = None #### ins generic : stop up2date for exceptions.UnboundLocalError
        nohdr = 1
        count = 0
        while ((nohdr) and (count < 5)):
[root@localhost share]#
-------------------------------------------------------------------

2.Reproduction
-------------------------------------------------------------------
[root@localhost up2date]# up2date "[G-x]*"

 - snip -

Fetching Obsoletes list for channel: development...

Fetching rpm headers...
There was an error downloading: http://ftp.dulug.duke.edu/pub/fedora/linux/core/development/i386//headers/gcc-c++-0-4.0.0-6.i386.hdr There was an error downloading: http://ftp.dulug.duke.edu/pub/fedora/linux/core/development/i386//headers/gcc-c++-0-4.0.0-6.i386.hdr There was an error downloading: http://ftp.dulug.duke.edu/pub/fedora/linux/core/development/i386//headers/gcc-c++-0-4.0.0-6.i386.hdr There was an error downloading: http://ftp.dulug.duke.edu/pub/fedora/linux/core/development/i386//headers/gcc-c++-0-4.0.0-6.i386.hdr There was an error downloading: http://ftp.dulug.duke.edu/pub/fedora/linux/core/development/i386//headers/gcc-c++-0-4.0.0-6.i386.hdr
An error has occurred:
exceptions.UnboundLocalError
See /var/log/up2date for more information
[root@localhost up2date]#
-------------------------------------------------------------------

3.  -- /var/log/up2date --
-------------------------------------------------------------------
[Thu May 19 10:52:24 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 112, in __findPackagesToUpdate
   self.availableUpdates = plist.getPackagesToInstall()
File "/usr/share/rhn/up2date_client/packageList.py", line 625, in getPackagesToInstall
   result = self.__skipPackages(result)
File "/usr/share/rhn/up2date_client/packageList.py", line 654, in __skipPackages
   packageList = self.__skipFiles(packageList)
File "/usr/share/rhn/up2date_client/packageList.py", line 675, in __skipFiles
   ignoreMsgCallback = self.ignoreMsgCallback)
File "/usr/share/rhn/up2date_client/packageList.py", line 714, 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 309, in doCall
   ret = apply(method, args, kwargs)
File "/usr/share/rhn/up2date_client/repoDirector.py", line 35, in getHeader return self.handlers[channel['type']].getHeader(pkg, msgCallback, progressCallback)
  File "/usr/share/rhn/up2date_client/rpmSource.py", line 213, in getHeader
   header = source.getHeader(pkg, progressCallback = progressCallback)
File "/usr/share/rhn/up2date_client/repoBackends/yumRepo.py", line 112, in getHeader
   return hdr
-------------------------------------------------------------------

Namikawa, Shozo wrote:

Jared Buck wrote:

How's everyone? I was excited to try out the rest3 version of FC4, it installed flawlessly on my machine, and so far have not been experiencing any problems except for when up2date freezes when it says it's gathering a list of packages on my machine. I read the messages and apparently it's a common bug everyone's experiencing so I'm not too worried about it. I'm using yum update instead and that works fine.

I like all the new features, but it did take me a little bit to get used to where the configuration options are now (like add/remove packages, etc), but they're in a much more logical position now than they were before. Also love all the stuff that comes with KDE now, there's a ton of stuff I have yet to try out :)

I've done beta testing before (I'm doing that now for an online game) so I know to expect bugs and glitches, but aside from the bug I've mentioned, test3's been working very well for me.

Jared Buck
Crestline, CA


After FC4test3 installation, considerable time has gone caused by up2date included extras-development,
it result to no exist ".rpm" or invalid "url".

Therefore, I up2date under development environment without extras-development,
with clearing /var/spool/up2date just before each operation of up2date.

1. preparation

1.1 setting of "/etc/sysconfig/rhn/sources"

 1) comment out extras-development

"#yum extras-development http://download.fedora.redhat.com/pub/fedora/linux/extras/development/$ARCH/"; "#yum-mirror extras-development http://fedora.redhat.com/download/mirrors/fedora-extras-devel";

1.2 setting of "/etc/sysconfig/rhn/up2date"

 1) alternative setting on up2date

   #up2date-config --nox

   7.  pkgSkipList        ['kernel*', 'GFS*', 'cman*', 'dlm*', 'gnbd*']
   18. useGPG             No
   19. headerCacheSize    1000
   33. headerFetchCount   1000

2. up2date --dry-run under up2date-4.4.17-1

 1) clear all .hdr under "/var/spool/up2date"
 2) #up2date --dry-run
 3) ==> get avairable package

3. up2date up2date*  (up2date-4.4.17-1 -> up2date-4.4.18-1)

 1) clear all .hdr under "/var/spool/up2date"
 2)#up2date up2date*

4. up2date --dry-run under up2date-4.4.18-1

 1) clear all .hdr under "/var/spool/up2date"
 2) #up2date --dry-run
 3) ==> get avairable package

5. up2date all

 1) clear all .hdr under "/var/spool/up2date"
 2) "#up2date "[C-x]*"

If failed, try each step.




[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]