I don’t know if both of these are related, but I tried to install Lutris in Software, and it would not open. I tried rebooting and still nothing. I uninstalled Lutris in Software, and tried to reinstall it using the terminal, with sudo dnf install lutris, only to be met with:
❯ sudo dnf install lutris
Traceback (most recent call last):
File "/usr/bin/dnf", line 61, in <module>
from dnf.cli import main
File "/usr/lib/python3.11/site-packages/dnf/__init__.py", line 30, in <module>
import dnf.base
File "/usr/lib/python3.11/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
ModuleNotFoundError: No module named 'libdnf'
~
❯
I tried just running the dnf command, and the same error was outputted. Anybody know what to do from here?
I don’t know if there’s a “right” way, but one could download the package from https://pkgs.org/download/libdnf and rpm install it or build it from github.
I also can’t verify the safety of such approach. I’m confused, as it sounds you are too, about how you got here.
Also, do you happen to have two “competing” versions of python installed by any chance?
No apologies needed… Perhaps this thread can help; the error you reference does seem to have something to do with python3 and, perhaps, when you uninstalled lutris it messed something up…
I just checked what would be installed extra if I installed lutris and it wants to install 94 packages, including 6 additional python3 packages and a lot of i686 packages.
I am not sure why it should have messed up dnf with installing then removing lutris, but it seems possible that some of those packages may have used some of the same python modules as dnf and thus caused an issue.
No, I didn’t touch python, I have no idea what caused it. Running rpm with --reinstall to reinstall libdnf, had no output, so I’m pretty sure it worked. Unfortunately, dnf still spits out the same error.
Uhhhhhhhhhhhhhhhhhh, yeahhhhh. could this be my ssd failing?
[ 205.317359] BTRFS error (device sda3): bad tree block start, mirror 1 want 645152768 have 15060037153926840191
[ 205.317728] BTRFS error (device sda3): bad tree block start, mirror 2 want 645152768 have 3211534
[ 205.318039] BTRFS error (device sda3): bad tree block start, mirror 1 want 645152768 have 15060037153926840191
[ 205.318310] BTRFS error (device sda3): bad tree block start, mirror 2 want 645152768 have 3211534
[ 205.318588] BTRFS error (device sda3): bad tree block start, mirror 1 want 645152768 have 15060037153926840191
[ 205.318849] BTRFS error (device sda3): bad tree block start, mirror 2 want 645152768 have 3211534
[ 205.333833] BTRFS error (device sda3): bad tree block start, mirror 1 want 645152768 have 15060037153926840191
[ 205.334201] BTRFS error (device sda3): bad tree block start, mirror 2 want 645152768 have 3211534
[ 205.334507] BTRFS error (device sda3): bad tree block start, mirror 1 want 645152768 have 15060037153926840191
[ 205.334769] BTRFS error (device sda3): bad tree block start, mirror 2 want 645152768 have 3211534
I’ve backed up and restored Fedora using Clonezilla, so that could have also caused it. However it should have kept all the data, and partitions the way they were backed up.
I’m absolutely not an expert of any kind, but a quick search around different distros fora seems to suggest the bad tree block start warning in and of itself isn’t horrible, but the differences you have between what btrfs is “wanting” and what it “has” in its log is; that is, it sounds like that size discrepancy—for example, your first line of btrfs looking at location “645152768” but finding the data at “15060037153926840191”—seems to only happen when a system is shutdown prior to being able to complete a large operation.
Every thread pretty much suggests the best bet is to copy whatever you can from the system and start over from scratch.
The good news is it doesn’t sound as though this is actually a hardware issue…
Interestingly, in most of the cases like yours, it seems like the users weren’t even able to mount the drive…