1、报错
============================================================UPGRADE INHIBITED
============================================================Upgrade has been inhibited due to the following problems:1. Inhibitor: Possible problems with remote login using root account#解决
sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_configgrep PermitRootLogin /etc/ssh/sshd_configsystemctl restart sshd
============================================================UPGRADE INHIBITED
============================================================Upgrade has been inhibited due to the following problems:1. Inhibitor: A YUM/DNF repository defined multiple times
Consult the pre-upgrade report for details and possible remediation.============================================================UPGRADE INHIBITED
============================================================#解决方案
cd /etc/yum.repos.d删除多余的仓库地址.repo
内核
============================================================UPGRADE INHIBITED
============================================================Upgrade has been inhibited due to the following problems:1. Inhibitor: Newest installed kernel not in use
Consult the pre-upgrade report for details and possible remediation.============================================================UPGRADE INHIBITED
============================================================#查看Linux内核版本,删除其他
uname -rrpm -qa |grep kernelkernel-tools-libs-3.10.0-1160.80.1.el7.x86_64
kernel-3.10.0-1160.41.1.el7.x86_64
kernel-tools-3.10.0-1160.80.1.el7.x86_64
kernel-3.10.0-1160.49.1.el7.x86_64
kernel-3.10.0-1160.59.1.el7.x86_64
kernel-3.10.0-1160.36.2.el7.x86_64
kernel-3.10.0-1160.80.1.el7.x86_64
kernel-lt-5.4.163-1.el7.elrepo.x86_64
kernel-headers-3.10.0-1160.80.1.el7.x86_64yum -y remove kernel-tools-libs-3.10.0-1160.80.1.el7.x86_64
yum -y remove lt-5.4.163-1.el7.elrepo.x86_64
yum -y remove kernel-tools-3.10.0-1160.80.1.el7.x86_64
yum -y remove kernel-3.10.0-1160.49.1.el7.x86_64
yum -y remove kernel-3.10.0-1160.59.1.el7.x86_64
yum -y remove kernel-3.10.0-1160.36.2.el7.x86_64
yum -y remove kernel-3.10.0-1160.80.1.el7.x86_64
yum -y remove kernel-headers-3.10.0-1160.80.1.el7.x86_64rpm -qa |grep kernel#我的是内核版本过高,我降低内核版本
cat /boot/grub2/grub.cfg |grep ^menuentry
grub2-set-default 'CentOS Linux (3.10.0-1160.80.1.el7.x86_64) 7 (Core)'
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
ERRORS
============================================================2024-03-08 13:14:13.681859 [ERROR] Actor: dnf_transaction_check
Message: DNF execution failed with non zero exit code.
STDOUT:
Docker CE Stable - x86_64 0.0 B/s | 0 B 01:20 STDERR:
Failed to create directory /var/lib/leapp/el8userspace//sys/fs/selinux: Read-only file system
Failed to create directory /var/lib/leapp/el8userspace//sys/fs/selinux: Read-only file system
No matches found for the following disable plugin patterns: subscription-manager
Repository epel is listed more than once in the configuration
Errors during downloading metadata for repository 'docker-ce-stable-migrate':- Curl error (6): Couldn't resolve host name for https://mirrors.aliyun.com/docker-ce/linux/centos/8/x86_64/stable/repodata/repomd.xml [Could not resolve host: mirrors.aliyun.com]
Error: Failed to download metadata for repo 'docker-ce-stable-migrate': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were triedrm -rf /etc/yum.repos.d/epel.reporm -rf /etc/yum.repos.d/epel-testing.repocat > /etc/leapp/files/leapp_upgrade_repositories.repo <<-'EOF'
[anolis_baseos]
name=anolis baseos
baseurl=http://192.168.1.5/anolis/8.8/BaseOS/$basearch/os
gpgcheck=0[anolis_appstream]
name=anolis appstream
baseurl=http://192.168.1.5/anolis/8.8/AppStream/$basearch/os
gpgcheck=0[anolis_powertools]
name=anolis powertools
baseurl=http://192.168.1.5/anolis/8.8/PowerTools/$basearch/os
gpgcheck=0[anolis_highavailability]
name=anolis highavailability
baseurl=http://192.168.1.5/anolis/8.8/HighAvailability/$basearch/os
gpgcheck=0[anolis_plus]
name=anolis plus
baseurl=http://192.168.1.5/anolis/8.8/Plus/$basearch/os
gpgcheck=0
enabled=1[anolis_extras]
name=anolis extras
baseurl=http://192.168.1.5/anolis/8.8/Extras/$basearch/os
enabled=1
gpgcheck=0[anolis_baseos-debug]
name=anolis baseos debug
baseurl=http://192.168.1.5/anolis/8.8/BaseOS/$basearch/debug
gpgcheck=0
enabled=0[anolis_appstream-debug]
name=anolis appstream debug
baseurl=http://192.168.1.5/anolis/8.8/AppStream/$basearch/debug
gpgcheck=0
enabled=0[anolis_powertools-debug]
name=anolis powertools debug
baseurl=http://192.168.1.5/anolis/8.8/PowerTools/$basearch/debug
gpgcheck=0
enabled=0[anolis_highavailability-debug]
name=anolis highavailability debug
baseurl=http://192.168.1.5/anolis/8.8/HighAvailability/$basearch/debug
gpgcheck=0
enabled=0[anolis_plus-debug]
name=anolis plus debug
baseurl=http://192.168.1.5/anolis/8.8/Plus/$basearch/debug
gpgcheck=0
enabled=0[anolis_extras-debug]
name=anolis extras debug
baseurl=http://192.168.1.5/anolis/8.8/Extras/$basearch/debug
enabled=0
gpgcheck=0EOF
============================================================