To help we need more information. How did you attempt to upgrade from 4.0 to 4.1? Did you follow these instructions?
Post-edit: Looking at the error output I would start problem solving by copying this line:
and doing an internet search. Such a search will return plenty of results and some of them relate to upgrading python and some package like a python-dnf package missing. If that is the case you probably can fix this by manually downloading the package and installing it with rpm. To see what dnf related packages are installed is simple, just run this command ‘rpm -qa | grep dnf’ and post the results here as code (</> icon). This is from a working hardware OM Lx 4.1 system fully upgraded:
In OM Lx dnfdragora or Discover do not have capability to do a distribution upgrade so that was never going to work. Can not use them to upgrade from one OM Lx version to another.
Problems like “My dnf is broken” usually involve a GUI package manager being used.
Notice any difference between your list and my list? This might work >>>I would start with going to main/release repository and download .rpm’s for dnf, python-dnf, dnf-conf, dnf-yum, dnf-automatic, and lib64dnf2 and try to install them with rpm. If rpm complains of any other dependency then download those and add them to the list until you can get them all to install without error.
To make installing those easier create a folder (say RPMS) and download all the .rpm’s to that folder then open Konsole and cd to that folder and install them with one command:
$ mkdir RPMS
then download the .rpm’s to this folder and:
$ cd RPMS
$ sudo rpm -Uhv *.rpm
If the result is an error about a missing dependency then download that package and add it to the list and keep on until the command is successful without any error.
Or you can do a fresh install of OM Lx 4.1 > this might be easier.
Hello BEN,
What versions must be the .rpm packages to install? Higher than those already in the system, do I have to remove them from the system first?
First I will try to install these packages, if the installation fails, I will install the omv4.1 version.
[root@st-korek skorek]# dnf repolist
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/usr/lib/python3.8/site-packages/dnf/__init__.py", line 30, in <module>
import dnf.base
File "/usr/lib/python3.8/site-packages/dnf/base.py", line 31, in <module>
from dnf.comps import CompsQuery
File "/usr/lib/python3.8/site-packages/dnf/comps.py", line 27, in <module>
from dnf.exceptions import CompsError
File "/usr/lib/python3.8/site-packages/dnf/exceptions.py", line 22, in <module>
import dnf.util
File "/usr/lib/python3.8/site-packages/dnf/util.py", line 30, in <module>
import dnf.callback
File "/usr/lib/python3.8/site-packages/dnf/callback.py", line 22, in <module>
import dnf.yum.rpmtrans
File "/usr/lib/python3.8/site-packages/dnf/yum/rpmtrans.py", line 26, in <module>
import rpm
ModuleNotFoundError: No module named 'rpm'
Hello BEN,
I installed all the packages that the system required and there is still a problem with dnfdragor.
[root@st-korek skorek]# dnfdragora
Traceback (most recent call last):
File "/usr/bin/dnfdragora", line 47, in <module>
from gi.repository import GLib
ModuleNotFoundError: No module named 'gi'
I would suggest at this point for you to do a fresh install.
I do not recommend using dnfdragora or Discover or any GUI package manager for upgrading system in OpenMandriva. Doing system upgrades from command line is very easy and saves time in the long run. Another benefit is user tends to start learning some things that keep them from breaking things.