13. June 2020 3 min read

Installing AMD GPU Pro driver in Ubuntu 20.04

Usually I upgrade from version to version, and the AMD GPU driver is one of the rare things which so far never worked as expected. Along with few tweaks for installations on non-LTS Ubuntu, once in a while also LTS installations fail.

When I upgrade I do not autoremove the existing packages, mostly because some non-apt programs use some of the libraries and when I remove them, those programs stop working (which I usually find much later, since they are not programs I use everyday). It was same for the Ubuntu 20.04 and one of the packages remaining was xserver-xorg-hwe-18.04.

Official guide is quite simple: you install by running ./amdgpu-pro-install , but then the output was:

$ ./amdgpu-pro-install
deb [ trusted=yes ] file:/var/opt/amdgpu-pro-local/ ./
Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Get:4 file:/var/opt/amdgpu-pro-local ./ Packages [106 kB]
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:6 http://be.archive.ubuntu.com/ubuntu focal InRelease
Hit:7 http://be.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:9 http://be.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Selected version '20.20-1089974' (localhost [all]) for 'amdgpu-pro-pin'
...
The following NEW packages will be installed:
  amdgpu-pin
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2,684 B of archives.
After this operation, 25.6 kB of additional disk space will be used.
Get:1 file:/var/opt/amdgpu-pro-local ./ amdgpu-pin 20.20-1089974 [2,684 B]
Selecting previously unselected package amdgpu-pin.
(Reading database ... 435875 files and directories currently installed.)
Preparing to unpack .../amdgpu-pin_20.20-1089974_all.deb ...
Unpacking amdgpu-pin (20.20-1089974) ...
Setting up amdgpu-pin (20.20-1089974) ...
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package amdgpu-hwe 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

Package amdgpu-pro-hwe 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 'amdgpu-hwe' has no installation candidate
E: Package 'amdgpu-pro-hwe' has no installation candidate

Sure enough there was no amdgpu-hwe or amdgpu-pro-hwe packages in the /var/opt/amdgpu-pro-local folder, which is automatically created by installer. I had some dangling packages left on autoremove and one that striked by eye was xserver-xorg-hwe-18.04 . After removing that package, the installer ran just fine.

Newest from this category: