AlmaLinux / almalinux-deploy

EL to AlmaLinux migration tool.
GNU General Public License v3.0
543 stars 72 forks source link

Upgrading from Centos Stream 8 #133

Closed rrva closed 2 years ago

rrva commented 2 years ago

I want to upgrade to AlmaLinux from Centos Stream 8.

The current almalinux-deploy.sh fails:

Check root privileges                                                 OK
Detect centos version                                                 ERROR
Check EL is supported                                                 ERROR
[root@centos8stream ~]# cat /etc/os-release 
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

Is it possible to either use elevate or almalinux-deploy to migrate from Centos 8 Stream?

emper0r commented 2 years ago

Hi

including me in the meantime I upgraded from CentOS 8 to CentOS 8 Stream, so now we need to move to Almalinux and we got same error from script.

srbala commented 2 years ago

@emper0r @rrva Fix PR #137 ready which can convert CentOS 8 Stream to AlmaLinux.

It would be really great if you can verify/test the changes.

git clone --branch=issue_113_fix https://github.com/srbala/almalinux-deploy
cd almalinux-deploy
sudo ./almalinux-deploy.sh
rrva commented 2 years ago

Upgrade seem to have worked fine, but the host did not come up after reboot. I'll post the boot logs once I have access again.

ThunderVG commented 2 years ago

Upgraded my Centos stream 8 to Almalinux 8.6 succesfully with this script version. Thanks!

prdufresne commented 2 years ago

I also attempted to use the script, but it failed. I captured the failure message for reference:

Check root privileges                                                 OK
Download almalinux-release package                                    OK
Verify almalinux-release package                                      OK
Last metadata expiration check: 0:51:59 ago on Mon 30 May 2022 10:46:55 AM EDT.
Last metadata expiration check: 0:51:30 ago on Mon 30 May 2022 10:47:25 AM EDT.
Error: 
 Problem: installed package llvm-compat-libs-13.0.1-2.module_el8.7.0+1142+5343df54.x86_64 obsoletes llvm-libs = 13.0.1 provided by llvm-libs-13.0.1-1.module_el8.6.0+2864+ffe288a1.x86_64
  - cannot install the best update candidate for package llvm-libs-14.0.0-2.module_el8.7.0+1142+5343df54.x86_64
  - problem with installed package llvm-compat-libs-13.0.1-2.module_el8.7.0+1142+5343df54.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Run dnf distro-sync -y. Exit code: 1                                  ERROR

After rebooting the VM, it seems the upgrade was completed, despite the error above. Certainly all the branding and the os-release all indicate Alma Linux.