"python-devel version is too low for system upgrade" error during SMC migration

更新时间:
复制 MD 格式

If the python-devel version is too low for system upgrade error occurs during Linux migration with Server Migration Center (SMC), update the python-devel package on the source server and retry the migration.

Problem description

When you use SMC to migrate a Linux operating system, the following error message appears:

python-devel version is too low for system upgrade

Cause

The python-devel package on the source server is outdated and incompatible with the system upgrade.

Solution

Update the python-devel package on the source server, then retry the migration.

  1. Connect to the source server. For more information, see Connect to an instance.

  2. Run the appropriate command for your distribution to update the python-devel package: CentOS, RHEL 7, Alibaba Cloud Linux 2 (yum): RHEL 8+, Fedora, Alibaba Cloud Linux 3 (dnf): Debian, Ubuntu (apt): SUSE, openSUSE (zypper):

       sudo yum update python-devel
       sudo dnf update python-devel
       sudo apt-get install --only-upgrade python-dev
       sudo zypper update python-devel
  3. Verify that the update succeeded: RPM-based distributions (CentOS, RHEL, Alibaba Cloud Linux, SUSE): Debian/Ubuntu: Confirm that the output shows an updated version of the package.

       rpm -qa | grep python-devel
       dpkg -l | grep python-dev
  4. Run the SMC client and retry the migration job. For more information, see Run the SMC client.

What to do if the update fails

If the update command fails, try the following:

  • Repository unreachable: Verify that the source server has internet access and that the package repository is correctly configured. Run yum repolist (or the equivalent for your package manager) to check available repositories.

  • Package conflicts: Run sudo yum check (or the equivalent) to identify dependency conflicts, and resolve them before retrying the update.

  • Insufficient permissions: Make sure you run the command with sudo or as the root user.

If the issue persists, contact Alibaba Cloud technical support.