LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Dep. Problem Upgrading from Fedora 2 to 3 Using Yum (https://www.linuxquestions.org/questions/fedora-35/dep-problem-upgrading-from-fedora-2-to-3-using-yum-302142/)

crondaily 03-16-2005 12:20 AM

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.:D :D

gulo 03-16-2005 01:24 AM

shouldn't the command be "yum -y upgrade" rather than "update"?

crondaily 03-17-2005 09:16 PM

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. :cool:

misc 03-18-2005 03:15 PM

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.

crondaily 03-20-2005 05:45 PM

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.


All times are GMT -5. The time now is 08:33 PM.