Hi hs303,
I was using leapp upgrade, it worked well for centos7->Rocky8 upgrade, but stuck in the above error when I continue to do the upgrade from Rocky8 to Rocky9
I have tried the method in your link, here is the output
sudo dnf install $REPO_URL/$RELEASE_PKG $REPO_URL/$REPOS_PKG $REPO_URL/$GPG_KEYS_PKG
Last metadata expiration check: 0:22:49 ago on Mon 05 Aug 2024 07:56:09 AM CDT.
rocky-release-9.4-1.7.el9.noarch.rpm 67 kB/s | 24 kB 00:00
rocky-repos-9.4-1.7.el9.noarch.rpm 67 kB/s | 13 kB 00:00
rocky-gpg-keys-9.4-1.7.el9.noarch.rpm 80 kB/s | 13 kB 00:00
Dependencies resolved.
Package Architecture Version Repository Size
Upgrading:
rocky-gpg-keys noarch 9.4-1.7.el9 @commandline 13 k
rocky-release noarch 9.4-1.7.el9 @commandline 24 k
rocky-repos noarch 9.4-1.7.el9 @commandline 13 k
Transaction Summary
Upgrade 3 Packages
Total size: 50 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: rocky-gpg-keys-9.4-1.7.el9.noarch 1/1
Upgrading : rocky-gpg-keys-9.4-1.7.el9.noarch 1/6
Upgrading : rocky-repos-9.4-1.7.el9.noarch 2/6
Upgrading : rocky-release-9.4-1.7.el9.noarch 3/6
Cleanup : rocky-release-8.10-1.9.el8.noarch 4/6
Cleanup : rocky-repos-8.10-1.9.el8.noarch 5/6
Cleanup : rocky-gpg-keys-8.10-1.9.el8.noarch 6/6
Running scriptlet: rocky-gpg-keys-8.10-1.9.el8.noarch 6/6
Line is not an assignment at ‘/usr/lib/sysctl.d/50-redhat.conf:8’: (null)
Couldn’t write ‘1’ to ‘net/ipv4/conf/*/rp_filter’, ignoring: No such file or directory
Couldn’t write ‘0’ to ‘net/ipv6/conf/all/accept_ra’, ignoring: No such file or directory
Couldn’t write ‘0’ to ‘net/ipv6/conf/all/accept_redirects’, ignoring: No such file or directory
Couldn’t write ‘1’ to ‘net/ipv6/conf/all/disable_ipv6’, ignoring: No such file or directory
Couldn’t write ‘0’ to ‘net/ipv6/conf/default/accept_ra’, ignoring: No such file or directory
Couldn’t write ‘0’ to ‘net/ipv6/conf/default/accept_redirects’, ignoring: No such file or directory
Couldn’t write ‘1’ to ‘net/ipv6/conf/default/disable_ipv6’, ignoring: No such file or directory
warning: %transfiletriggerin(systemd-239-82.el8_10.1.x86_64) scriptlet failed, exit status 1
thank you hs303, I tried a different strategy, it finally worked
sharing what I did #Add Rocky Linux 9 Repositories
REPO_URL=“Index of /pub/rocky/9/BaseOS/x86_64/os/Packages/r/”
RELEASE_PKG=“rocky-release-9.4-1.7.el9.noarch.rpm”
REPOS_PKG=“rocky-repos-9.4-1.7.el9.noarch.rpm”
GPG_KEYS_PKG=“rocky-gpg-keys-9.4-1.7.el9.noarch.rpm”
sudo dnf install $REPO_URL/$RELEASE_PKG $REPO_URL/$REPOS_PKG $REPO_URL/$GPG_KEYS_PKG #Remove Unnecessary Packages
sudo dnf -y remove rpmconf yum-utils epel-release
sudo rm -rf /usr/share/redhat-logos #Install Rocky Linux 9 Packages
sudo dnf -y --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync