Can't upgrade from Fedora 38 to 40 on Asus Linux (unsupported OS)

Hello, I did not read this warning " You need to keep Fedora up to date. If you are 2 versions behind, your OS is no longer supported by Fedora (updates, security, etc.) E.g. If Fedora 40 is the current stable release, and you are on Fedora 38, your OS is unsupported." from this page : Linux for ROG Notebooks

and so I cannot upgrade my fedora version anymore. Is there a fix for this, or must I follow the manual and completely reset my system again?

Thank you

1 Like

Yes you can. But only upgrade a maximum of 2 version levels at a time (one level is best)
For example, if you are using f37 you can do f37 → f38 → f39 → f40 or possibly f37–> f39 → f40. But f37 → f40 (3 versions) is not supported.

In your case, f38 is no longer receiving updates but the upgrade from f38 → f39 → f40 is supported as is f38 → f40 (though discouraged)

2 Likes

Unfortunately, I still have a problem.

Now I see this after running sudo dnf upgrade --refresh :

Tor for Fedora 38 - x86_64 7.8 kB/s | 3.0 kB 00:00
Copr repo for asus-linux owned by lukenukem 34 B/s | 1.0 kB 00:30
Errors during downloading metadata for repository ‘copr:copr.fedorainfracloud.org:lukenukem:asus-linux’:

Is Tor the problem? I tried sudo systemctl stop tor but still get the same error.

I will try upgrading to 39 from 38 instead, but I have a problem with the sudo dnf upgrade --refresh command.

Disable the problematic repo before upgrading:

sudo dnf copr disable lukenukem/asus-linux
2 Likes

I can try it, but I think this repo is necessary for my system to function properly (I followed his guide to get Fedora on my Asus computer). when running sudo dnf upgrade --refresh, I get anyways :

Ignoring repositories: copr:copr.fedorainfracloud.org:lukenukem:asus-linux
Dependencies resolved.

Later, after the 12 G of packages install, I think it leads to this error :

Running transaction check
error: rpmdbNextIterator: skipping h# 159
Header RSA signature: BAD (header tag 268: invalid OpenPGP signature: Parsing an OpenPGP packet:
Failed to parse Signature Packet
because: Signature appears to be created by a non-conformant OpenPGP implementation, see https://github.com/rpm-software-management/rpm/issues/2351.

You should pay attention to the update cycle of fedora. A new version is released about every 6 months, (normally April & October) and each version is only supported for 13 months from its release date before going EOL. (F38 went EOL in May). When a version goes EOL there are no longer any updates, bug fixes, security fixes, or any other updates so pay attention and plan ahead.

That message, if you simply understand it, says that repo is not accessible for your fedora release version. As suggested, disable that 3rd party repo then do your updates/ including the version updates. You can re-enable it later if needed.

1 Like

I continued to follow the guide and it may be upgrading to fedora 39, it is still pending.

The linked ticket recommends removing the problematic package:

sudo rpm -e --nosignature $(rpm -q --nosignature --querybynumber 159)

invalid OpenPGP signature with Sequoia for existing RPM · Issue #2351 · rpm-software-management/rpm · GitHub

1 Like

Okay, there is one small issue still after 16G of packages downloaded. After running your suggestion i get :

error: Failed dependencies:
intel-oneapi-advisor >= 2023.1.0-43480 is needed by (installed) intel-basekit-2023.1.0-46401.x86_64

May I just remove the dependency with sudo dnf remove intel-basekit and retry the upgrade? I will refer to the guide more closely.

1 Like

Fedora 38 has been archived and moved to http://archives.fedoraproject.org/pub/archive/fedora/.

When is the last time you did a dnf upgrade?

1 Like

I have not done dnf upgrade it possibly 2 years. I was unaware this could lead to issues.

If you haven’t updated in 2 years, it is probably best to do a fresh install. You may also consider another distro which doesn’t update almost daily. One of the RHEL look-alike or CentOS, perhaps.

1 Like

Fresh install seems to be the only way to fix my issue, thank you for the alternate distro suggestions

Personally, I don’t see any need to reinstall the system.
I have several machines running Fedora and upgraded them multiple times over the years without reinstalling.

The problems discussed above are relatively simple to resolve.
You can bypass dependency check like this:

sudo rpm --nodeps --nosignature -e intel-oneapi-advisor
2 Likes