Can't install anything through command line

Hello,

Sorry if my problem is stupid. I’m new to Rocky Linux, and my terminal is just not working after I installed AMD GPU driver and failed. Even I reboot the computer.

It’s just shown the same texts whatever I tried to install from another source or another thing.

How can I solve that? Is there any system file my computer lack?

Thanks,

Seems you are using a third-party repository for Radeon drivers which is causing the problem. Perhaps disable that repository. First find it’s name:

sudo dnf repolist

Then you can do a one-time disable until they fix their problem. Let’s assume the repository is called radeon, then you would do:

sudo dnf --disablerepo=radeon groupinstall "Workstation" -y

obviously that is an example, so replace radeon with the correct repo name.

1 Like

The name of the third-party repo is probably “amdgpu” (rather than “radeon”).

Following the link in screenshot (BTW, copy-pasting text to posts would be nicer than screenshots) Index of /amdgpu/6.4.4/ neither the el nor the rhel subdirs there have a 10.0 subdir. There probably is no repo for el10 (yet).


The ad hoc --disablerepo=amdgpu will get tedious. It is better to disable the broken repo for good:

sudo dnf config-manager --disable amdgpu

(it is still possible to ad hoc access disabled repo with sudo dnf --enablerepo=amdgpu …)


I was under impression that Rocky has the AMD GPU driver? I.e. no need to install anything.

sudo dnf history shows past transactions. It has also possibility to undo a past transaction, i.e. remove what was installed.

I thought It may works, but seems I need to switch to 9.6 in order to compatible with the Gpu driver.

But thanks for your answer make it clear.