LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   After preupgrade f13 to f14 no f14 repos are found (https://www.linuxquestions.org/questions/fedora-35/after-preupgrade-f13-to-f14-no-f14-repos-are-found-846957/)

ceg4048 11-27-2010 07:14 PM

After preupgrade f13 to f14 no f14 repos are found
 
Hi guys,
After preupgrade to f14 I was amazed to see that everything works. The only problem I can see though is that there is an anomaly with the yum repolist.

a uname -r confirms the 2.6.35.6-48.fc14.i686 kernel. However, a yum repolist all command shows:
Quote:

Loaded plugins: fastestmirror, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: mirror.cogentco.com
* fedora-source: mirror.cogentco.com
* updates: mirror.cogentco.com
repo id repo name status
adobe-linux-i386 Adobe Systems Incorporated enabled: 18
fedora Fedora 13 - i386 enabled: 16,814
fedora-debuginfo Fedora 13 - i386 - Debug disabled
fedora-source Fedora 13 - Source enabled: 0
livna rpm.livna.org for 13 - i386 disabled
livna-debuginfo rpm.livna.org for 13 - i386 - De disabled
livna-source rpm.livna.org for 13 - i386 - So disabled
rpmfusion-free RPM Fusion for Fedora 13 - Free disabled
rpmfusion-free-debuginfo RPM Fusion for Fedora 13 - Free disabled
rpmfusion-free-rawhide RPM Fusion for Fedora Rawhide - disabled
rpmfusion-free-rawhide-debuginfo RPM Fusion for Fedora Rawhide - disabled
rpmfusion-free-rawhide-source RPM Fusion for Fedora Rawhide - disabled
rpmfusion-free-source RPM Fusion for Fedora 13 - Free disabled
rpmfusion-free-updates RPM Fusion for Fedora 13 - Free disabled
rpmfusion-free-updates-debuginfo RPM Fusion for Fedora 13 - Free disabled
rpmfusion-free-updates-source RPM Fusion for Fedora 13 - Free disabled
rpmfusion-free-updates-testing RPM Fusion for Fedora 13 - Free disabled
rpmfusion-free-updates-testing-debuginfo RPM Fusion for Fedora 13 - Free disabled
rpmfusion-free-updates-testing-source RPM Fusion for Fedora 13 - Free disabled
rpmfusion-nonfree RPM Fusion for Fedora 13 - Nonfr disabled
rpmfusion-nonfree-debuginfo RPM Fusion for Fedora 13 - Nonfr disabled
rpmfusion-nonfree-rawhide RPM Fusion for Fedora Rawhide - disabled
rpmfusion-nonfree-rawhide-debuginfo RPM Fusion for Fedora Rawhide - disabled
rpmfusion-nonfree-rawhide-source RPM Fusion for Fedora Rawhide - disabled
rpmfusion-nonfree-source RPM Fusion for Fedora 13 - Nonfr disabled
rpmfusion-nonfree-updates RPM Fusion for Fedora 13 - Nonfr disabled
rpmfusion-nonfree-updates-debuginfo RPM Fusion for Fedora 13 - Nonfr disabled
rpmfusion-nonfree-updates-source RPM Fusion for Fedora 13 - Nonfr disabled
rpmfusion-nonfree-updates-testing RPM Fusion for Fedora 13 - Nonfr disabled
rpmfusion-nonfree-updates-testing-debuginfo RPM Fusion for Fedora 13 - Nonfr disabled
rpmfusion-nonfree-updates-testing-source RPM Fusion for Fedora 13 - Nonfr disabled
updates Fedora 13 - i386 - Updates enabled: 6,482
updates-debuginfo Fedora 13 - i386 - Updates - Deb disabled
updates-source Fedora 13 - Updates Source disabled
updates-testing Fedora 13 - i386 - Test Updates disabled
updates-testing-debuginfo Fedora 13 - i386 - Test Updates disabled
updates-testing-source Fedora 13 - Test Updates Source disabled
repolist: 23,314
I also tried downloading the fedora-release 14.1, but when I tried to install it I got:
Quote:

[root@Carbonic yum.repos.d]# rpm -ivh /home/Downloads/fedora-release-14-1.noarch.rpm
Preparing... ########################################### [100%]
package fedora-release-14-1.noarch is already installed
file /etc/fedora-release from install of fedora-release-14-1.noarch conflicts with file from package fedora-release-13-1.noarch
file /etc/issue from install of fedora-release-14-1.noarch conflicts with file from package fedora-release-13-1.noarch
file /etc/issue.net from install of fedora-release-14-1.noarch conflicts with file from package fedora-release-13-1.noarch
file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora from install of fedora-release-14-1.noarch conflicts with file from package fedora-release-13-1.noarch
file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386 from install of fedora-release-14-1.noarch conflicts with file from package fedora-release-13-1.noarch
file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-sparc from install of fedora-release-14-1.noarch conflicts with file from package fedora-release-13-1.noarch
file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-sparc64 from install of fedora-release-14-1.noarch conflicts with file from package fedora-release-13-1.noarch
file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64 from install of fedora-release-14-1.noarch conflicts with file from package fedora-release-13-1.noarch
file /etc/rpm/macros.dist from install of fedora-release-14-1.noarch conflicts with file from package fedora-release-13-1.noarch
file /etc/system-release-cpe from install of fedora-release-14-1.noarch conflicts with file from package fedora-release-13-1.noarch
/etc/yum.conf looks like this:
Quote:

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
color=never

# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
/etc/yum.conf (END)
Needless to say, a yum distro-sync only results in yum trying to downgrade all the f14 packages.

Here is a list of the files in yum.repos.d:
Quote:

[root@Carbonic yum.repos.d]# ls
adobe-linux-i386.repo rpmfusion-free-updates.repo
fedora.repo rpmfusion-free-updates-testing.repo
fedora-updates.repo rpmfusion-nonfree-rawhide.repo
fedora-updates-testing.repo rpmfusion-nonfree.repo
livna.repo rpmfusion-nonfree-updates.repo
rpmfusion-free-rawhide.repo rpmfusion-nonfree-updates-testing.repo
rpmfusion-free.repo
If I open up the fedora-updates file, for example this is what I see:
Quote:

[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
fedora-updates.repo (END)
Could anyone give a clue as to how to get rid of the f13 repos and to allow the f14 repos to be active?

Any help would be much appreciated.

Cheers,

unSpawn 11-28-2010 06:28 AM

Quote:

Originally Posted by ceg4048 (Post 4173106)
I also tried downloading the fedora-release 14.1, but when I tried to install it I got:
Code:

]# rpm -ivh /home/Downloads/fedora-release-14-1.noarch.rpm

Shouldn't you use 'rpm -Uvh /home/Downloads/fedora-release-14-1.noarch.rpm' (upgrade) instead?

ceg4048 11-28-2010 07:41 AM

Hi unSpawn,
Well OK, I tried it again and got the following:
Quote:

[root@Carbonic Downloads]# rpm -Uvh fedora-release-14-1.noarch.rpm
Preparing... ########################################### [100%]
package fedora-release-14-1.noarch is already installed
The repo list still only shows f13 repos.

I don't understand why no f14 repos show if the rpm is already installed.

Cheers,

unSpawn 11-28-2010 08:32 AM

Quote:

package fedora-release-14-1.noarch is already installed
Try 'rpm -Uvh --force fedora-release-14-1.noarch.rpm'? I don't think the .repo files themselves (as they use "$releasever") but something else is blocking. What does 'rpm -qf /etc/yum.conf' return?

ceg4048 11-28-2010 05:53 PM

Hi unSpawn,
Yes the --force did the trick mate!

Now I get:
Quote:

[root@Carbonic Downloads]# rpm -qf /etc/yum.conf
yum-3.2.28-5.fc14.noarch
Yum repolist now shows:
Quote:

[root@Carbonic Downloads]# yum repolist
Loaded plugins: fastestmirror, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
fedora/metalink | 20 kB 00:00
fedora-source/metalink | 18 kB 00:00
updates/metalink | 6.6 kB 00:00
* fedora: www.gtlib.gatech.edu
* fedora-source: www.gtlib.gatech.edu
* updates: mirror.hiwaay.net
adobe-linux-i386 | 951 B 00:00
updates | 4.7 kB 00:00
updates/primary_db | 1.9 MB 00:07
repo id repo name status
adobe-linux-i386 Adobe Systems Incorporated 18
fedora Fedora 14 - i386 17,883
fedora-source Fedora 14 - Source 0
updates Fedora 14 - i386 - Updates 2,682
repolist: 20,583
RPMFusion still seems to be missing so I'll try to add those.

Thanks so much!

Cheers,

unSpawn 11-28-2010 07:00 PM

You're welcome. Have fun!

allinux4 12-22-2010 04:38 PM

The old "fedora-release.rpm" seems to stay installed even after "preupgrade" installs the new one. This came in handy when "preupgrade" crapped out the first time. I was able to reboot, do some installs and removes, and try again.
After a successful "preupgrade":
Code:

rpm -qa|grep fedora-release
showed that both fedora-releases were still installed.

Forcing a reinstall of fedora-release-14-1.noarch was the solution I saw here and was about to try it. Then I thought what if I just removed the old fedora-release.rpm. I was upgrading from 12 to 14,
so I used:
Code:

sudo rpm -e --test fedora-release-12-2.noarch
to see if it would erase easily and then did it for real with:
Code:

sudo rpm -e fedora-release-12-2.noarch
The correct repos then showed up with:
Code:

yum repolist all

ceg4048 12-22-2010 08:23 PM

Hi,
That seems a clever solution as well. I'll keep that in my pocket for the next upgrade!

Thanks!

Cheers,


All times are GMT -5. The time now is 02:04 AM.