0

Just got Linux for the first time a week ago so please bear with me.

I'm on Ubuntu 22.04 with a Radeon RX 7600.

I've had a few issues since installing Linux including: getting a black screen when I boot, the night light not working, and my 2nd monitor not getting picked up. This caused me to assume I had some issues with my GPU drivers, so I ran a few different checks and couldn't find anything listed for them.

  • I tried running sudo apt install which gives me an error saying the distribution for the GPU driver was not signed.

  • I ran sudo apt-get update --allow-insecure-repositories and everything was installed smoothly.

  • Then I rebooted and ran amdgpu install which told me it installed the driver.

  • Next I rebooted and ran inxi -G which showed me:

    Driver: N/A
    
  • So I tried running sudo apt install to do some more digging into the error but I'm not getting the unsigned error anymore and am instead getting an error of:

    Errors were encountered while processing: amdgpu-dkms
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    

Any help would be appreciated!

NotTheDr01ds
  • 22,082

1 Answers1

0

You clearly omitted some steps you done (e.g. amdgpu isn't a binary in Ubuntu repos), but your problem is based on misunderstanding how drivers are distributed in Linux.

TL;DR: just remove amdgpu you installed (Idk what the package you installed is called since you didn't mention it, perhaps sudo apt purge amdgpu-dkms), and update the kernel.


In Linux ecosystem drivers are developed and distributed as part of the kernel. This allows different companies to reuse code developed by other people, and in general improves code quality and stability. So once you installed the kernel, you can assume you have the drivers (well, not entirely correct, because kernel has many drivers that has no use on desktop and are disabled in the Ubuntu build, but the AMDGPU driver is enabled).

3rd-party drivers are a bit of misnormer, because developing them outside the kernel is inconvenient and frowned upon, but people sometimes do that. The most famous examples are ZFS (license reasons) and NVidia (their internal reasons).

That said, AMDGPU is part of the kernel, so you have it by default. What you might desire though is to update the driver. You didn't mention your kernel version, but based on the 22.04 distro I'd presume it's probably 2-3 years old.

Updating in this case is done by installing newer kernel. On 22.04 you can get it by installing linux-image-generic-hwe-22.04 which should give you 6.8.x version. If you really want, you can also install the most recent version manually.

And please, consider upgrading your distro to 24.04, because you're missing on a lot of improvements that are present in newer software.

P.S.: you're probably wondering, what is "amdgpu" that you installed then? It is part of the AMDGPU "pro" stack, which is mostly targeting enterprise, see this article for details.

Hi-Angel
  • 4,810