Hi ! I upgraded my fedora 28 to 29.
(I did follow Upgrading Fedora 29 to Fedora 30 - Fedora Magazine but changed --releasever=30 to 29, was this correct ?)
My packages seems to have upgraded sucessfully e.g I am on linux 5.2.
BUT DNF IS BROKEN:
it always output
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/usr/lib/python3.7/site-packages/dnf/__init__.py", line 27, in <module>
from dnf.const import VERSION
File "/usr/lib/python3.7/site-packages/dnf/const.py", line 22, in <module>
import distutils.sysconfig
ModuleNotFoundError: No module named 'distutils'
I donât know what to do!
but hey I felt adventurous, so I commented the use of distutils in const.py (dnf code !)
but it show (create ?) this new error:
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/usr/lib/python3.7/site-packages/dnf/__init__.py", line 30, in <module>
import dnf.base
File "/usr/lib/python3.7/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
ModuleNotFoundError: No module named 'libdnf'
I did try to reinstall dnf with:
rpm --reinstall python3-dnf-xxxxxx.rpm
``` for pyhton 3 and 2 of https://koji.fedoraproject.org/koji/buildinfo?buildID=1319774
My PC can't update until someone save my day.
You can search the packages and get the download links here: https://fedora.pkgs.org/
You need the latest package versions from the updates repository.
thanks, I did this that was epic ^^
And⊠it WORKS ! Through a zsh alias (is that a symlink ?) I can now use dnf (dnf-2 actually) so thank your for everything!
BUT I would like to have dnfagora (dnf GUI) to work again, how can I tell to dnfagora to use /usr/bin/dnf-2 instead of 3 ??
well thank you again for the effort, but my dnf-3 is still broken after applying your commands with dnf2
output:
/usr/bin/dnf-3
Traceback (most recent call last):
File "/usr/bin/dnf-3", line 57, in <module>
from dnf.cli import main
File "/usr/lib/python3.7/site-packages/dnf/__init__.py", line 27, in <module>
from dnf.const import VERSION
File "/usr/lib/python3.7/site-packages/dnf/const.py", line 22, in <module>
import distutils.sysconfig
ModuleNotFoundError: No module named 'distutils'
So, your upgrade didnât go through properly. A complete upgrade would not have caused this. Even though youâve got dnf-2 working, your system is not in a correct state.
Can you please paste the output of:
rpm -qa \*python\*
We want to look at ALL the python packages you have installed. Then we can compare it with a correct, complete installation. That will give us some ideas on whatâs missing.
Can you also paste the output of:
fpaste --sysinfo --printonly
Thatâll give us some general information about your installation.
Here too, weâve not really established why this module is not found by dnf yetâand it still doesnât work.
Itâs a core python module which indicates some major issues with the installation.
So we really shouldnât suggest fixes yet. Letâs understand what the issue is first, and then suggest fixes. This applies to all issues. Please DO NOT suggest fixes just for the sake of getting it to workâit could make things worse if the issue has not been understood to begin with.
This is the right order of doing things:
see error message
get more information on issue
isolate cause of issue
suggest fixes to treat core issue
Not:
see error message,
suggest fix âto get things workingâ without confirming what is causing the error.
The error is merely a symptom. Correcting or working around it is not enoughâas you can see here. Let us be more careful from now on.
Sorry @vgaetera, this isnât meant directly for you but as a general comment. Iâll write it up as a separate announcement post when I find the time. In general, folks helping on the forum should explain what they are saying and why so that the reporter has a clear idea of what may be wrong and what steps are being followed to fix it.
The idea is that this shouldâve been the first reply, before anything else was suggested. Letâs wait for @help666 to provide more information before we provide any more suggestions now.
Anyone is free to join the this discussion, but nobody suggested anything better for 3+ days.
Take into account that time is the most important resource for some people.
It may take several days to solve the original issue and not everyone is ready to wait for so long with no working package manager.
Meanwhile we can temporary mitigate the problem using dnf-2 and continue the troubleshooting.
But if we strictly follow the general algorithm, the troubleshooting becomes harder and we have no fallback instruments.
@FranciscoD, please, be more lenient, this is not a bug tracker and we are not some employed workers.
In my opinion, anyone is free to speak as long as it complies with the guidelines of the forum.
Too much regulation may negatively affect the community.