My dnf is broken, please help!

No, I disagree here. Even if no one responded for 3 days, that does not mean suggesting half-baked fixes. We have not mitigated the problem—the problem still exists. We’ve merely installed a parallel version of dnf now that allows some partial functionality. The rest of the system is still broken.

Even if users are not happy to wait, we must give them the choice. Which is why I suggest that we explain the issue to them and discuss what the possible ways of solving it are. So, we say something on the lines of “well, the distutils error requires more debugging but in the meantime, you can at least use a dnf-2 version to work with packages”. That makes it abundantly clear to the user that the suggestions are not fixes. It also gives them the opportunity to say “OK, what do we need to do to fix the distutils error?”.

No, you misunderstand. This is not regulation—this is a suggestion on how to go about debugging and diagnosing issues effectively. No one here is paid, not even me, but that does not mean we are not accountable for what we say here. By following what you call the “general algorithm”, you ensure that you gain enough information to make the suggested fix more likely to be correct.

4 Likes

My initial idea was to troubleshoot and temporary workaround the issue with dnf-2.
It should be able to isolate the issue to system-wide or dnf-3-specific as well as find package duplicates, collisions, conflicting repositories and other similar problems which may be the root cause of the issue.
I admit the possibility of a better troubleshooting method, but it doesn’t mean the initial approach is completely wrong.

To give a choice requires to see it yourself and understand its effectiveness.
I’m not sure how to effectively perform all the related diagnostics using just rpm.
However, the troubleshooting methods are not set in stone and anyone can propose a better way which other members are free to adopt.

1 Like

Make a backup and install Fedora from scratch… I had the same problem a few years ago. I solved the problem installing the dependencies step by step, but I wasted time. Do not waste your time. I think Fedora should have a protection system to restore minimum dnf…

Sorry for the delay and thank you for the help!

output from the first command:

python3-kickstart-3.16-1.fc29.noarch
python2-dbus-1.2.8-3.fc29.x86_64
python3-coverage-4.5.1-3.fc29.x86_64
python2-ptyprocess-0.6.0-2.fc29.noarch
python3-idna-2.7-3.fc29.noarch
python3-pymongo-3.7.2-1.fc29.x86_64
python3-dnfdaemon-0.3.19-4.fc29.noarch
python3-pygame-1.9.4-4.fc29.x86_64
python3-requests-2.20.0-1.fc29.noarch
python3-blockdev-2.22-1.fc29.x86_64
cairo-dock-python2-3.4.1-23.fc29.noarch
python3-slip-dbus-0.6.4-12.fc29.noarch
python3-systemd-234-7.fc29.x86_64
python3-dateutil-2.7.5-1.fc29.noarch
python3-wrapt-1.10.11-5.fc29.x86_64
python3-javapackages-5.3.0-1.fc29.noarch
python2-ipaddr-2.1.10-11.fc29.noarch
python3-pyudev-0.21.0-8.fc29.noarch
python3-curses_ex-0.3-11.fc29.x86_64
python2-pysocks-1.6.8-4.fc29.noarch
python2-crypto-2.6.1-24.fc29.x86_64
python3-devel-3.7.4-1.fc29.x86_64
python3-librepo-1.10.5-1.fc29.x86_64
python3-jsonschema-2.6.0-6.fc29.noarch
python3-pycparser-2.14-15.fc29.noarch
python2-libs-2.7.16-2.fc29.x86_64
python2-ipaddress-1.0.18-5.fc29.noarch
python3-cached_property-1.5.1-1.fc29.noarch
python3-dnf-plugins-extras-common-4.0.4-1.fc29.noarch
python3-cssselect-0.9.2-9.fc29.noarch
boost-python2-1.66.0-14.fc29.x86_64
python3-enchant-2.0.0-5.fc29.noarch
python2-pillow-5.3.0-1.fc29.x86_64
python2-lxml-4.2.5-1.fc29.x86_64
python3-pillow-5.3.0-1.fc29.x86_64
python3-argcomplete-1.9.5-1.fc29.noarch
python3-pyparted-3.11.0-17.fc29.x86_64
python3-humanize-0.5.1-14.fc29.noarch
python2-reportlab-3.4.0-9.fc29.x86_64
python-pip-wheel-18.1-1.fc29.noarch
python3-iniparse-0.4-32.fc29.noarch
python3-slip-0.6.4-12.fc29.noarch
gnome-python2-canvas-2.28.1-23.fc29.x86_64
python2-cairo-1.17.1-2.fc29.x86_64
python3-pyxdg-0.26-3.fc29.noarch
python3-docopt-0.6.2-10.fc29.noarch
python2-six-1.11.0-6.fc29.noarch
python3-html5lib-1.0.1-2.fc29.noarch
python3-pysocks-1.6.8-4.fc29.noarch
python3-rpm-4.14.2.1-2.fc29.x86_64
python3-dnf-plugins-core-4.0.7-1.fc29.noarch
python3-abrt-2.12.2-1.fc29.x86_64
python3-msgpack-0.5.6-5.fc29.x86_64
python3-hawkey-0.31.0-5.fc29.x86_64
python3-3.7.4-1.fc29.x86_64
python3-blivet-3.1.2-4.fc29.noarch
python-setuptools-wheel-40.8.0-1.fc29.noarch
python3-unbound-1.8.3-2.fc29.x86_64
python-unversioned-command-2.7.16-2.fc29.noarch
python3-urllib3-1.24.3-1.fc29.noarch
python3-texttable-1.4.0-1.fc29.noarch
python2-virtualenv-16.0.0-5.fc29.noarch
python3-policycoreutils-2.8-17.fc29.noarch
python3-certifi-2018.10.15-3.fc29.noarch
python3-libxml2-2.9.8-5.fc29.x86_64
python3-simpleline-1.4-1.fc29.noarch
python2-setuptools-40.8.0-1.fc29.noarch
python3-cffi-1.11.5-6.fc29.x86_64
python3-webencodings-0.5.1-6.fc29.noarch
python3-IPy-0.81-23.fc29.noarch
python2-chardet-3.0.4-7.fc29.noarch
python3-pid-2.2.3-1.fc29.noarch
python2-olefile-0.46-1.fc29.noarch
python3-libreport-2.10.1-1.fc29.x86_64
python3-greenlet-0.4.14-1.fc29.x86_64
python3-libselinux-2.8-6.fc29.x86_64
python2-libvirt-4.7.0-1.fc29.x86_64
policycoreutils-python-utils-2.8-17.fc29.noarch
python2-nose-1.3.7-21.fc29.noarch
python3-dmidecode-3.12.2-13.fc29.x86_64
python3-cangjie-1.2-16.fc29.x86_64
python3-argh-0.26.1-10.fc29.noarch
python3-olefile-0.46-1.fc29.noarch
python2-webencodings-0.5.1-6.fc29.noarch
python3-virtualenv-16.0.0-5.fc29.noarch
python2-trollius-2.1-9.fc29.noarch
python3-firewall-0.6.3-1.fc29.noarch
python2-cffi-1.11.5-6.fc29.x86_64
python-systemd-doc-234-7.fc29.x86_64
python2-devel-2.7.16-2.fc29.x86_64
python3-pyyaml-5.1-1.fc29.x86_64
python3-newt-0.52.20-12.fc29.x86_64
python2-futures-3.1.1-4.fc29.noarch
python-wheel-wheel-0.31.1-3.fc29.noarch
python3-cairo-1.17.1-2.fc29.x86_64
python3-meh-0.47-1.fc29.noarch
python3-ordered-set-2.0.2-7.fc29.noarch
python3-ply-3.9-8.fc29.noarch
python2-beautifulsoup4-4.6.3-1.fc29.noarch
python2-requests-2.20.0-1.fc29.noarch
python3-sssdconfig-2.2.0-3.fc29.noarch
python3-audit-3.0-0.9.20190507gitf58ec40.fc29.x86_64
python3-decorator-4.3.0-1.fc29.noarch
python2-rpm-macros-3-37.fc29.noarch
python3-pytoml-0.1.18-1.fc29.noarch
python3-html2text-2018.1.9-1.fc29.noarch
python3-libsemanage-2.8-8.fc29.x86_64
python3-distutils-extra-2.39-9.fc29.noarch
python3-gobject-3.30.5-1.fc29.x86_64
python3-canberra-0-0.18.git88c53cd.fc29.noarch
python3-cryptography-2.3-2.fc29.x86_64
python2-pyOpenSSL-19.0.0-1.fc29.noarch
python2-pwquality-1.4.0-10.fc29.x86_64
python2-pygame-1.9.4-4.fc29.x86_64
python2-msgpack-0.5.6-5.fc29.x86_64
python3-pwquality-1.4.0-10.fc29.x86_64
python3-requests-file-1.4.3-8.fc29.noarch
python3-pydbus-0.6.0-7.fc29.noarch
python2-gobject-base-3.30.5-1.fc29.x86_64
python3-libs-3.7.4-1.fc29.x86_64
python2-ply-3.9-8.fc29.noarch
python3-distro-1.3.0-4.fc29.noarch
python2-libselinux-2.8-6.fc29.x86_64
python2-html5lib-1.0.1-2.fc29.noarch
python2-gpg-1.12.0-1.fc29.x86_64
python2-cryptography-2.3-2.fc29.x86_64
python3-yui-1.1.2-12.fc29.x86_64
python3-dockerpty-0.4.1-12.fc29.noarch
python2-pexpect-4.6-1.fc29.noarch
python2-dnf-4.2.5-3.fc29.noarch
python2-hawkey-0.31.0-5.fc29.x86_64
gnome-python2-desktop-2.32.0-33.fc29.x86_64
python3-cups-1.9.72-22.fc29.x86_64
python3-libcomps-0.1.11-1.fc29.x86_64
python3-libvirt-4.7.0-1.fc29.x86_64
python3-dnf-plugin-system-upgrade-4.0.4-1.fc29.noarch
python3-dnf-4.2.5-3.fc29.noarch
python3-setools-4.1.1-13.fc29.x86_64
python3-ntplib-0.3.3-12.fc29.noarch
python3-pyasn1-0.3.7-4.fc29.noarch
python2-asn1crypto-0.24.0-5.fc29.noarch
python3-rpm-generators-6-1.fc29.noarch
python3-colorama-0.4.0-3.fc29.noarch
python3-bind-9.11.6-2.P1.fc29.noarch
python3-iscsi-initiator-utils-6.2.0.876-5.gitf3c8e90.fc29.x86_64
python3-pyOpenSSL-19.0.0-1.fc29.noarch
python2-catfish-1.4.5-1.fc29.2.noarch
python2-libcomps-0.1.11-1.fc29.x86_64
python-srpm-macros-3-37.fc29.noarch
python2-newt-0.52.20-12.fc29.x86_64
python3-pyparsing-2.2.0-3.fc29.noarch
python2-pycparser-2.14-15.fc29.noarch
python3-chardet-3.0.4-7.fc29.noarch
python3-lxml-4.2.5-1.fc29.x86_64
python2-virtualenv-api-2.1.16-5.fc29.noarch
python3-pycurl-7.43.0.2-3.fc29.x86_64
python3-six-1.11.0-6.fc29.noarch
python2-gobject-3.30.5-1.fc29.x86_64
python3-bytesize-2.1-1.fc29.x86_64
python2-scour-0.37-1.fc29.noarch
python3-docker-pycreds-0.3.0-3.fc29.noarch
python3-gpg-1.12.0-1.fc29.x86_64
python2-cssselect-0.9.2-9.fc29.noarch
python3-docker-3.5.0-1.fc29.noarch
python2-neovim-0.3.2-0.fc29.noarch
python3-numpy-1.15.1-1.fc29.x86_64
python2-urllib3-1.24.3-1.fc29.noarch
python3-pip-18.1-1.fc29.noarch
python2-2.7.16-2.fc29.x86_64
python3-abrt-addon-2.12.2-1.fc29.x86_64
python2-backports-ssl_match_hostname-3.5.0.1-10.fc29.noarch
python3-qt5-base-5.11.3-1.fc29.x86_64
python3-langtable-0.0.41-1.fc29.noarch
python2-numpy-1.15.1-1.fc29.x86_64
python3-bson-3.7.2-1.fc29.x86_64
python3-pytz-2018.5-1.fc29.noarch
python3-asn1crypto-0.24.0-5.fc29.noarch
python3-libdnf-0.31.0-5.fc29.x86_64
gnome-python2-gnomekeyring-2.32.0-33.fc29.x86_64
python2-idna-2.7-3.fc29.noarch
python2-pymongo-3.7.2-1.fc29.x86_64
python3-dbus-1.2.8-3.fc29.x86_64
python3-requests-ftp-0.3.1-13.fc29.noarch
python2-rpm-4.14.2.1-2.fc29.x86_64
python2-xpyb-1.3.1-11.fc28.x86_64
python3-beautifulsoup4-4.6.3-1.fc29.noarch
python2-libuser-0.62-18.fc29.x86_64
python2-talloc-2.1.14-2.fc29.x86_64
python2-pyyaml-5.1-1.fc29.x86_64
python3-pyqt5-sip-4.19.13-3.fc29.x86_64
python3-productmd-1.21-1.fc29.noarch
python3-augeas-0.5.0-13.fc29.noarch
python3-inotify-0.9.6-13.fc29.noarch
python3-websocket-client-0.53.0-1.fc29.noarch
python-rpm-macros-3-37.fc29.noarch
python2-setproctitle-1.1.10-9.fc29.x86_64
python2-bson-3.7.2-1.fc29.x86_64
python3-virtualenv-api-2.1.16-5.fc29.noarch
python2-greenlet-0.4.14-1.fc29.x86_64
python3-meh-gui-0.47-1.fc29.noarch
python2-enum34-1.1.6-7.fc29.noarch
python3-neovim-0.3.2-0.fc29.noarch
python-qt5-rpm-macros-5.11.3-1.fc29.noarch
python3-rpm-macros-3-37.fc29.noarch
python3-gobject-base-3.30.5-1.fc29.x86_64
python2-libdnf-0.31.0-5.fc29.x86_64
python3-setuptools-40.8.0-1.fc29.noarch
python2-libxml2-2.9.8-5.fc29.x86_64
gnome-python2-2.28.1-23.fc29.x86_64
python3-smartcols-0.3.0-4.fc29.x86_64
python2-backports-1.0-15.fc29.x86_64
python2-pip-18.1-1.fc29.noarch

