Software⏱️ 3 min read📅 2026-06-15

How to Fix: couldn't upgrade to fedora due to error "nothing provides python3.8dist(python-magic)"

Error fixing for Fedora upgrade issue with python3.8dist(python-magic) dependency.

Quick Answer: Try installing the 'python3-magic' package to resolve the error.

The error 'nothing provides python3.8dist(python-magic)' is encountered when attempting to upgrade Fedora to a newer version, specifically in this case, Fedora 32. This issue affects users who are trying to install or update packages that depend on Python 3.8 and the python-magic package.

This error can be frustrating as it prevents the user from completing their system updates or installing new software. However, by following the steps outlined below, you should be able to resolve this issue and continue with your Fedora upgrade process.

💡 Why You Are Getting This Error

  • The primary reason for this error is that the python3.8dist package, which includes the python-magic module, is not available in the default repositories for Fedora 32. This is likely due to the fact that Python 3.8 is no longer actively maintained and supported by the Fedora community.
  • An alternative cause could be that the system's package cache or repository configuration is outdated or corrupted, leading to missing dependencies.

✅ Best Solutions to Fix It

Enabling EPEL Repository

  1. Step 1: Open a terminal and run the command `sudo dnf install epel-release` to enable the Extra Packages for Enterprise Linux (EPEL) repository. This repository provides additional packages, including Python 3.8, which can help resolve the issue.
  2. Step 2: Once the installation is complete, run `sudo dnf update -y` to refresh the package list and ensure that all available updates are installed.
  3. Step 3: Try installing the lutris package again using `sudo dnf install lutris-0.5.8-1.fc32.x86_64` to see if the issue is resolved.

Installing Python 3.8 from Source

  1. Step 1: Download the Python 3.8 source code using `wget https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tgz`.
  2. Step 2: Extract the tarball using `tar -xvf Python-3.8.6.tgz` and navigate to the extracted directory using `cd Python-3.8.6`.
  3. Step 3: Run the installation script using `./configure --enable-optimizations && make && sudo make install`. This will install Python 3.8 on your system, but be aware that this method may require additional configuration steps.

✨ Wrapping Up

By enabling the EPEL repository or installing Python 3.8 from source, you should be able to resolve the 'nothing provides python3.8dist(python-magic)' error and continue with your Fedora upgrade process. If you encounter any further issues, consider seeking assistance from a Linux community forum or online resource.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions