rocky-linux / rocky-tools

MIT License
408 stars 144 forks source link

Problem converting CentOS 8.5 with MATE to Rocky Linux #188

Open s676p opened 2 years ago

s676p commented 2 years ago

I had a server running CentOS8.5.2111 with MATE updated to 1.26.0-2 on it . The reposities were pointing to vault.centos.org and yum / dnf told me everything was up to date . In addition epel and the mate repositories were also enabled. So I felt pretty confident starting a conversion to Rocky Linux . All of previous server conversions have run without any problems. This time however it failed claiming that it could not convert mate 1.26.2 to mate 1.26.2 ( ? ) . The log file is attached .

pajamian commented 2 years ago

The log file did not come through, can you upload it again please and verify that it posted in your message?

s676p commented 2 years ago

Copying and pasting since it selecting doesn't seem to work :

migrate2rocky - Begin logging at Fri 23 Sep 2022 02:30:32 PM EDT.

Removing dnf cache Preparing to migrate CentOS Linux 8 to Rocky Linux 8.

Determining repository names for CentOS Linux 8......

Found the following repositories which map from CentOS Linux 8 to Rocky Linux 8:

Getting system package names for CentOS Linux 8CentOS Linux 8 Rocky Linux 8 appstream appstream powertools devel baseos baseos extras extras powertools powertools .......... Getting list of installed system packages.

Found the following system packages which map from CentOS Linux 8 to Rocky Linux 8: CentOS Linux 8 Rocky Linux 8 centos-logos-ipa rocky-logos-ipa centos-backgrounds rocky-backgrounds centos-gpg-keys rocky-gpg-keys centos-logos rocky-logos centos-indexhtml rocky-indexhtml centos-linux-release rocky-release centos-logos-httpd rocky-logos-httpd centos-linux-repos rocky-repos

Getting a list of enabled modules for the system repositories.

We will replace the following CentOS Linux 8 packages with their Rocky Linux 8 equivalents Packages to be Removed Packages to be Installed centos-backgrounds rocky-backgrounds centos-gpg-keys rocky-gpg-keys centos-logos rocky-logos centos-indexhtml rocky-indexhtml centos-linux-release rocky-release centos-logos-httpd rocky-logos-httpd centos-linux-repos rocky-repos

In addition to the above the following system packages will be removed: centos-linux-release centos-linux-release

Excluding modules: libselinux-python:2.8

Found the following modules to re-enable at completion: container-tools:rhel8 httpd:2.4 javapackages-runtime:201801 llvm-toolset:rhel8 mysql:8.0 nginx:1.14 perl-DBD-MySQL:4.046 perl-DBD-SQLite:1.58 perl-DBI:1.641 perl-IO-Socket-SSL:2.066 perl-libwww-perl:6.34 perl:5.26 php:7.2 postgresql:10 python27:2.7 python36:3.6 satellite-5-client:1.0 virt:rhel

Running dnf update before we attempt the migration. Last metadata expiration check: 0:00:31 ago on Fri Sep 23 14:31:27 2022. Dependencies resolved. Nothing to do. Complete! Added rockyappstream repo from https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/ Added rockybaseos repo from https://dl.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/ rockyappstream 9.8 MB/s | 11 MB 00:01
rockybaseos 9.1 MB/s | 7.9 MB 00:00
Last metadata expiration check: 0:00:01 ago on Fri Sep 23 14:32:04 2022.

Importing GPG key 0x6D745A60: Userid : "Release Engineering infrastructure@rockylinux.org" Fingerprint: 7051 C470 A929 F454 CEBE 37B7 15AF 5DAC 6D74 5A60 From : /tmp/tmp.622xwdZ8d9/gpg/RPM-GPG-KEY-rockyofficial

================================================================================ Package Arch Version Repository Size

Installing: rocky-backgrounds noarch 86.2-1.el8 rockyappstream 331 k rocky-gpg-keys noarch 8.6-4.el8 rockybaseos 12 k rocky-indexhtml noarch 8.0-0.el8 rockybaseos 266 k rocky-logos x86_64 86.2-1.el8 rockybaseos 328 k rocky-logos-httpd noarch 86.2-1.el8 rockybaseos 24 k rocky-release noarch 8.6-4.el8 rockybaseos 21 k rocky-repos noarch 8.6-4.el8 rockybaseos 14 k Removing: centos-backgrounds noarch 85.8-2.el8 @appstream 23 M centos-gpg-keys noarch 1:8-3.el8 @baseos 3.3 k centos-indexhtml noarch 8.0-0.el8 @baseos 505 k centos-linux-release noarch 8.5-1.2111.el8 @baseos 26 k centos-linux-repos noarch 8-3.el8 @baseos 26 k centos-logos x86_64 85.8-2.el8 @baseos 716 k centos-logos-httpd noarch 85.8-2.el8 @baseos 197 k

