rocky-linux / rocky-tools

MIT License
401 stars 139 forks source link

migrate2rocky.sh: Can't get package that provides system-logos-ipa. #148

Open rosswmerrifield opened 2 years ago

rosswmerrifield commented 2 years ago

I am trying to convert my laptop from Red Hat 8.5 to Rocky. I tried running the migrate2rocky.sh script, but it fails with the following (this is the entire content of /var/log/migrate2rocky.log):

migrate2rocky - Begin logging at Sat 22 Jan 2022 10:48:14 AM PST.

Removing dnf cache
Preparing to migrate Red Hat Enterprise Linux 8.5 (Ootpa) to Rocky Linux 8.

Determining repository names for Red Hat Enterprise Linux 8.5 (Ootpa).....

Found the following repositories which map from Red Hat Enterprise Linux 8.5 (Ootpa) to Rocky Linux 8:

Getting system package names for Red Hat Enterprise Linux 8.5 (Ootpa).Error: No Matches found

Can't get package that provides system-logos-ipa.

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.

Maybe it has to do with the fact that my Red Hat license is currently expired, so I can't connect to the Red Hat repos at the moment?

Thanks,

Ross

pajamian commented 2 years ago

It would certainly be the case. migrate2rocky requires access to the source distros repos. I would recommend getting a free devsub and subscribing your current RHEL under that, then you will be able to migrate.

I might look into seeing if there's a way to make the migration work without access to the original repos as this could help with CentOS 8 migrations after the repos move to vault as well.

5zero7rc commented 2 years ago

Did you find any resolution to this issue? I get the same error trying to migrate from CentOS8 and the repositories are still accessible.

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

Getting system package names for CentOS Linux 8.Error: No Matches found

Can't get package that provides system-logos-ipa.

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.

pajamian commented 2 years ago

You're missing appstream (among other repos).

Show the entire /var/log/migrate2rocky.log file, please.

5zero7rc commented 2 years ago

Thanks, I had disabled the appstream repo due to a graphviz update issue. And unfortunately I can remove graphviz because check-mk depends on graphviz-gd and check-mk is the primary service this server provides.

Seems like I may be stuck in a catch 22 or something.

`# cat /var/log/migrate2rocky.log migrate2rocky - Begin logging at Thu 27 Jan 2022 04:30:45 PM CST.

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: CentOS Linux 8 Rocky Linux 8 appstream appstream baseos baseos extras extras

Getting system package names for CentOS Linux 8..........

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 list of installed system packages.

We will replace the following CentOS Linux 8 packages with their Rocky Linux 8 equivalents Packages to be Removed Packages to be Installed centos-gpg-keys rocky-gpg-keys centos-logos rocky-logos 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

Getting a list of enabled modules for the system repositories.

Excluding modules: libselinux-python:2.8

Found the following modules to re-enable at completion: container-tools:rhel8 freeradius:3.0 httpd:2.4 mariadb:10.3 mysql:8.0 nginx:1.14 perl-DBD-MySQL:4.046 perl-DBI:1.641 perl-IO-Socket-SSL:2.066 perl-libwww-perl:6.34 perl:5.26 php:7.3 python27:2.7 python36:3.6 satellite-5-client:1.0

Running dnf update before we attempt the migration. Last metadata expiration check: 0:00:36 ago on Thu Jan 27 16:30:58 2022. Error: Problem: cannot install both graphviz-2.40.1-43.el8.x86_64 and graphviz-2.40.1-40.el8.x86_64

Error running pre-update. Stopping now to avoid putting the system in an unstable state. Please correct the issues shown here and try again.

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage. `

pajamian commented 2 years ago

Do you have graphviz-gd excluded or something? Why? It should be able to update both graphviz and graphviz-gd without issue.

5zero7rc commented 2 years ago

Nope, no exclusion that I know about.

`# dnf update Last metadata expiration check: 0:00:30 ago on Thu 27 Jan 2022 07:02:00 PM CST. Error: Problem: cannot install both graphviz-2.40.1-43.el8.x86_64 and graphviz-2.40.1-40.el8.x86_64

Seems like I will need to keep working on that and get this issue cleared up before I can migrate to Rocky.

5zero7rc commented 2 years ago

Thanks for the help. Got it figured out. I had to enable the CentOS-Linux-PowerTools.repo ( not sure why it got disabled ). After enabling that I was able to get graphviz and graphviz-gd all sorted out.