then, output of:
fpaste --sysinfo --printonly:
=== fpaste 0.3.9.2 System Information (fpaste --sysinfo) ===
* OS Release (lsb_release -ds):
     "Fedora release 29 (Twenty Nine)"
     
* Kernel (uname -r ; cat /proc/cmdline):
     5.2.7-100.fc29.x86_64
     BOOT_IMAGE=/boot/vmlinuz-5.2.7-100.fc29.x86_64 root=UUID=1eaa1980-c923-4c6a-b734-55cb700244cc ro rhgb quiet LANG=en_US.utf8
     
* Desktop(s) Running (ps -eo comm= | grep -E '(gnome-session|startkde|startactive|xfce.?-session|fluxbox|blackbox|hackedbox|ratpoison|enlightenment|icewm-session|od-session|wmaker|wmx|openbox-lxde|openbox-gnome-session|openbox-kde-session|mwm|e16|fvwm|xmonad|sugar-session|mate-session|lxqt-session|cinnamon)' ):
     xfce4-session
     
* Desktop(s) Installed (ls -m /usr/share/xsessions/ | sed 's/\.desktop//g' ):
     i3, i3-with-shmlog, xfce
     
* SELinux Status (sestatus):
     SELinux status:                 enabled
     SELinuxfs mount:                /sys/fs/selinux
     SELinux root directory:         /etc/selinux
     Loaded policy name:             targeted
     Current mode:                   enforcing
     Mode from config file:          enforcing
     Policy MLS status:              enabled
     Policy deny_unknown status:     allowed
     Memory protection checking:     actual (secure)
     Max kernel policy version:      31
     
* SELinux Errors (without results: "selinuxenabled && journalctl --since yesterday |grep avc: | grep -Eo comm="[^ ]+" | sort |uniq -c |sort -rn"):
     N/A

* CPU Model (grep 'model name' /proc/cpuinfo | awk -F: '{print $2}' | uniq -c |
         sed -re 's/^ +//' ):
     4  Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
     
* 64-bit Support (grep -q ' lm ' /proc/cpuinfo && echo Yes || echo No):
     Yes
     
* Hardware Virtualization Support (grep -Eq '(vmx|svm)' /proc/cpuinfo && echo Yes || echo No):
     Yes
     
* Load average (uptime):
      16:02:07 up 28 min,  1 user,  load average: 1,00, 1,03, 0,89
     
* Memory usage (free -m):
                   total        used        free      shared  buff/cache   available
     Mem:           7869        2003        2397         288        3468        5293
     Swap:          2442           0        2442
     
* Top 5 CPU hogs (ps axuScnh | awk '$2!=5674' | sort -rnk3 | head -5):
         1000  2163 36.0  0.1 245124 10656 ?        S    15:34  10:03 xscreensaver
            0  1480 19.2  1.0 359072 88336 tty1     Ssl+ 15:33   5:27 Xorg
         1000  5533  8.3  1.1 809792 93836 ?        Sl   16:01   0:05 code
         1000  5420  7.3  2.1 1038532 171612 ?      Sl   16:01   0:04 code
         1000  4877  5.6  3.0 1080216 243960 ?      Sl   15:46   0:53 chrome
     
* Top 5 Memory hogs (ps axuScnh | sort -rnk4 | head -5):
         1000  4877  5.6  3.0 1080216 243960 ?      Sl   15:46   0:53 chrome
         1000  3851  3.9  3.2 939400 259084 ?       SLl  15:41   0:48 chrome
           27  1205  0.0  2.0 1233584 163800 ?      Ssl  15:33   0:01 mysqld
         1000  5420  7.3  2.1 1038532 171612 ?      Sl   16:01   0:04 code
         1000  2545  0.1  2.3 2098348 186356 ?      Sl   15:34   0:03 skypeforlinux
     
* Disk space usage (df -hT):
     Sys. de fichiers Type     Taille Utilisé Dispo Uti% Monté sur
     devtmpfs         devtmpfs   3,9G       0  3,9G   0% /dev
     tmpfs            tmpfs      3,9G     73M  3,8G   2% /dev/shm
     tmpfs            tmpfs      3,9G    1,5M  3,9G   1% /run
     tmpfs            tmpfs      3,9G       0  3,9G   0% /sys/fs/cgroup
     /dev/nvme0n1p6   ext4       348G    204G  127G  62% /
     tmpfs            tmpfs      3,9G     28K  3,9G   1% /tmp
     /dev/nvme0n1p2   vfat        96M     32M   65M  34% /boot/efi
     tmpfs            tmpfs      787M     12K  787M   1% /run/user/1000
     
* Block devices (without results: "blkid" AND "/sbin/blkid"):
     N/A

* PCI devices (lspci):
     00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
     00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
     00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
     00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
     00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
     00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
     00:1c.2 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #3 (rev f1)
     00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
     00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
     00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
     00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
     00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
     00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (4) I219-V (rev 21)
     3a:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
     3c:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961
     
* USB devices (lsusb):
     Bus 002 Device 002: ID 0bda:0316 Realtek Semiconductor Corp. 
     Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
     Bus 001 Device 003: ID 04f2:b5ab Chicony Electronics Co., Ltd 
     Bus 001 Device 002: ID 8087:0a2b Intel Corp. 
     Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
     
* DRM Information (journalctl -k -b | grep -o 'kernel:.*drm.*$' | cut -d ' ' -f 2- ):
     fb0: switching to inteldrmfb from EFI VGA
     [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
     [drm] Driver supports precise vblank timestamp query.
     [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
     [drm] Initialized i915 1.6.0 20190417 for 0000:00:02.0 on minor 0
     fbcon: i915drmfb (fb0) is primary device
     i915 0000:00:02.0: fb0: i915drmfb frame buffer device
     
* Xorg modules (grep LoadModule /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d \" -f 2 | xargs):
     glx modesetting fbdev vesa fbdevhw glamoregl fb libinput
     
* GL Support (glxinfo | grep -E "OpenGL version|OpenGL renderer"):
     OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) 
     OpenGL version string: 3.0 Mesa 18.3.6
     
* Xorg errors (grep '^\[.*(EE)' /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d ':' -f 2- ):
!!!!!!!!!! INFINITE (50000) SPAMMMMMMMMMMMMMMMMMMMMMMMM of the same error:
[    29.191] (EE) modeset(0): Failed to get GBM bo for flip to new front.
     [    29.191] (EE) modeset(0): present flip failed
     [    29.473] (EE) modeset(0): Failed to get GBM bo for flip to new front.
     [    29.473] (EE) modeset(0): present flip failed
     [    29.610] (EE) modeset(0): Failed to get GBM bo for flip to new front.
     [    29.610] (EE) modeset(0): present flip failed
     [    29.638] (EE) modeset(0): Failed to get GBM bo for flip to new front.
     [    29.638] (EE) modeset(0): present flip failed
     [    29.675] (EE) modeset(0): Failed to get GBM bo for flip to new front.
     [    29.675] (EE) modeset(0): present flip failed
     BUT I believe this is an unrelated error.
     GBM is for graphic memory and my screen or screen resfresher has some known (hardware?) issue, that precede the dnf issue

     then 
     * Kernel buffer tail (dmesg | tail):
     [   30.864615] Bluetooth: RFCOMM TTY layer initialized
     [   30.864622] Bluetooth: RFCOMM socket layer initialized
     [   30.864726] Bluetooth: RFCOMM ver 1.11
     [  545.382613] wlp58s0: authenticate with 34:2e:b6:2f:87:c7
     [  545.397260] wlp58s0: send auth to 34:2e:b6:2f:87:c7 (try 1/3)
     [  545.409768] wlp58s0: authenticated
     [  545.411307] wlp58s0: associate with 34:2e:b6:2f:87:c7 (try 1/3)
     [  545.417714] wlp58s0: RX AssocResp from 34:2e:b6:2f:87:c7 (capab=0x431 status=0 aid=3)
     [  545.421133] wlp58s0: associated
     [  545.471416] IPv6: ADDRCONF(NETDEV_CHANGE): wlp58s0: link becomes ready
     
* Last few reboots (last -x -n10 reboot runlevel):
     runlevel (to lvl 5)   5.2.7-100.fc29.x Fri Aug 30 15:34   still running
     reboot   system boot  5.2.7-100.fc29.x Fri Aug 30 17:33   still running
     runlevel (to lvl 5)   5.2.7-100.fc29.x Wed Aug 21 16:55 - 00:17  (07:21)
     reboot   system boot  5.2.7-100.fc29.x Wed Aug 21 18:55 - 00:17  (05:22)
     runlevel (to lvl 5)   5.2.7-100.fc29.x Tue Aug 20 22:53 - 23:45  (00:51)
     reboot   system boot  5.2.7-100.fc29.x Wed Aug 21 00:53 - 23:45  (-1:07)
     runlevel (to lvl 5)   5.2.7-100.fc29.x Mon Aug 19 08:56 - 19:11  (10:14)
     reboot   system boot  5.2.7-100.fc29.x Mon Aug 19 10:56 - 19:11  (08:14)
     runlevel (to lvl 5)   5.2.7-100.fc29.x Fri Aug 16 15:10 - 00:32  (09:21)
     reboot   system boot  5.2.7-100.fc29.x Fri Aug 16 17:10 - 00:32  (07:21)
     
     wtmp commence Mon Nov 26 18:07:06 2018
     
* DNF Repositories (ls -l /etc/yum.repos.d):
     total 96
     -rw-r--r--. 1 root root  183  1 avril  2011 adobe-linux-x86_64.repo
     -rw-r--r--. 1 root root  338  3 avril 22:10 _copr_mosquito-deepin.repo
     -rw-r--r--. 1 root root  705 25 mars  19:32 fedora-cisco-openh264.repo
     -rw-r--r--. 1 root root 1395 25 mars  19:32 fedora-modular.repo
     -rw-r--r--. 1 root root 1331 25 mars  19:32 fedora.repo
     -rw-r--r--. 1 root root 1441 25 mars  19:32 fedora-updates-modular.repo
     -rw-r--r--. 1 root root 1378 25 mars  19:32 fedora-updates.repo
     -rw-r--r--. 1 root root 1483 25 mars  19:32 fedora-updates-testing-modular.repo
     -rw-r--r--. 1 root root 1436 25 mars  19:32 fedora-updates-testing.repo
     -rw-r--r--. 1 root root  173 16 oct.   2017 google-chrome.repo
     -rw-r--r--. 1 root root  193  6 mars  14:25 microsoft.repo
     -rw-r--r--. 1 root root  468 30 mai    2017 nodesource-fc26.repo
     -rw-r--r--. 1 root root 1526 29 juin   2017 remi-debuginfo.repo
     -rw-r--r--. 1 root root  661 29 juin   2017 remi-php72.repo
     -rw-r--r--. 1 root root  706 29 juin   2017 remi-php72-test.repo
     -rw-r--r--. 1 root root  441 29 juin   2017 remi.repo
     -rw-r--r--. 1 root root  403 29 juin   2017 remi-test.repo
     -rw-r--r--. 1 root root  148 19 août  18:42 skype-stable.repo
     -rw-r--r--. 1 root root  192 11 déc.   2017 sublime-text.repo
     -rw-r--r--. 1 root root  229  8 déc.   2018 teamviewer.repo
     -rw-r--r--. 1 root root  241 30 sept.  2015 virtualbox.repo
     -rw-r--r--. 1 root root  156 15 janv.  2018 vivaldi.repo
     -rw-r--r--. 1 root root  164  5 mars   2018 vscode.repo
     
* DNF Extras (without results: "dnf -C list extras"):
     N/A

* Last 20 packages installed (rpm -qa --nodigest --nosignature --last | head -20):
     wine-twain-4.13-5.fc29.i686                   mar. 20 août 2019 23:00:13 CEST
     wine-4.13-5.fc29.x86_64                       mar. 20 août 2019 23:00:13 CEST
     wine-pulseaudio-4.13-5.fc29.i686              mar. 20 août 2019 23:00:12 CEST
     wine-opencl-4.13-5.fc29.i686                  mar. 20 août 2019 23:00:12 CEST
     wine-openal-4.13-5.fc29.i686                  mar. 20 août 2019 23:00:12 CEST
     wine-ldap-4.13-5.fc29.i686                    mar. 20 août 2019 23:00:12 CEST
     wine-core-4.13-5.fc29.i686                    mar. 20 août 2019 23:00:12 CEST
     wine-cms-4.13-5.fc29.i686                     mar. 20 août 2019 23:00:12 CEST
     wine-capi-4.13-5.fc29.i686                    mar. 20 août 2019 23:00:12 CEST
     wine-alsa-4.13-5.fc29.i686                    mar. 20 août 2019 23:00:12 CEST
     wine-twain-4.13-5.fc29.x86_64                 mar. 20 août 2019 22:59:58 CEST
     wine-pulseaudio-4.13-5.fc29.x86_64            mar. 20 août 2019 22:59:58 CEST
     wine-opencl-4.13-5.fc29.x86_64                mar. 20 août 2019 22:59:58 CEST
     wine-openal-4.13-5.fc29.x86_64                mar. 20 août 2019 22:59:58 CEST
     wine-ldap-4.13-5.fc29.x86_64                  mar. 20 août 2019 22:59:58 CEST
     wine-desktop-4.13-5.fc29.noarch               mar. 20 août 2019 22:59:58 CEST
     wine-core-4.13-5.fc29.x86_64                  mar. 20 août 2019 22:59:58 CEST
     wine-common-4.13-5.fc29.noarch                mar. 20 août 2019 22:59:58 CEST
     wine-cms-4.13-5.fc29.x86_64                   mar. 20 août 2019 22:59:58 CEST
     wine-capi-4.13-5.fc29.x86_64                  mar. 20 août 2019 22:59:58 CEST
     
* EFI boot manager output (efibootmgr -v):
     BootCurrent: 0002
     Timeout: 2 seconds
     BootOrder: 0002,0019,0001,0000,0017,0018,001A,001B,001C,001D,001E,0023
     Boot0000* 	HD(2,GPT,5e0bc072-3819-4155-a33b-e049e5f12675,0xe1800,0x32000)/File(\EFI\fedora\shim.efi)
     Boot0001* Windows Boot Manager	HD(2,GPT,5e0bc072-3819-4155-a33b-e049e5f12675,0xe1800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
     Boot0002* Fedora	HD(2,GPT,5e0bc072-3819-4155-a33b-e049e5f12675,0xe1800,0x32000)/File(\EFI\fedora\shim.efi)
     Boot0010  Setup	FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
     Boot0011  Boot Menu	FvFile(126a762d-5758-4fca-8531-201a7f57f850)
     Boot0012  Diagnostic Splash Screen	FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
     Boot0013  Lenovo Diagnostics	FvFile(3f7e615b-0d45-4f80-88dc-26b234958560)
     Boot0014  Startup Interrupt Menu	FvFile(f46ee6f4-4785-43a3-923d-7f786c3c8479)
     Boot0015  Rescue and Recovery	FvFile(665d3f60-ad3e-4cad-8e26-db46eee9f1b5)
     Boot0016  MEBx Hot Key	FvFile(ac6fd56a-3d41-4efd-a1b9-870293811a28)
     Boot0017* USB CD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
     Boot0018* USB FDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
     Boot0019* NVMe0	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a400)
     Boot001A* ATA HDD0	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
     Boot001B* USB HDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
     Boot001C* PCI LAN	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
     Boot001D  Other CD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a35406)
     Boot001E  Other HDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f606)
     Boot001F* IDER BOOT CDROM	PciRoot(0x0)/Pci(0x14,0x0)/USB(11,1)
     Boot0020* IDER BOOT Floppy	PciRoot(0x0)/Pci(0x14,0x0)/USB(11,0)
     Boot0021* ATA HDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f6)
     Boot0022* ATAPI CD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
     Boot0023* PCI LAN	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)