Transaction Summary

Install 7 Packages Remove 7 Packages

Total download size: 996 k Downloading Packages: (1/7): rocky-gpg-keys-8.6-4.el8.noarch.rpm 189 kB/s | 12 kB 00:00
(2/7): rocky-backgrounds-86.2-1.el8.noarch.rpm 2.7 MB/s | 331 kB 00:00
(3/7): rocky-indexhtml-8.0-0.el8.noarch.rpm 1.6 MB/s | 266 kB 00:00
(4/7): rocky-logos-httpd-86.2-1.el8.noarch.rpm 269 kB/s | 24 kB 00:00
(5/7): rocky-release-8.6-4.el8.noarch.rpm 239 kB/s | 21 kB 00:00
(6/7): rocky-repos-8.6-4.el8.noarch.rpm 159 kB/s | 14 kB 00:00
(7/7): rocky-logos-86.2-1.el8.x86_64.rpm 1.1 MB/s | 328 kB 00:00

Total 2.8 MB/s | 996 kB 00:00
rockyappstream 1.6 MB/s | 1.6 kB 00:00
Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: rocky-logos-86.2-1.el8.x86_64 1/1 Installing : rocky-logos-86.2-1.el8.x86_64 1/14 Running scriptlet: rocky-logos-86.2-1.el8.x86_64 1/14 Installing : rocky-gpg-keys-8.6-4.el8.noarch 2/14 Installing : rocky-release-8.6-4.el8.noarch 3/14 Installing : rocky-repos-8.6-4.el8.noarch 4/14 Installing : rocky-backgrounds-86.2-1.el8.noarch 5/14 Installing : rocky-logos-httpd-86.2-1.el8.noarch 6/14 Installing : rocky-indexhtml-8.0-0.el8.noarch 7/14 Erasing : centos-linux-release-8.5-1.2111.el8.noarch 8/14 Erasing : centos-linux-repos-8-3.el8.noarch 9/14 warning: /etc/yum.repos.d/CentOS-Linux-PowerTools.repo saved as /etc/yum.repos.d/CentOS-Linux-PowerTools.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-Plus.repo saved as /etc/yum.repos.d/CentOS-Linux-Plus.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-Extras.repo saved as /etc/yum.repos.d/CentOS-Linux-Extras.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-BaseOS.repo saved as /etc/yum.repos.d/CentOS-Linux-BaseOS.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-AppStream.repo saved as /etc/yum.repos.d/CentOS-Linux-AppStream.repo.rpmsave

Erasing : centos-backgrounds-85.8-2.el8.noarch 10/14 Erasing : centos-logos-85.8-2.el8.x86_64 11/14 Running scriptlet: centos-logos-85.8-2.el8.x86_64 11/14 Erasing : centos-gpg-keys-1:8-3.el8.noarch 12/14 Erasing : centos-logos-httpd-85.8-2.el8.noarch 13/14 Erasing : centos-indexhtml-8.0-0.el8.noarch 14/14 Running scriptlet: rocky-logos-86.2-1.el8.x86_64 14/14 Running scriptlet: centos-indexhtml-8.0-0.el8.noarch 14/14 Verifying : rocky-backgrounds-86.2-1.el8.noarch 1/14 Verifying : rocky-gpg-keys-8.6-4.el8.noarch 2/14 Verifying : rocky-indexhtml-8.0-0.el8.noarch 3/14 Verifying : rocky-logos-86.2-1.el8.x86_64 4/14 Verifying : rocky-logos-httpd-86.2-1.el8.noarch 5/14 Verifying : rocky-release-8.6-4.el8.noarch 6/14 Verifying : rocky-repos-8.6-4.el8.noarch 7/14 Verifying : centos-backgrounds-85.8-2.el8.noarch 8/14 Verifying : centos-gpg-keys-1:8-3.el8.noarch 9/14 Verifying : centos-indexhtml-8.0-0.el8.noarch 10/14 Verifying : centos-linux-release-8.5-1.2111.el8.noarch 11/14 Verifying : centos-linux-repos-8-3.el8.noarch 12/14 Verifying : centos-logos-85.8-2.el8.x86_64 13/14 Verifying : centos-logos-httpd-85.8-2.el8.noarch 14/14 Installed products updated.

Installed: rocky-backgrounds-86.2-1.el8.noarch rocky-gpg-keys-8.6-4.el8.noarch
rocky-indexhtml-8.0-0.el8.noarch rocky-logos-86.2-1.el8.x86_64
rocky-logos-httpd-86.2-1.el8.noarch rocky-release-8.6-4.el8.noarch
rocky-repos-8.6-4.el8.noarch
Removed: centos-backgrounds-85.8-2.el8.noarch
centos-gpg-keys-1:8-3.el8.noarch
centos-indexhtml-8.0-0.el8.noarch
centos-linux-release-8.5-1.2111.el8.noarch
centos-linux-repos-8-3.el8.noarch
centos-logos-85.8-2.el8.x86_64
centos-logos-httpd-85.8-2.el8.noarch

Complete! Last metadata expiration check: 0:00:33 ago on Fri Sep 23 14:32:04 2022.

Leaving Shell Ensuring repos are enabled before the package swap Enabling modules

Rocky Linux 8 - AppStream 3.4 MB/s | 11 MB 00:03
Rocky Linux 8 - BaseOS 2.8 MB/s | 7.9 MB 00:02
Rocky Linux 8 - Devel WARNING! FOR BUILDROOT AN 1.3 MB/s | 4.4 MB 00:03
Rocky Linux 8 - Extras 16 kB/s | 12 kB 00:00
Rocky Linux 8 - PowerTools 1.2 MB/s | 2.7 MB 00:02
Dependencies resolved. Nothing to do. Complete! Disabling excluded modules

Last metadata expiration check: 0:00:04 ago on Fri Sep 23 14:32:58 2022. Only module name is required. Ignoring unneeded information in argument: 'libselinux-python:2.8' Dependencies resolved.

Package Architecture Version Repository Size

Disabling modules: libselinux-python

Transaction Summary

Complete!

Syncing packages

Last metadata expiration check: 0:00:07 ago on Fri Sep 23 14:32:58 2022.

Error during distro-sync.

Error: Problem: package mate-desktop-configs-1.26.0-2.el8.noarch requires mate-desktop = 1.26.0-2.el8, but none of the providers can be in stalled

s676p commented 2 years ago

I've removed MATE and rolled back the 6 or so Rocky packages ( logos, backgrounds, release, ... ) with dnf --allowerasing swap ... ... so that the RPM list is identical to what it was before the migrate attempt ( sans MATE and lightdm ) . dnf upgrade tells me there is nothing to upgrade so I will try another migrate2rocky later today. And then install MATE and lightdm again.

peter

pajamian commented 2 years ago

migrate2rocky can't find mate-desktop, this is an epel package. You would have installed it from epel and later disabled the epel repo for whatever reason. Enable epel and try again.

pajamian commented 2 years ago

Strike that. It can find mate-desktop-configs which is also an epel package. So you have somehow excluded mate-desktop from being updated, migrate2rocky is attempting to distro-sync and it needs to find mate-desktop in order to update mate-desktop-configs, but it can't so it errors out. either remove the exclude for mate-desktop or add an exclude for mate-desktop-configs. I recommend the former.

s676p commented 2 years ago

Hmm . mate-desktop requires mate-desktop-configs but it did not get installed when I did the last dnf upgrade just before attempting the migrate. Nor did rpm -Va complain . Anyway - thanks for the help

peter

s676p commented 2 years ago

I went back through the dnf log files . As far as I can tell mate-desktop-configs was first introduced in 1.26.0-2 . My CentOS was upgraded to this version of MATE before the migrate attempt. Was it a case of me being one version "ahead" ?

pajamian commented 2 years ago

It shouldn't have mattered. The actual problem is this: "mate-desktop-1.26.0-2.el8.x86_64 does not belong to a distupgrade repository" That's saying that it can't find mate-desktop anywhere, but it does find mate-desktop-configs. Did you leave anything out of the log? Please attach the file /var/log/migrate2rocky.log so I can see the full log.

s676p commented 2 years ago

No - nothing was left out. But migrate2rocky ran without errors after I removed MATE .And I reinstalled MATE after the migrate without any problems so everything is ok now