Questo contenuto non è disponibile nella lingua selezionata.
Chapter 7. Troubleshooting
After the RHEL 6 to RHEL 7 and RHEL 7 to RHEL 8 in-place upgrade, you might encounter package-related issues. You can troubleshoot and resolve many of these issues using the steps below.
7.1. Ensuring that installed packages match the current major RHEL version Copia collegamentoCollegamento copiato negli appunti!
Ensure that only packages are installed that have been built for the currently installed major RHEL version:
To display installed packages for a different major RHEL version:
On RHEL 7, enter:
rpm -qa | grep -e '\.el6' | grep -vE '^(gpg-pubkey|katello-ca-consumer)' | sort
# rpm -qa | grep -e '\.el6' | grep -vE '^(gpg-pubkey|katello-ca-consumer)' | sortCopy to Clipboard Copied! Toggle word wrap Toggle overflow On RHEL 8, enter:
rpm -qa | grep -e '\.el[67]' | grep -vE '^(gpg-pubkey|libmodulemd|katello-ca-consumer)' | sort
# rpm -qa | grep -e '\.el[67]' | grep -vE '^(gpg-pubkey|libmodulemd|katello-ca-consumer)' | sortCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Remove or replace the packages reported in the previous step, because they are not supported. For details see the Can I install packages from different versions of RHEL? document.
If the command in the previous step did not display any output, all installed packages were built for the installed major RHEL version and no further actions are required.
After performing the in-place upgrade to RHEL 8, remove the
kernel-workaroundpackage:yum -y remove kernel-workaround
# yum -y remove kernel-workaroundCopy to Clipboard Copied! Toggle word wrap Toggle overflow
7.2. Fixing dependency errors Copia collegamentoCollegamento copiato negli appunti!
After an in-place upgrade, it is possible that packages are installed while some of their dependencies have been removed by the upgrade tool. To solve this problem:
Identify dependencies errors:
yum check dependencies
# yum check dependenciesCopy to Clipboard Copied! Toggle word wrap Toggle overflow If the command displays no output, no further actions are required.
-
To fix dependency errors, reinstall the affected packages. During this operation, the
yumutility automatically installs missing dependencies. If the required dependencies are not available in the repositories, install these packages manually.
7.3. Installing missing packages after upgrading to RHEL 7 Copia collegamentoCollegamento copiato negli appunti!
If you miss certain packages after the upgrade from RHEL 6 to RHEL 7, you probably did not provide a repository to the Red Hat Upgrade Tool that contained these packages. To install these packages after the upgrade, you can use, for example, the following commands:
cd /root/preupgrade bash noauto_postupgrade.d/install_rpmlist.sh kickstart/RHRHEL7rpmlist_kept
# cd /root/preupgrade
# bash noauto_postupgrade.d/install_rpmlist.sh kickstart/RHRHEL7rpmlist_kept
Note that different issues can prevent installing the RPMs. In this case, resolve the problems. For further details about other files with lists of packages you should install on the upgraded system, see the /root/preupgrade/kickstart/README file and the pre-upgrade report.
7.4. Known issues Copia collegamentoCollegamento copiato negli appunti!
For known issues when upgrading:
-
From RHEL 6 to RHEL 7, see the Known issues section in the
Upgrading from RHEL 6 to RHEL 7documentation -
From RHEL 7 to RHEL 8, see the known issues section in the
Upgrading from RHEL 7 to RHEL 8documentation