Problem of upgrading from Fedora31 to 32

I have 2 notebooks, they are the same:
The first notebook, I used:

sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --releasever=32
sudo dnf system-upgrade reboot
It was OK.

But the second one, I also did the same. But the upgrading failed:

[root@localhost rtl8821ce]# sudo dnf upgrade --refresh
Fedora Modular 31 - x86_64 8.4 kB/s | 6.7 kB 00:00
Fedora Modular 31 - x86_64 - Updates 2.5 kB/s | 5.9 kB 00:02
Fedora 31 - x86_64 - Updates 5.9 kB/s | 3.7 kB 00:00
Fedora 31 - x86_64 - Updates 20 kB/s | 433 kB 00:21
Fedora 31 - x86_64 9.5 kB/s | 6.8 kB 00:00
Dependencies resolved.
Nothing to do.
Complete!
[root@localhost rtl8821ce]# sudo dnf install dnf-plugin-system-upgrade
Last metadata expiration check: 0:00:30 ago on Wed 29 Apr 2020 03:45:12 PM +07.
Package python3-dnf-plugin-system-upgrade-4.0.10-1.fc31.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@localhost rtl8821ce]# sudo dnf system-upgrade download --releasever=32
Before you continue ensure that your system is fully upgraded by running ā€œdnf --refresh upgradeā€. Do you want to continue [y/N]: y
Fedora Modular 32 - x86_64 6.0 kB/s | 4.7 kB 00:00
Fedora Modular 32 - x86_64 - Updates 26 kB/s | 5.9 kB 00:00
Fedora 32 - x86_64 - Updates 6.7 kB/s | 3.7 kB 00:00
Fedora 32 - x86_64 - Updates 457 kB/s | 433 kB 00:00
Fedora 32 - x86_64 9.0 kB/s | 4.8 kB 00:00
Error:
Problem: package python2-beautifulsoup4-4.9.0-1.fc31.noarch requires python2-lxml, but none of the providers can be installed

  • python2-lxml-4.4.0-1.fc31.x86_64 does not belong to a distupgrade repository
  • problem with installed package python2-beautifulsoup4-4.9.0-1.fc31.noarch
    (try to add ā€˜ā€“skip-brokenā€™ to skip uninstallable packages)
    [root@localhost rtl8821ce]# sudo dnf system-upgrade download --releasever=32 --skip-broken
    Before you continue ensure that your system is fully upgraded by running ā€œdnf --refresh upgradeā€. Do you want to continue [y/N]: y
    Fedora Modular 32 - x86_64 3.1 kB/s | 4.7 kB 00:01
    Fedora Modular 32 - x86_64 - Updates 15 kB/s | 5.9 kB 00:00
    Fedora 32 - x86_64 - Updates 6.7 kB/s | 3.7 kB 00:00
    Fedora 32 - x86_64 - Updates 39 kB/s | 433 kB 00:11
    Fedora 32 - x86_64 7.5 kB/s | 4.8 kB 00:00
    Error:
    Problem: package python2-beautifulsoup4-4.9.0-1.fc31.noarch requires python2-lxml, but none of the providers can be installed
  • python2-lxml-4.4.0-1.fc31.x86_64 does not belong to a distupgrade repository
  • problem with installed package python2-beautifulsoup4-4.9.0-1.fc31.noarch
    [root@localhost rtl8821ce]#

Help me please !

1 Like

Since Python 2 is now EOL, the Fedora community has been dropping support for it. Thatā€™s why python-lxml does not have a python2 package anymore:

https://src.fedoraproject.org/rpms/python-lxml/c/d39bc4a9d1186b9041887f2ca69b34b5a4c76be9?branch=master

The simplest thing to do is to remove these packages, and upgrade. If you still need python2, itā€™s best to use the python27 package to set up a virtual environment for yourself now.

3 Likes

Sorry Sir,
I do not use Python.
How could I do in order to run

sudo dnf system-upgrade download --releasever=32

smoothly ?

1 Like

Remove the two packages that are causing trouble:

sudo dnf remove python2-lxml python2-beautifulsoup4

then reattempt the upgrade. It should proceed without issues.

3 Likes

Khob Khun Krub.

Now they are upgrading by downloading 1510 files.

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.