LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-16-2005, 12:20 AM   #1
crondaily
LQ Newbie
 
Registered: May 2004
Posts: 8

Rep: Reputation: 0
Dep. Problem Upgrading from Fedora 2 to 3 Using Yum


Hello.

I have recently upgraded my system from Fedora Core 1 to Core 2 using Yum, and am happy to report that it was completely painless for me and my computer. Going from Fedora Core 2 to Core 3 on the other hand .... (lots of expletives deleted) .

I have followed the instructions from these URL's:

http://linux.duke.edu/%7Eskvidal/mis...e-with-yum.txt
http://www.brandonhutchinson.com/Upg..._with_yum.html

but so far I have not been able complete this daunting task.

Here are my yum configuration files:

/etc/yum.conf:
Code:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20

[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
baseurl=ftp://ftp.telus.net/pub/fedora/linux/core/$releasever/$basearch/os/

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
baseurl=ftp://ftp.telus.net/pub/fedora/linux/core/updates/$releasever/$basearch/

#[updates-testing]
#name=Fedora Core $releasever - $basearch - Unreleased Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/

#[development]
#name=Fedora Core $releasever - Development Tree
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/
/etc/yum.repos.d/fedora-updates.repo:
Code:
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
/etc/yum.repos.d/fedora.repo:
Code:
[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1
There are other configuration files too, but they are all backups of old versions of these files.

When I run 'yum update' as root, I get this output:

Code:
libxslt-1.1.11-1.i386.rpm 100% |=========================|  13 kB    00:00
---> Package libxslt.i386 0:1.1.11-1 set to be updated
---> Downloading header for yp-tools to pack into transaction set.
yp-tools-2.8-7.i386.rpm   100% |=========================| 9.6 kB    00:00
---> Package yp-tools.i386 0:2.8-7 set to be installed
---> Downloading header for howl to pack into transaction set.
howl-0.9.6-6.i386.rpm     100% |=========================| 4.6 kB    00:00
---> Package howl.i386 0:0.9.6-6 set to be installed
--> Running transaction check
--> Processing Conflict: xorg-x11-font-utils conflicts xorg-x11-base-fonts<= 6.7.99.903-3
--> Processing Conflict: udev conflicts kernel< 0:2.6
Traceback (most recent call last):
  File "/usr/bin/yum", line 8, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 104, in main
    (result, resultmsgs) = base.buildTransaction()
  File "/usr/lib/python2.3/site-packages/yum/__init__.py", line 174, in buildTransaction
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.3/site-packages/yum/depsolve.py", line 190, in resolveDeps
    (checkdep, missing, conflict, errormsgs) = self._processConflict(dep)
  File "/usr/lib/python2.3/site-packages/yum/depsolve.py", line 492, in _processConflict
    uplist = self.up.getUpdatesList(name=confname)
UnboundLocalError: local variable 'confname' referenced before assignment
If anybody feels like taking a shot at this, I would appreciate it.

Thanks.
 
Old 03-16-2005, 01:24 AM   #2
gulo
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Ubuntu
Posts: 65

Rep: Reputation: 15
shouldn't the command be "yum -y upgrade" rather than "update"?
 
Old 03-17-2005, 09:16 PM   #3
crondaily
LQ Newbie
 
Registered: May 2004
Posts: 8

Original Poster
Rep: Reputation: 0
http://linux.duke.edu/%7Eskvidal/mis...e-with-yum.txt

The above documentation states:

Quote:
- Now you're ready to run the update:
yum upgrade
So I'm going to stick with 'yum upgrade', but I think 'yum -y --obsoletes update' should do the same thing.

Here's what the man page states for the options 'upgrade', 'update', and the -y and --obsoletes flags:

Quote:
update If run without any packages, update will update every currently installed package. If one or more packages
are specified, Yum will only update the listed packages. While updating packages, yum will ensure that all
dependencies are satisfied. If no package matches the given package name(s), they are assumed to be a shell
glob and any matches are then installed.

If the --obsoletes flag is present yum will include package obsoletes in its calculations - this makes it
better for distro-version changes, for example: upgrading from somelinux 8.0 to somelinux 9.

upgrade
Is the same as the update command with the --obsoletes flag set. See update for more details.

-y Assume yes; assume that the answer to any question which would be asked is yes.
Configuration Option: assume-yes

--obsoletes
This option only has affect for an update, it enables yum´s obsoletes processing logic. For more information
see the update command above.
Configuration Option: obsoletes
I don't think the difference between 'update' and 'upgrade' is effecting me at all, but thanks for the post.
 
Old 03-18-2005, 03:15 PM   #4
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 52
I think you didn't follow the instructions closely. Because, for instance, you have repository definitions in both /etc/yum.conf and below /etc/yum.repos.d/

It doesn't become clear at all what steps you've finished already.
 
Old 03-20-2005, 05:45 PM   #5
crondaily
LQ Newbie
 
Registered: May 2004
Posts: 8

Original Poster
Rep: Reputation: 0
I actually did manage to convince yum to upgrade me to Fedora Core 3, but after the upgrade, X would not start. I could not find any error messages in the log files, so I gave up and downloaded the FC3 CD's and re-installed.

The problem getting the upgrade to take place was that I forgot to uninstall the 2.4 series kernel I had installed. Actuall, I had two different 2.4 series kernels installed, one via RPM, and the other I installed from source using 'make menuconfig' ... I used 'rpm -e' to uninstall the 2.4 kernel, and that got rid of the Python errors as well as the "udev conflicts kernel< 0:2.6" dependency problem.

To get rid of the "xorg-x11-font-utils conflicts xorg-x11-base-fonts<= 6.7.99.903-3" problem, I uninstalled "xorg-x11-font-utils" and "xorg-x11-base-fonts" rpm's with the command 'rpm -e --nodeps'. This is undoubtably what caused the problem with X not starting, but I could not figure out how to fix it for the life of me.

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Fedora Yum update problem klnasveschuk Fedora 3 10-11-2005 06:26 AM
Fedora core 4 yum problem Lung-Dart Linux - Software 1 07-05-2005 08:44 PM
upgrading to fedora core2 with yum :P chrisyb Linux - Newbie 6 04-10-2005 11:04 AM
Yum update complains missing file (broken dep), but file can be located. davidas Linux - Software 0 03-27-2004 09:11 PM
yum/up2date problem with Fedora Core2 Space_Balls Fedora 7 03-05-2004 05:39 PM


All times are GMT -5. The time now is 06:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration