CentOS 8 시스템이 있고 CentOS 9로 업그레이드하기로 결정했지만 공식적으로 지원되지 않습니다. 그래도 Google 검색에서 이 작업에 대한 지침을 찾았습니다.Github에서. 이러한 지침의 대부분은 작동했으며 새 커널을 사용하여 새 시스템으로 부팅했습니다. 그러나 패키지 관리자로 dnf
작업을 수행 할 때마다 여전히 문제가 발생합니다.
지금 실행할 때 나타나는 오류는 다음과 같습니다 dnf upgrade
.
# dnf upgrade
error: /usr/lib/rpm/macros.d/macros.php74-config: line 3: Macro %undefine is a built-in (%define)
error: /usr/lib/rpm/macros.d/macros.php74-config: line 3: Macro %undefine is a built-in (%define)
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
Last metadata expiration check: 0:27:27 ago on Thu 17 Mar 2022 13:25:04.
Modular dependency problems:
Problem 1: conflicting requests
- nothing provides module(platform:el8) needed by module composer:2:20220317110346:00000000.x86_64
Problem 2: conflicting requests
- nothing provides module(platform:el8) needed by module container-tools:rhel8:8060020211019153644:2e213529.x86_64
Problem 3: conflicting requests
- nothing provides module(platform:el8) needed by module httpd:2.4:8050020211112043353:b4937e53.x86_64
Problem 4: conflicting requests
- nothing provides module(platform:el8) needed by module mariadb:10.3:8030020210419150013:30b713e6.x86_64
Problem 5: conflicting requests
- nothing provides module(platform:el8) needed by module nginx:1.14:8000020211221191913:55190bc5.x86_64
Problem 6: conflicting requests
- nothing provides module(platform:el8) needed by module perl:5.26:8000020190628020724:55190bc5.x86_64
Problem 7: conflicting requests
- nothing provides module(platform:el8) needed by module perl-DBD-MySQL:4.046:8030020200716171139:3a70019f.x86_64
Problem 8: conflicting requests
- nothing provides module(platform:el8) needed by module perl-DBI:1.641:8030020200716150652:1e4bbb35.x86_64
Problem 9: conflicting requests
- nothing provides module(platform:el8) needed by module perl-IO-Socket-SSL:2.066:8040020200924212038:1aedcbfe.x86_64
Problem 10: conflicting requests
- nothing provides module(platform:el8) needed by module perl-libwww-perl:6.34:8040020211102170116:bf75fe78.x86_64
Problem 11: conflicting requests
- nothing provides module(platform:el8) needed by module php:remi-7.4:20220317110346:00000000.x86_64
Problem 12: conflicting requests
- nothing provides module(platform:el8) needed by module python36:3.6:8050020210825152031:982725ab.x86_64
Problem 13: conflicting requests
- nothing provides module(platform:el8) needed by module ruby:2.5:8050020210527144607:b4937e53.x86_64
Problem 14: conflicting requests
- nothing provides module(platform:el8) needed by module subversion:1.10:8030020210222042748:9ce6d490.x86_64
Problem 15: conflicting requests
- nothing provides module(platform:el8) needed by module varnish:6:8050020211109225449:b4937e53.x86_64
Problem 16: conflicting requests
- nothing provides module(platform:el8) needed by module virt:rhel:8060020220208213251:d63f516d.x86_64
Dependencies resolved.
Nothing to do.
Complete!
위에서 언급한 모든 패키지를 제거하고 다시 설치해 보았지만 아무 것도 변경되지 않았습니다. 계속하려면 무엇을 해야 할지 잘 모르겠습니다.
편집: rhc 패키지를 제거하고 위의 출력을 업데이트하여 내가 겪고 있는 충돌하는 요청 문제만 표시했습니다.
dnf modules list
다음은 모듈 목록입니다...
composer 2 [e] common Dependency Manager for PHP
container-tools rhel8 [e] common Most recent (rolling) versions of podman, buildah, skopeo, runc, conmon, runc,
conmon, CRIU, Udica, etc as well as dependencies such as container-selinux bu
ilt and tested together, and updated as frequently as every 12 weeks.
httpd 2.4 [e] common, Apache HTTP Server
devel, m
inimal
javapackages-runtime 201801 [e] common Basic runtime utilities to support Java applications
mariadb 10.3 [e] client, MariaDB Module
galera,
server
nginx 1.14 [e] common nginx webserver
perl 5.26 [e] common, Practical Extraction and Report Language
minimal
perl-DBD-MySQL 4.046 [e] common A MySQL interface for Perl
perl-DBI 1.641 [e] common A database access API for Perl
perl-IO-Socket-SSL 2.066 [e] common Perl library for transparent TLS
perl-libwww-perl 6.34 [e] common A Perl interface to the World-Wide Web
php remi-7.4 [e] common, PHP scripting language
devel, m
inimal
python36 3.6 [e] build, c Python programming language, version 3.6
ommon
ruby 2.5 [e] common An interpreter of object-oriented scripting language
subversion 1.10 [e] common, Apache Subversion
server
varnish 6 [e] common Varnish HTTP cache
virt rhel [e] common Virtualization module
이 목록에 있는 모든 모듈을 어떻게 제거할 수 있나요? 이렇게 하면 오류가 해결되고 CentOS 9 방식으로 원하는 것을 설치하면 됩니다.
답변1
버전 7에서 버전 8로 업그레이드하려면 leipp 프로젝트가 필요합니다. AlmaLinux 팀은 이를 여러 배포판에 적용하고 ELEvate라는 이름을 지정했지만 동일한 엔진과 원칙을 사용합니다. 버전 8에서 버전 9로의 업그레이드는 현재 지원되지 않으며 여러 가지 문제가 있습니다.
- CentOS Stream 9/RHEL 9/EuroLinux 9의 경우 RHEL 8은 매우 모듈식이므로(이 글을 쓰는 시점에서 사용 가능한 EL 9 버전임) 많은 모듈을 찾을 수 없습니다. 다음은 CentOS Stream 8과 CentOS Stream 9의 비교입니다.
CentOS 8 스트림 모듈:
[vagrant@localhost ~]$ yum module list
CentOS Stream 8 - AppStream 2.8 MB/s | 20 MB 00:07
CentOS Stream 8 - BaseOS 8.9 MB/s | 19 MB 00:02
CentOS Stream 8 - Extras 20 kB/s | 18 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 9.2 MB/s | 11 MB 00:01
Extra Packages for Enterprise Linux Modular 8 - x86_64 814 kB/s | 1.0 MB 00:01
Extra Packages for Enterprise Linux 8 - Next - x86_64 196 kB/s | 206 kB 00:01
CentOS Stream 8 - AppStream
Name Stream Profiles Summary
389-ds 1.4 389 Directory Server (base)
ant 1.10 [d] common [ Java build tool
d]
container-tools rhel8 [d] common [ Most recent (rolling) versions of podman, buildah, skopeo, runc, conmon, runc, conmon, CRIU, Udica, etc as well as dependencies such as contai
d] ner-selinux built and tested together, and updated as frequently as every 12 weeks.
container-tools 1.0 common [ Stable versions of podman 1.0, buildah 1.5, skopeo 0.1, runc, conmon, CRIU, Udica, etc as well as dependencies such as container-selinux built
d] and tested together, and supported for 24 months.
container-tools 2.0 common [ Stable versions of podman 1.6, buildah 1.11, skopeo 0.1, runc, conmon, etc as well as dependencies such as container-selinux built and tested
d] together, and supported as documented on the Application Stream lifecycle page.
container-tools 3.0 common [ Stable versions of podman 3.0, buildah 1.19, skopeo 1.2, runc, conmon, etc as well as dependencies such as container-selinux built and tested
d] together, and supported as documented on the Application Stream lifecycle page.
container-tools 4.0 common Most recent (rolling) versions of podman, buildah, skopeo, runc, conmon, runc, conmon, CRIU, Udica, etc as well as dependencies such as contai
ner-selinux built and tested together, and updated as frequently as every 12 weeks.
freeradius 3.0 [d] server [ High-performance and highly configurable free RADIUS server
d]
gimp 2.8 [d] common [ gimp module
d], deve
l
go-toolset rhel8 [d] common [ Go
d]
httpd 2.4 [d] common [ Apache HTTP Server
d], deve
l, minim
al
idm DL1 adtrust, The Red Hat Enterprise Linux Identity Management system module
client,
common
[d], dns
, server
idm client [d] common [ RHEL IdM long term support client module
d]
inkscape 0.92.3 [d] common [ Vector-based drawing program using SVG
d]
javapackages-runtime 201801 [d] common [ Basic runtime utilities to support Java applications
d]
jmc rhel8 [d] common [ Java Mission Control is a profiling and diagnostics tool for the Hotspot JVM
d], core
libselinux-python 2.8 common Python 2 bindings for libselinux
llvm-toolset rhel8 [d] common [ LLVM
d]
log4j 2 common Java logging library
mailman 2.1 [d] common [ Electronic mail discussion and e-newsletter lists managing software
d]
mariadb 10.3 [d] client, MariaDB Module
galera,
server [
d]
mariadb 10.5 client, MariaDB Module
galera,
server [
d]
maven 3.5 [d] common [ Java project management and project comprehension tool
d]
maven 3.6 common [ Java project management and project comprehension tool
d]
mercurial 4.8 [d] common [ Mercurial -- a distributed SCM
d]
mod_auth_openidc 2.3 Apache module suporting OpenID Connect authentication
mysql 8.0 [d] client, MySQL Module
server [
d]
nginx 1.14 [d] common [ nginx webserver
d]
nginx 1.16 common [ nginx webserver
d]
nginx 1.18 common [ nginx webserver
d]
nginx 1.20 common [ nginx webserver
d]
nodejs 10 [d] common [ Javascript runtime
d], deve
lopment,
minimal
, s2i
nodejs 12 common [ Javascript runtime
d], deve
lopment,
minimal
, s2i
nodejs 14 common [ Javascript runtime
d], deve
lopment,
minimal
, s2i
nodejs 16 common [ Javascript runtime
d], deve
lopment,
minimal
, s2i
parfait 0.5 common Parfait Module
perl 5.24 common [ Practical Extraction and Report Language
d], mini
mal
perl 5.26 [d][e] common [ Practical Extraction and Report Language
d], mini
mal
perl 5.30 common [ Practical Extraction and Report Language
d], mini
mal
perl 5.32 common [ Practical Extraction and Report Language
d], mini
mal
perl-App-cpanminus 1.7044 [d] common [ Get, unpack, build and install CPAN modules
d]
perl-DBD-MySQL 4.046 [d] common [ A MySQL interface for Perl
d]
perl-DBD-Pg 3.7 [d] common [ A PostgreSQL interface for Perl
d]
perl-DBD-SQLite 1.58 [d] common [ SQLite DBI driver
d]
perl-DBI 1.641 [d] common [ A database access API for Perl
d]
perl-FCGI 0.78 [d] common [ FastCGI Perl bindings
d]
perl-IO-Socket-SSL 2.066 [d][e] common [ Perl library for transparent TLS
d]
perl-YAML 1.24 [d] common [ Perl parser for YAML
d]
perl-libwww-perl 6.34 [d][e] common [ A Perl interface to the World-Wide Web
d]
php 7.2 [d] common [ PHP scripting language
d], deve
l, minim
al
php 7.3 common [ PHP scripting language
d], deve
l, minim
al
php 7.4 common [ PHP scripting language
d], deve
l, minim
al
php 8.0 common [ PHP scripting language
d], deve
l, minim
al
pki-core 10.6 PKI Core module for PKI 10.6 or later
pki-deps 10.6 PKI Dependencies module for PKI 10.6 or later
pmdk 1-fileformat-v6 Persistent Memory Development Kit (former NVML)
pmdk 1_fileformat_v6 Persistent Memory Development Kit (former NVML)
postgresql 9.6 client, PostgreSQL server and client module
server [
d]
postgresql 10 [d] client, PostgreSQL server and client module
server [
d]
postgresql 12 client, PostgreSQL server and client module
server [
d]
postgresql 13 client, PostgreSQL server and client module
server [
d]
python27 2.7 [d] common [ Python programming language, version 2.7
d]
python36 3.6 [d][e] build, c Python programming language, version 3.6
ommon [d
]
python38 3.8 [d] build, c Python programming language, version 3.8
ommon [d
]
python39 3.9 [d] build, c Python programming language, version 3.9
ommon [d
]
redis 5 [d] common [ Redis persistent key-value database
d]
redis 6 common [ Redis persistent key-value database
d]
rhn-tools 1.0 [d] common [ Red Hat Satellite 5 tools for RHEL
d]
ruby 2.5 [d] common [ An interpreter of object-oriented scripting language
d]
ruby 2.6 common [ An interpreter of object-oriented scripting language
d]
ruby 2.7 common [ An interpreter of object-oriented scripting language
d]
ruby 3.0 common [ An interpreter of object-oriented scripting language
d]
rust-toolset rhel8 [d] common [ Rust
d]
satellite-5-client 1.0 [d] common [ Red Hat Satellite 5 client packages
d], gui
scala 2.10 [d] common [ A hybrid functional/object-oriented language for the JVM
d]
squid 4 [d] common [ Squid - Optimising Web Delivery
d]
subversion 1.10 [d] common [ Apache Subversion
d], serv
er
subversion 1.14 common [ Apache Subversion
d], serv
er
swig 3.0 [d] common [ Connects C/C++/Objective C to some high-level programming languages
d], comp
lete
swig 4.0 common [ Connects C/C++/Objective C to some high-level programming languages
d], comp
lete
varnish 6 [d] common [ Varnish HTTP cache
d]
virt rhel [d][e] common [ Virtualization module
(...)
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
CentOS Stream 9 모듈:
[vagrant@localhost ~]$ sudo yum module list
CentOS Stream 9 - BaseOS 2.7 MB/s | 5.6 MB 00:02
CentOS Stream 9 - AppStream 4.3 MB/s | 12 MB 00:02
Last metadata expiration check: 0:00:01 ago on Thu 17 Mar 2022 03:34:29 PM UTC.
(...) THERE IS NOTHING
CentOS Stream 9에서 모듈을 사용할 수 있습니다., 그러나 현재 [2022년 3월 17일] AppStream 리포지토리에서는 아무것도 찾을 수 없습니다.-http://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/repodata/- 모듈식 데이터 파일이 없습니다.
- 또 다른 큰 문제는 RHEL 9가 SQLite를 사용하는 반면 RHEL 8은 Berkeley DB를 RPM의 백엔드로 사용한다는 것입니다.https://fedoraproject.org/wiki/Changes/Sqlite_Rpmdb
전체적으로 -> CentOS Stream 8 및 CentOS Stream 9에서 마이그레이션하기 위해 서두르지 마십시오. Red Hat이 일부 마이그레이션 스크립트를 생성한 경우(아마도 LEApp을 기반으로 함)https://leapp.readthedocs.io/en/latest/) 그러면 가능하고 반복 가능하며 유지 관리가 가능합니다.
답변2
내 경우에는 다음과 같이 할 수 있습니다.sudo yum module reset <erroring module(s)>
Last metadata expiration check: 0:19:11 ago on Wed 24 Apr 2024 04:09:54 PM CEST.
Modular dependency problems:
Problem 1: conflicting requests
- nothing provides module(platform:el8) needed by module javapackages-tools:201801:8050020210907194719:79ce6533.x86_64 from @modulefailsafe
Problem 2: conflicting requests
- nothing provides module(platform:el8) needed by module mariadb:10.3:8030020210419150013:30b713e6.x86_64 from @modulefailsafe
Problem 3: conflicting requests
- nothing provides module(platform:el8) needed by module mysql:8.0:8040020210901180257:9f9e2e7e.x86_64 from @modulefailsafe
Problem 4: conflicting requests
- nothing provides module(platform:el8) needed by module nginx:1.14:8000020211221191913:55190bc5.x86_64 from @modulefailsafe
Problem 5: conflicting requests
- nothing provides module(platform:el8) needed by module perl:5.26:8000020190628020724:55190bc5.x86_64 from @modulefailsafe
Problem 6: conflicting requests
- nothing provides module(platform:el8) needed by module perl-IO-Socket-SSL:2.066:8040020200924212038:1aedcbfe.x86_64 from @modulefailsafe
Problem 7: conflicting requests
- nothing provides module(platform:el8) needed by module perl-libwww-perl:6.34:8040020211102170116:bf75fe78.x86_64 from @modulefailsafe
Problem 8: conflicting requests
- nothing provides module(platform:el8) needed by module python27:2.7:8080020230117193612:ba5e661a.x86_64 from @modulefailsafe
Problem 9: conflicting requests
- nothing provides module(platform:el8) needed by module python36:3.6:8050020210825152031:982725ab.x86_64 from @modulefailsafe
Problem 10: conflicting requests
- nothing provides module(platform:el8) needed by module subversion:1.10:8070020220711155714:78111232.x86_64 from @modulefailsafe
다음 명령을 사용하여 복구하십시오.
sudo yum module reset javapackages-tools mariadb mysql nginx perl perl-IO-Socket-SSL perl-libwww-perl python27 python36 subversion