Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure while migrating from CentOS 8 #118

Open
vandah opened this issue Nov 11, 2021 · 6 comments
Open

Failure while migrating from CentOS 8 #118

vandah opened this issue Nov 11, 2021 · 6 comments

Comments

@vandah
Copy link

vandah commented Nov 11, 2021

I tried running the migrate2rocky tool but arrived at the following error:

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

Can't get package that provides /etc/yum.repos.d/local-repository-0.repo.

This is right after running the CentOS 8 (8.3.2011) installation and rebooting. I also tried with: CentOS 8.4.2105 and AlmaLinux 8.4 (all originally from the same ISO file) and got the same results.

More details:

[root@g-vm06 ~]# curl https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh -o migrate2rocky.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 37406  100 37406    0     0   176k      0 --:--:-- --:--:-- --:--:--  175k
[root@g-vm06 ~]# chmod +x migrate2rocky.sh
[root@g-vm06 ~]# ./migrate2rocky.sh -r

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
local-centos8-x86_64--install-centos8-x86_64  baseos
extras                                        extras

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

Can't get package that provides /etc/yum.repos.d/local-repository-0.repo.

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.

 A log of this installation can be found at /var/log/migrate2rocky.log
@saifhalila
Copy link

I think you should update to centos 8.5 first and then run the migration script.

from Rocky Docs:

Screenshot 2021-12-18 192414

@pajamian
Copy link
Collaborator

Did you modify the repos to point to a local repo, perhaps with a different name other than baseos?

Where did you get the install isos from? This doesn't look to be a stock CentOS 8 install.

@LinusLarssonn
Copy link

I'm facing the same issue. Did you ever resolve this? And if so, how?

@yourchanges
Copy link

I'm facing the same issue.

@dovi5988
Copy link

I am having the same problem as well.

@EdKok
Copy link

EdKok commented May 9, 2023

Me too.

Server (VM) was created from official ISO. Was updated to 8.5.2111
Does indeed use modified repo config because server is behind a firewall and does not have internet access. Repos are mirrored on a local server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants