404 error in terminal

I seem to se this a lot. I happen to have issues with the GPU in this old iMac… I don’t know how to fix this. Presumably uninstall and try an earlier one? If so how do I do that?

Updating and loading repositories:
 RPM Fusion for Fedora 43 - Nonfree - Updates     100% |   3.3 KiB/s |  15.6 KiB |  00m05s
 RPM Fusion for Fedora 43 - Free - Updates        100% |   3.8 KiB/s |  11.8 KiB |  00m03s
 Fedora 43 - x86_64 - Updates                     100% |   7.5 KiB/s |  13.9 KiB |  00m02s
 AMD Graphics 7.2 repository                      100% |   1.2 KiB/s |   2.2 KiB |  00m02s
>>> Status code: 404 for https://repo.radeon.com/graphics/7.2/el/43/main/x86_64/repodata/r
>>> Status code: 404 for https://repo.radeon.com/graphics/7.2/el/43/main/x86_64/repodata/r
>>> Status code: 404 for https://repo.radeon.com/graphics/7.2/el/43/main/x86_64/repodata/r
>>> Status code: 404 for https://repo.radeon.com/graphics/7.2/el/43/main/x86_64/repodata/r
>>> Usable URL not found                                                                  
 AMDGPU 30.30 repository                          100% |   1.2 KiB/s |   2.2 KiB |  00m02s
>>> Status code: 404 for https://repo.radeon.com/amdgpu/30.30/el/43/main/x86_64/repodata/r
>>> Status code: 404 for https://repo.radeon.com/amdgpu/30.30/el/43/main/x86_64/repodata/r
>>> Status code: 404 for https://repo.radeon.com/amdgpu/30.30/el/43/main/x86_64/repodata/r
>>> Status code: 404 for https://repo.radeon.com/amdgpu/30.30/el/43/main/x86_64/repodata/r
>>> Usable URL not found                                                                  
Repositories loaded.

Delete the failing repos, AMD doesn’t support fedora.

AMDGPU driver is provided by the standard kernel and mesa packages from the standard fedora repo.

1 Like

Ohh. The PC I’m building is an AMD machine? Is this going to effect that? Should I be looking at a different distro? And would that affect Steam compatibility.

AMD CPUs and AMD GPUs work out-of-the-box with Fedora.
You do not have to add any 3rd party repos.

As Leigh said delete the that repo, you do not need it.

1 Like

Ok thanks for clarifying that for me. Glad to hear it. Can you point me to a good text on how I remove offending repo? Thanks

I just rm the repo file from /etc/yum.repos.d - but becsure you have the right file!
I think there is dnf command as well. See man dnf to find it.

Ok. I started to look that up and while the explanations seemed to make some kind of sense I could not put anything into practice. One thing I wasn’t sure was how to target them. So found I could dnf repolist which showed those as amdgpu and amdgraphics respectively. So I wasn’t sure how to format the command thus asked an ai. I guess it’s one of their actual strengths and better uses. I hate myself for it. But it instructed me to sudo rm /etc/yum.repos.d/repo-name.repo which I first did for amdgpu and that seemed to work as it disappeared from the list after re-listing. So I did it for the second one but it failed with “no such file or directory” but remains in the list after re-listing again. I repeatedly checked the spelling and it all looks correct.

Can you show:

  1. The output of ls /etc/yum/repos.d
  2. The exact command you are trying to run
(1)  $ ls /etc/yum/repos.d
          ls: cannot access '/etc/yum/repos.d': No such file or directory

(1.2)   $ dnf repolist
              repo id                                          repo name                                                                   
              amdgraphics                               AMD Graphics 7.2 repository

(2)   $ sudo rm /etc/yum.repos.d/amdgraphics.repo
          rm: cannot remove '/etc/yum.repos.d/amdgraphics.repo': No such file or directory

Copied those directly out of the terminal.

SORRY - my bad.

It should be ls /etc/yum.repos.d

np. I was thinking that looked like an i and knew it was suposed to be an l. But I copied instead of typing it in. Anyway:

$ ls /etc/yum.repos.d

amdgpu-proprietary.repo                               fedora-updates-testing.repo          rpmfusion-nonfree-nvidia-driver.repo
brave-browser.repo                                    google-chrome.repo                   rpmfusion-nonfree.repo
_copr:copr.fedorainfracloud.org:phracek:PyCharm.repo  rocm.repo                            rpmfusion-nonfree-steam.repo
fedora-cisco-openh264.repo                            rpmfusion-free.repo                  rpmfusion-nonfree-updates.repo
fedora.repo                                           rpmfusion-free-updates.repo          rpmfusion-nonfree-updates-testing.repo
fedora-updates.repo                                   rpmfusion-free-updates-testing.repo

So it looks like the file to delete is /etc/yum.repos.d/amdgpu-proprietary.repo.

However, before deleting it, have a look at the contents with cat /etc/yum.repos.d/amdgpu-proprietary.repo.

You’ll probably see a line like:

[amdgraphics]

…which is where the name shown by dnf repolist comes from.

I was wondering that.

$ cat /etc/yum.repos.d/amdgpu-proprietary.repo
# Enabling this repository requires acceptance of the following license:
# /usr/share/amdgpu-install/AMDGPUPROEULA
[amdgpu-proprietary]
name=AMDGPU 7.2 Proprietary repository
baseurl=https://repo.radeon.com/amdgpu/7.2/rhel/$amdgpudistro/proprietary/x86_64
enabled=0
gpgcheck=1
gpgkey=file:///etc/amdgpu-install/rocm.gpg.key

Looks like the amdgpu one I already “deleted”.

Ok so I ran the remove command. with ls /etc/yum.repos.d they are both gone… With dnf repolist andgraphics is still at the top of the list.

How about cat /etc/yum.repos.d/rocm.repo ?

That returned “no such file or directory”…

Does the output of ls /etc/yum.repos.d still include rocm.repo like it did earlier?

Ohh sorry. I used the wrong one. $ cat /etc/yum.repos.d/rocm.repo

[rocm]
name=ROCm 7.2 repository
baseurl=https://repo.radeon.com/rocm/el10/7.2/main
enabled=1
gpgcheck=1
priority=50
gpgkey=file:///etc/amdgpu-install/rocm.gpg.key

[amdgraphics]
name=AMD Graphics 7.2 repository
baseurl=https://repo.radeon.com/graphics/7.2/el/$amdgpudistro/main/x86_64
enabled=1
gpgcheck=1
gpgkey=file:///etc/amdgpu-install/rocm.gpg.key

No problem. Looks like that’s where your amdgraphics is coming from!