Install Amd Driver on Ubuntu 20.04

I have amd radeon hd 4350/4550 gpu,and I'm on ubuntu 20.04. so I tried many way to install official amd driver for ubuntu but every time I get an error. for example: I downloaded amd driver form amd.com and i going to install requairment befor install it.

kernel@kernel-EP43-UD3L:~$ sudo apt-get install linux-headers-generic build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases
[sudo] password for kernel: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libqtgui4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libqtgui4' has no installation candidate
E: Unable to locate package libelfg0

I get an error,what can i do for resolve it?

4

2 Answers

One problem might be that Ubuntu 20 ships with kernel version 5.4. The kernel for your driver is limited to 3.4. Might need a different Ubuntu dist? Or maybe time for a GPU upgrade? Either way, that's probably your main issue.

I've successfully installed AMD drivers on Ubuntu 20.04 for the following cards:

  • 5500 XT
  • RX Vega 64

I know those cards use a different driver, so adjust the naming convention(s) accordingly. Maybe this will be helpful for someone else.

Let's get a clean install, first.


locate amdgpu-uninstall

Should be /usr/bin/amdgpu-uninstall...run it.


sudo /usr/bin/amdgpu-uninstall

If it fails to delete /opt/amdgpu/ and/or /opt/amdgpu-pro/ directories, then:


sudo rm -rf /opt/amd...

Here is your driver:

You'll need to unzip it.


sudo apt-get install unzip

unzip ~/Downloads/amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.zip

./amd-driver-installer-catalyst-13.1-legacy-linux-x86.x86_64.run

Current AMD Driver

Again, wrong kernel, so this is probably moot.

You could try giving a different driver a whirl?

Alternatively: Check here


tar -xvf ~/Downloads/amdgpu-pro-21.30-1290604-ubuntu-20.04.tar.xz

sudo ./amdgpu-pro-21.30-1290604-ubuntu-20.04/amdgpu-install --opencl=pal,legacy,rocr --no-dkms --headless


Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.