Upgraded Fedora 29 -> 30 however Repos still appear to be using fc29 versions

I followed the guide located https://fedoramagazine.org/upgrading-fedora-29-to-fedora-30/ to a Tee

It rebooted successfully, and everything seemed wonderful

However, I am noticing now that installing applications or running upgrade I still seem to be using fc29 repositories instead of fc30

$ sudo dnf repolist
repo id repo name
fedora Fedora 29 - x86_64
fedora-modular Fedora Modular 29 - x86_64
rpmfusion-free RPM Fusion for Fedora 29 - Free
rpmfusion-free-updates RPM Fusion for Fedora 29 - Free - Updates
rpmfusion-nonfree RPM Fusion for Fedora 29 - Nonfree
rpmfusion-nonfree-updates RPM Fusion for Fedora 29 - Nonfree - Updates
skype-stable skype (stable)
sublime-text Sublime Text - x86_64 - Stable
updates Fedora 29 - x86_64 - Updates
updates-modular Fedora Modular 29 - x86_64 - Updates

How can I switch these to Fedora 30?

Thank you

Funny; because is common issue; where I can’t find the problem. I solved it in my f30 machine:

  1. Change manually the release

    a) su
    b) sed -i ‘s|$releasever|30|g’ /etc/yum.repos.d/*.repo
    c) dnf clean all && dnf -y distro-sync && dnf -y update

Reboot and cross fingers…

1 Like

Received some errors about systemd being protected with the dnf -y update … but after running the find/replace command across all of those .repo files and restarting, then running an update - everything appears to be in order and matching up correctly.

  /:-------------:\           
     :-------------------::        --------------- 
   :-----------/shhOHbmp---:\      OS: Fedora 30 (Workstation Edition) x86_64 
     /-----------omMMMNNNMMD  ---:     Kernel: 5.3.14-200.fc30.x86_64 
    :-----------sMMMMNMNMP.    ---:    Uptime: 5 mins 
   :-----------:MMMdP-------    ---\   Packages: 7038 (rpm) 
  ,------------:MMMd--------    ---:   Shell: bash 5.0.7 
  :------------:MMMd-------    .---:   Resolution: 1920x1080, 1920x1080 
  :----    oNMMMMMMMMMNho     .----:   DE: Plasma 
  :--     .+shhhMMMmhhy++   .------/   WM: KWin 
  :-    -------:MMMd--------------:    Theme: Adwaita [GTK2] 
  :-   --------/MMMd-------------;     Terminal: konsole 
  :-    ------/hMMMy------------:      CPU: AMD Ryzen 5 1500X (8) @ 3.500GHz 
  :-- :dMNdhhdNMMNo------------;       GPU: AMD ATI Radeon HD 6770 
  :---:sdNMMMMNds:------------:        Memory: 3064MiB / 7957MiB 
  :------:://:-------------::
  :---------------------://                                    

Your solution worked.

The kernel finally says “fc30” as opposed to “fc29”.

Any idea on the root cause of this issue? It seems troublesome to be that $releasever does not return the correct number or is not being ++

No. I rebuilt, changed various packages, edit various things without results. I recommend you for the next upgrade; update your f30 and change the release to 31, previous to upgrade; because these issue is persistent… Exist old information about similar issue but is obsolete or maybe anybody has habilities superiors to me to fix or search. You can open a bugzilla report about it or ask in Fedora devel email list.

Hi @insomniacjunkie, welcome to Fedora! Please take a minute to go through the posts in #start-here if you’ve not had a chance yet.

The repository information is provided by the fedora-repos package. Can you check what version you’re using?

$ rpm -q fedora-repos
fedora-repos-31-1.noarch

In your case, this should say 30. It is possible that some issue prevented certain packages from being updated. Did you notice anything in the transaction check before it asked you to reboot?

Yes, going forward I will change the release to 31 directly before the upgrade command… it seems like a huge oversight if this is a common bug. Thanks for the link sand help!

Alright, I’ll take a look at the #start-here posts at some point. Thanks!

OK, this is suspicious…

~]$ rpm -q fedora-repos
fedora-repos-29-6.noarch
fedora-repos-30-2.noarch

How do I remove the first entry?

1 Like

Ah yes. Are you sure the upgrade finished without errors? The presence of two identical packages indicates that it did not.

Could you try:

sudo dnf repolist
sudo dnf update --refresh

again? Please check that the repolist shows correct versions for the repos.

You can the check for older packages using this:

rpm -qa | grep fc29
1 Like

With the change in the repositories obviously you can see now “foo-30 - x86_64” …
I don’t recommend delete “fedora-repos-29-6.noarch” with dnf… because If you remove it; also delete fedora-repos-30-2.noarch because both has a dependency in common (maybe I am wrong); I don’t remember now the name (I can’t see my pc now; a cirugy in my eyes). But you can test reverting the change in the “release” in repositories. And attemp delete using rpm.

rpm -e --nodeps fedora-repos-29-6.noarch

mmm I completely forgot; I remember as ampliation, rpmbuild also is affected with these same issue, also outdated docker. containers, remove and paste manually the repositories doesn’t work… Also you can test it. beautiful

The upgrade finished without errors, as far as I know - at least nothing came up that stated there were any errors after the install. Mind you, I did go grab a bite to eat while it was upgrading - so perhaps something did occur, however I did notice any errors/warnings or indication that something came up. Would there be a way I could query the journal or logs to see this?

~]$ rpm -qa | grep fc29 | wc -l
940

Quite a few… 940 packages (out of 7035… approx 13%) are still fc29… how do I upgrade these? dnf update isn’t working.

OK I ran that command deleted fedora-repos-29-6.noarch

Looking at this though… how do I remove the fc29 kernels?

]$ rpm -qa kernel* | sort
kernel-5.3.11-100.fc29.x86_64
kernel-5.3.13-200.fc30.x86_64
kernel-5.3.14-200.fc30.x86_64
kernel-core-5.3.11-100.fc29.x86_64
kernel-core-5.3.13-200.fc30.x86_64
kernel-core-5.3.14-200.fc30.x86_64
kernel-devel-5.3.11-100.fc29.x86_64
kernel-devel-5.3.13-200.fc30.x86_64
kernel-devel-5.3.14-200.fc30.x86_64
kernel-headers-5.3.11-100.fc29.x86_64
kernel-headers-5.3.11-200.fc30.x86_64
kernel-modules-5.3.11-100.fc29.x86_64
kernel-modules-5.3.13-200.fc30.x86_64
kernel-modules-5.3.14-200.fc30.x86_64
kernel-modules-extra-5.3.11-100.fc29.x86_64
kernel-modules-extra-5.3.13-200.fc30.x86_64
kernel-modules-extra-5.3.14-200.fc30.x86_64

Same way, line by line for avoid disasters…

rpm -e --nodeps kernel-5.3.11-100.fc29.x86_64

Next

dnf clean all && dnf -y distro-sync && dnf -y update

OK the rpm -e commands seemed to have executed partially successfully… the kernels are no longer listed. However, dnf distro-sync and dnf update do not run properly.

Here are the results:

[ ~]$ rpm -qa kernel* | sort
kernel-core-5.3.11-100.fc29.x86_64
kernel-core-5.3.13-200.fc30.x86_64
kernel-core-5.3.14-200.fc30.x86_64
kernel-devel-5.3.11-100.fc29.x86_64
kernel-devel-5.3.13-200.fc30.x86_64
kernel-devel-5.3.14-200.fc30.x86_64
kernel-headers-5.3.11-100.fc29.x86_64
kernel-headers-5.3.11-200.fc30.x86_64
kernel-modules-5.3.11-100.fc29.x86_64
kernel-modules-5.3.13-200.fc30.x86_64
kernel-modules-5.3.14-200.fc30.x86_64
kernel-modules-extra-5.3.11-100.fc29.x86_64
kernel-modules-extra-5.3.13-200.fc30.x86_64
kernel-modules-extra-5.3.14-200.fc30.x86_64
[ ~]$ rpm -e --nodeps kernel-core-5.3.11-100.fc29.x86_64
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
[ ~]$ sudo rpm -e --nodeps kernel-core-5.3.11-100.fc29.x86_64
warning: file /lib/modules/5.3.11-100.fc29.x86_64/updates: remove failed: No such file or directory
[ ~]$ sudo rpm -e --nodeps kernel-devel-5.3.11-100.fc29.x86_64
[ ~]$ sudo rpm -e --nodeps kernel-headers-5.3.11-100.fc29.x86_64
[ ~]$ sudo rpm -e --nodeps kernel-modules-5.3.11-100.fc29.x86_64
depmod: WARNING: could not open modules.order at /lib/modules/5.3.11-100.fc29.x86_64: No such             file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/5.3.11-100.fc29.x86_64: No such     file or directory
[ ~]$ sudo rpm -e --nodeps kernel-modules-extra-5.3.11-100.fc29.x86_64
depmod: WARNING: could not open modules.order at /lib/modules/5.3.11-100.fc29.x86_64: No such         file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/5.3.11-100.fc29.x86_64: No such file or directory
[ ~]$ rpm -e --nodeps kernel-core-5.3.11-100.fc29.x86_64
error: package kernel-core-5.3.11-100.fc29.x86_64 is not installed
[ ~]$ rpm -qa kernel* | sort
kernel-core-5.3.13-200.fc30.x86_64
kernel-core-5.3.14-200.fc30.x86_64
kernel-devel-5.3.13-200.fc30.x86_64
kernel-devel-5.3.14-200.fc30.x86_64
kernel-headers-5.3.11-200.fc30.x86_64
kernel-modules-5.3.13-200.fc30.x86_64
kernel-modules-5.3.14-200.fc30.x86_64
kernel-modules-extra-5.3.13-200.fc30.x86_64
kernel-modules-extra-5.3.14-200.fc30.x86_64
[ ~]$ sudo dnf clean all
71 files removed
[ ~]$ sudo dnf -y distro-sync
Error: 
 Problem: The operation would result in removing the following protected packages: systemd, systemd-udev
(try to add '--skip-broken' to skip uninstallable packages)

Any ideas on how to get past this hurdle?

No without bad results; inclusive changing manually the release in critical parts… I told you; is persistent… Fedora email list devel bro. :smile:

1 Like

Alright, bro - I appreciate the help all the same.

The devel list seems to really not like support-type questions like this tho “THIS IS NOT A SUPPORT LIST. THIS LIST IS FOR DEVELOPMENT DISCUSSION ONLY.” https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org/

I would personally, never suggest the use of rpm -e. One should stick to dnf, since dnf knows about dependencies. rpm does not handle dependencies. @davidva, please do not ask users to use rpm -e --nodeps etc. It’s more likely to break things than fix them.

There is absolutely nothing wrong with having fc29 kernels. By default, Fedora keeps 3 most recent kernels. As new ones are installed, old ones are removed.

Can you please run dnf clean all; dnf update and post what errors you get? It should specify which packages are broken—we need that information.

OK, this is good to know. I was thinking because there was fc29 kernels it would somehow have an effect on my packages designating to fc29.

This results in:

Dependencies resolved.
Nothing to do.
Complete!

However, if I run dnf -y distro-sync

Error: 
 Problem: The operation would result in removing the following protected packages: systemd, systemd-udev
(try to add '--skip-broken' to skip uninstallable packages)

This is the issue I am unable to get past.

Only in Disneyland… I can prove no; and it is a simple example. As when you uses weak dependencies; make fools changes in fedora-release; put bad ideas as “modular repositories” is other place to discuss it.

You are lost man, about the problem. Please read line by line the context; isn’t a simple problem of fedora repositories or old kernels (I have experienced this same error in several releases.)… Sorry but is the reality. I a done here (because isn’t beneficios to my health, to touch a machine now); exist people earn money in devel or fedora discuss; altruist extra job isn’t bad…

Other:

rpm --nodeps with old packages is more secure to remove all system with dnf… Experience man.

You haven’t said anything here that would count as evidence towards a proof. :slight_smile:

That is not “the reality”. There isn’t even sufficient information here to be able to say what caused the problem in the first place.

This is also false. If the correct set of packages is installed, it should not try to “remove all system with dnf” in the first place. So let’s get to the root of the issue before throwing the whole toolkit at it randomly.

OK, let’s try to gather some more information about this then. Does adding the --verbose flag give any more input?

sudo dnf distro-sync --verbose