Xorg errors (grep ‘^[.*(EE)’ /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d ‘:’ -f 2- ):
!!! INFINITE (50000) SPAMMMMMMMMMMMMMMMMMMMMMMMM of the same error:
[ 29.191] (EE) modeset(0): Failed to get GBM bo for flip to new front.
[ 29.191] (EE) modeset(0): present flip failed
[ 29.473] (EE) modeset(0): Failed to get GBM bo for flip to new front.
[ 29.473] (EE) modeset(0): present flip failed
[ 29.610] (EE) modeset(0): Failed to get GBM bo for flip to new front.
[ 29.610] (EE) modeset(0): present flip failed
[ 29.638] (EE) modeset(0): Failed to get GBM bo for flip to new front.
[ 29.638] (EE) modeset(0): present flip failed
[ 29.675] (EE) modeset(0): Failed to get GBM bo for flip to new front.
[ 29.675] (EE) modeset(0): present flip failed
BUT I believe this is an unrelated error.
GBM is for graphic memory and my screen or screen resfresher has some known (hardware?) issue, that precede the dnf issue

are you sure it is the default in 29 ? (not 30)
it’s not very clear on https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
like a partial migration

https://www.phoronix.com/scan.php?page=news_item&px=Fedora-Py3-Default-30s

thank you but I’ll first try to avoid such a radical “solution”
do you know how I could save my data that are not on home ? e.g chrome history

I mostly agree and you saved me time and released stress because while unperfect my system is now "usable "

As I mentioned above, we need to verify package database integrity, find missing and modified files, package duplicates, collisions, conflicting repositories and other similar problems.

So, please, post the complete output:

sudo rpm --verify --all
sudo rpm --rebuilddb
sudo dnf-2 clean all
sudo dnf-2 check all
sudo dnf-2 repolist
sudo dnf-2 distrosync

output for first command
…UG… g /var/run/avahi-daemon
…L… c /etc/pam.d/fingerprint-auth
…L… c /etc/pam.d/password-auth
…L… c /etc/pam.d/postlogin
…L… c /etc/pam.d/smartcard-auth
…L… c /etc/pam.d/system-auth
.M… /boot/efi/EFI
.M… g /var/lib/setroubleshoot/email_alert_recipients
.M… g /etc/udev/hwdb.bin
.M… g /var/lib/systemd/random-seed
.M… g /run/dbus
.M… g /var/cache/dnf/packages.db
.M… c /etc/hostname
.M… c /etc/machine-id
S.5…T. c /etc/sysctl.conf
.M… g /var/cache/private
.M… g /var/lib/private
.M… g /var/log/btmp
.M…G… g /var/log/journal
.M… g /var/log/private
S.5…T. c /etc/httpd/conf.d/welcome.conf
S.5…T. c /etc/httpd/conf/httpd.conf
.M… c /var/log/mariadb/mariadb.log
S.5…T. c /etc/plymouth/plymouthd.conf
.M… g /var/lib/plymouth/boot-duration
S.5…T. c /etc/cups/cups-browsed.conf
.M… c /etc/fstab
.M…G… g /var/log/lastlog
.M… g /run/lock/ppp
.M… g /run/ppp
.M…G… g /etc/brlapi.key
…T. c /etc/selinux/targeted/contexts/customizable_types
S.5…T. c /etc/selinux/targeted/contexts/files/file_contexts.local
S.5…T. c /etc/selinux/targeted/contexts/files/file_contexts.subs
.M… g /var/lib/selinux/targeted/active/policy.linked
.M… g /var/run/libvirt/qemu
.M… g /usr/lib/variant
S.5…T. c /root/.bashrc
.M… g /boot/System.map-5.0.16-100.fc28.x86_64
.M… g /boot/initramfs-5.0.16-100.fc28.x86_64.img
.M… g /boot/System.map-5.0.13-100.fc28.x86_64
.M… g /boot/initramfs-5.0.13-100.fc28.x86_64.img
.M… g /run/cryptsetup
S.5…T. /usr/share/icons/Crux/icon-theme.cache
S.5…T. /usr/share/icons/Mist/icon-theme.cache
.M… g /var/lib/PackageKit/transactions.db
S.5…T. c /var/lib/unbound/root.key
S.5…T. /usr/lib/python3.7/site-packages/dnf/pycache/const.cpython-37.pyc
…T. /usr/lib/python3.7/site-packages/dnf/const.py
.M… c /etc/default/grub
.M… g /etc/crypto-policies/back-ends/nss.config
S.5…T. c /etc/sysconfig/docker-storage-setup
…L… /opt/vivaldi/libwidevinecdm.so
.M… g /var/lib/dnf/groups.json
.M… g /var/lib/dnf/history
.M… g /var/log/dnf.librepo.log
.M… g /var/log/dnf.log
.M… g /var/log/dnf.rpm.log
.M… g /var/log/hawkey.log
…G… /var/run/sddm
.M…G… g /var/log/lastlog
.M… /var/log/audit
…T. /boot/efi/EFI/fedora/grubx64.efi
S.5…T. c /etc/phpMyAdmin/config.inc.php
.M… g /var/lock/iscsi
.M… g /var/lock/iscsi/lock
.M…UG… g /var/run/lightdm
.M… g /boot/System.map-5.2.7-100.fc29.x86_64
.M… g /boot/initramfs-5.2.7-100.fc29.x86_64.img
…L… /usr/lib64/libSDL2_ttf-2.0.so.0
.M… d /usr/share/info/dir.old
.M… /boot/efi/System/Library/CoreServices/SystemVersion.plist
.M… /boot/efi/mach_kernel

1 Like

sudo rpm --rebuilddb return 1 (success)

sudo dnf-2 clean all
89 deleted files

sudo dnf-2 check all
1

repolist
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:01:01 le ven. 30 août 2019 18:17:24 CEST.
id du dépôt nom du dépôt état
adobe-linux-x86_64 Adobe Systems Incorporated 3
code Visual Studio Code 67
*fedora Fedora 29 - x86_64 58 200
*fedora-modular Fedora Modular 29 - x86_64 3
google-chrome google-chrome 3
mosquito-deepin Copr repo for deepin owned by mosquito 240
nodesource Node.js Packages for Fedora Linux 26 - x86_64 83
packages-microsoft-com-prod packages-microsoft-com-prod 380
skype-stable skype (stable) 5
sublime-text Sublime Text - x86_64 - Stable 2
teamviewer TeamViewer - x86_64 19
*updates Fedora 29 - x86_64 - Updates 21 431
*updates-modular Fedora Modular 29 - x86_64 - Updates 28
virtualbox Fedora 29 - x86_64 - VirtualBox 11
vivaldi vivaldi 2

distrosync
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:01:39 le ven. 30 août 2019 18:17:24 CEST.
Dépendances résolues.
Rien à faire.
Terminé !
(resolved dependencies)
nothing to do
done!

1 Like

well this errror is fixed in Xorg once I’ll be on fc30
https://bugzilla.redhat.com/show_bug.cgi?id=1645553

This file seems damaged, try to reinstall:

sudo dnf-2 reinstall python3-dnf

https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch04s04.html

1 Like

I reinstalled it “successfully” but dnf 3 still output Traceback (most recent call last):
File “/bin/dnf-3”, line 57, in
from dnf.cli import main
File “/usr/lib/python3.7/site-packages/dnf/init.py”, line 27, in
from dnf.const import VERSION
File “/usr/lib/python3.7/site-packages/dnf/const.py”, line 22, in
import distutils.sysconfig
ModuleNotFoundError: No module named ‘distutils’

1 Like

Some cases require to remove modified files manually before reinstalling the related packages:

sudo rm -f -v /usr/lib/python3.7/site-packages/dnf/__pycache__/const.cpython-37.pyc
sudo rm -f -v /usr/lib/python3.7/site-packages/dnf/const.py
sudo dnf-2 -y reinstall python3-dnf
sudo rpm --verify python3-dnf

You can also verify SHA256 hashes manually:

rpm -q --dump python3-dnf | grep -e const.cpython-37.pyc -e const.py

sha256sum \
/usr/lib/python3.7/site-packages/dnf/__pycache__/const.cpython-37.pyc \
/usr/lib/python3.7/site-packages/dnf/const.py

Note, that in terms of programming non-zero return code typically means error:

For save documents you can use onedrive, mega, dropbox…

Chrome history is saved if you have active your Google session… Exist tons of videos step by step in youtube about how to make a backup of your passwords and bookmarks…

Here :wink: