Troubleshooting Ubuntu 20 and a fresh install of Amd drivers

Tom M
Tom M
Joined: 2 Feb 06
Posts: 6453
Credit: 9579843175
RAC: 7430300
Topic 224461

I recently re-started my last Linux box to see if I could get AMD drivers to install without giving me an install error.

Got the same error as a month ago.

My next step is a new download of the latest ISO file and an erase/install "everything" and then a new download of the current Amd driver.

I am setting up this thread because I have been pushed off 3 other Linux machines onto Windows machines.  And only one of those machines should be a "have to" run Windows.  The rest should be perfectly happy running Linux.

So here I go.

Tom M

A Proud member of the O.F.A.  (Old Farts Association).  Be well, do good work, and keep in touch.® (Garrison Keillor)  I want some more patience. RIGHT NOW!

Stefan Ledwina
Stefan Ledwina
Joined: 23 Oct 05
Posts: 17
Credit: 2518488533
RAC: 1414545
Tom M
Tom M
Joined: 2 Feb 06
Posts: 6453
Credit: 9579843175
RAC: 7430300

tom@gpu-server:~/Downloads/am

tom@gpu-server:~/Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04$ ./amdgpu-pro-install -y --opencl=pal,legacy --headless
[sudo] password for tom:
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 [114 kB]                  
Hit:5 http://us.archive.ubuntu.com/ubuntu focal InRelease                      
Hit:6 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
WARNING: PAL OpenCL has been dropped in favour of ROCr.\nROCr OpenCL will be installed instead of PAL OpenCL.\nPlease advise that this option is deprecated and will be removed in \nfuture releases. Please use '--opencl=rocr' instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version '20.45-1188099' (localhost [all]) for 'amdgpu-pro-pin'
The following packages were automatically installed and are no longer required:
  dkms libfprint-2-tod1 libllvm10
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  amdgpu-pro-pin
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6,284 B of archives.
After this operation, 38.9 kB of additional disk space will be used.
Get:1 file:/var/opt/amdgpu-pro-local ./ amdgpu-pro-pin 20.45-1188099 [6,284 B]
Selecting previously unselected package amdgpu-pro-pin.
(Reading database ... 187133 files and directories currently installed.)
Preparing to unpack .../amdgpu-pro-pin_20.45-1188099_all.deb ...
Unpacking amdgpu-pro-pin (20.45-1188099) ...
Setting up amdgpu-pro-pin (20.45-1188099) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dkms libfprint-2-tod1 libllvm10
Use 'sudo apt autoremove' to remove them.
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,740 B of archives.
After this operation, 26.6 kB of additional disk space will be used.
Get:1 file:/var/opt/amdgpu-pro-local ./ amdgpu-pin 20.45-1188099 [2,740 B]
Selecting previously unselected package amdgpu-pin.
(Reading database ... 187152 files and directories currently installed.)
Preparing to unpack .../amdgpu-pin_20.45-1188099_all.deb ...
Unpacking amdgpu-pin (20.45-1188099) ...
Setting up amdgpu-pin (20.45-1188099) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfprint-2-tod1 libllvm10
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  amdgpu-core amdgpu-dkms-firmware amdgpu-pro-core comgr-amdgpu-pro
  hip-rocr-amdgpu-pro hsa-runtime-rocr-amdgpu hsakmt-roct-amdgpu
  libdrm-amdgpu-amdgpu1 libdrm-amdgpu-common libdrm2-amdgpu
  ocl-icd-libopencl1-amdgpu-pro opencl-rocr-amdgpu-pro
The following NEW packages will be installed:
  amdgpu-core amdgpu-dkms amdgpu-dkms-firmware amdgpu-pro-core
  amdgpu-pro-rocr-opencl clinfo-amdgpu-pro comgr-amdgpu-pro
  hip-rocr-amdgpu-pro hsa-runtime-rocr-amdgpu hsakmt-roct-amdgpu
  libdrm-amdgpu-amdgpu1 libdrm-amdgpu-common libdrm2-amdgpu
  ocl-icd-libopencl1-amdgpu-pro opencl-orca-amdgpu-pro-icd
  opencl-rocr-amdgpu-pro
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/70.7 MB of archives.
After this operation, 483 MB of additional disk space will be used.
Get:1 file:/var/opt/amdgpu-pro-local ./ amdgpu-dkms-firmware 1:5.6.20.906316-1188099 [6,022 kB]
Get:2 file:/var/opt/amdgpu-pro-local ./ amdgpu-dkms 1:5.6.20.906316-1188099 [5,692 kB]
Get:3 file:/var/opt/amdgpu-pro-local ./ amdgpu-core 20.45-1188099 [2,220 B]
Get:4 file:/var/opt/amdgpu-pro-local ./ amdgpu-pro-core 20.45-1188099 [5,556 B]
Get:5 file:/var/opt/amdgpu-pro-local ./ libdrm2-amdgpu 1:2.4.100-1188099 [35.6 kB]
Get:6 file:/var/opt/amdgpu-pro-local ./ libdrm-amdgpu-common 1.0.0-1188099 [4,748 B]
Get:7 file:/var/opt/amdgpu-pro-local ./ libdrm-amdgpu-amdgpu1 1:2.4.100-1188099 [21.2 kB]
Get:8 file:/var/opt/amdgpu-pro-local ./ hsakmt-roct-amdgpu 1.0.9-1188099 [53.0 kB]
Get:9 file:/var/opt/amdgpu-pro-local ./ hsa-runtime-rocr-amdgpu 1.2.0-1188099 [414 kB]
Get:10 file:/var/opt/amdgpu-pro-local ./ comgr-amdgpu-pro 1.7.0-1188099 [27.8 MB]
Get:11 file:/var/opt/amdgpu-pro-local ./ ocl-icd-libopencl1-amdgpu-pro 20.45-1188099 [13.9 kB]
Get:12 file:/var/opt/amdgpu-pro-local ./ opencl-rocr-amdgpu-pro 20.45-1188099 [366 kB]
Get:13 file:/var/opt/amdgpu-pro-local ./ hip-rocr-amdgpu-pro 20.45-1188099 [676 kB]
Get:14 file:/var/opt/amdgpu-pro-local ./ clinfo-amdgpu-pro 20.45-1188099 [30.8 kB]
Get:15 file:/var/opt/amdgpu-pro-local ./ amdgpu-pro-rocr-opencl 20.45-1188099 [5,420 B]
Get:16 file:/var/opt/amdgpu-pro-local ./ opencl-orca-amdgpu-pro-icd 20.45-1188099 [29.5 MB]
Selecting previously unselected package amdgpu-dkms-firmware.
(Reading database ... 187166 files and directories currently installed.)
Preparing to unpack .../amdgpu-dkms-firmware_5.6.20.906316-1188099_all.deb ...
Unpacking amdgpu-dkms-firmware (1:5.6.20.906316-1188099) ...
Setting up amdgpu-dkms-firmware (1:5.6.20.906316-1188099) ...
Selecting previously unselected package amdgpu-dkms.
(Reading database ... 187574 files and directories currently installed.)
Preparing to unpack .../00-amdgpu-dkms_5.6.20.906316-1188099_all.deb ...
Unpacking amdgpu-dkms (1:5.6.20.906316-1188099) ...
Selecting previously unselected package amdgpu-core.
Preparing to unpack .../01-amdgpu-core_20.45-1188099_all.deb ...
Unpacking amdgpu-core (20.45-1188099) ...
Selecting previously unselected package amdgpu-pro-core.
Preparing to unpack .../02-amdgpu-pro-core_20.45-1188099_all.deb ...
Unpacking amdgpu-pro-core (20.45-1188099) ...
Selecting previously unselected package libdrm2-amdgpu:amd64.
Preparing to unpack .../03-libdrm2-amdgpu_2.4.100-1188099_amd64.deb ...
Unpacking libdrm2-amdgpu:amd64 (1:2.4.100-1188099) ...
Selecting previously unselected package libdrm-amdgpu-common.
Preparing to unpack .../04-libdrm-amdgpu-common_1.0.0-1188099_all.deb ...
Unpacking libdrm-amdgpu-common (1.0.0-1188099) ...
Selecting previously unselected package libdrm-amdgpu-amdgpu1:amd64.
Preparing to unpack .../05-libdrm-amdgpu-amdgpu1_2.4.100-1188099_amd64.deb ...
Unpacking libdrm-amdgpu-amdgpu1:amd64 (1:2.4.100-1188099) ...
Selecting previously unselected package hsakmt-roct-amdgpu:amd64.
Preparing to unpack .../06-hsakmt-roct-amdgpu_1.0.9-1188099_amd64.deb ...
Unpacking hsakmt-roct-amdgpu:amd64 (1.0.9-1188099) ...
Selecting previously unselected package hsa-runtime-rocr-amdgpu:amd64.
Preparing to unpack .../07-hsa-runtime-rocr-amdgpu_1.2.0-1188099_amd64.deb ...
Unpacking hsa-runtime-rocr-amdgpu:amd64 (1.2.0-1188099) ...
Selecting previously unselected package comgr-amdgpu-pro:amd64.
Preparing to unpack .../08-comgr-amdgpu-pro_1.7.0-1188099_amd64.deb ...
Unpacking comgr-amdgpu-pro:amd64 (1.7.0-1188099) ...
Selecting previously unselected package ocl-icd-libopencl1-amdgpu-pro:amd64.
Preparing to unpack .../09-ocl-icd-libopencl1-amdgpu-pro_20.45-1188099_amd64.deb
 ...
Unpacking ocl-icd-libopencl1-amdgpu-pro:amd64 (20.45-1188099) ...
Selecting previously unselected package opencl-rocr-amdgpu-pro:amd64.
Preparing to unpack .../10-opencl-rocr-amdgpu-pro_20.45-1188099_amd64.deb ...
Unpacking opencl-rocr-amdgpu-pro:amd64 (20.45-1188099) ...
Selecting previously unselected package hip-rocr-amdgpu-pro.
Preparing to unpack .../11-hip-rocr-amdgpu-pro_20.45-1188099_amd64.deb ...
Unpacking hip-rocr-amdgpu-pro (20.45-1188099) ...
Selecting previously unselected package clinfo-amdgpu-pro.
Preparing to unpack .../12-clinfo-amdgpu-pro_20.45-1188099_amd64.deb ...
Unpacking clinfo-amdgpu-pro (20.45-1188099) ...
Selecting previously unselected package amdgpu-pro-rocr-opencl.
Preparing to unpack .../13-amdgpu-pro-rocr-opencl_20.45-1188099_amd64.deb ...
Unpacking amdgpu-pro-rocr-opencl (20.45-1188099) ...
Selecting previously unselected package opencl-orca-amdgpu-pro-icd:amd64.
Preparing to unpack .../14-opencl-orca-amdgpu-pro-icd_20.45-1188099_amd64.deb ..
.
Unpacking opencl-orca-amdgpu-pro-icd:amd64 (20.45-1188099) ...
Setting up amdgpu-dkms (1:5.6.20.906316-1188099) ...
Loading new amdgpu-5.6.20.906316-1188099 DKMS files...
Building for 5.8.0-36-generic
Building for architecture x86_64
Building initial module for 5.8.0-36-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-fir
mware.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-36-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more infor
mation.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
Setting up amdgpu-core (20.45-1188099) ...
Setting up libdrm-amdgpu-common (1.0.0-1188099) ...
Setting up amdgpu-pro-core (20.45-1188099) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-rocr-opencl:
 amdgpu-pro-rocr-opencl depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); howe
ver:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu-pro-rocr-opencl (--configure):
 dependency problems - leaving unconfigured
Setting up comgr-amdgpu-pro:amd64 (1.7.0-1188099) ...
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          Setting up ocl-icd-libopencl1-amdgpu-pro:amd64 (20.45-
1188099) ...
Setting up clinfo-amdgpu-pro (20.45-1188099) ...
Setting up libdrm2-amdgpu:amd64 (1:2.4.100-1188099) ...
Setting up libdrm-amdgpu-amdgpu1:amd64 (1:2.4.100-1188099) ...
Setting up hsakmt-roct-amdgpu:amd64 (1.0.9-1188099) ...
Setting up hsa-runtime-rocr-amdgpu:amd64 (1.2.0-1188099) ...
Setting up hip-rocr-amdgpu-pro (20.45-1188099) ...
Setting up opencl-orca-amdgpu-pro-icd:amd64 (20.45-1188099) ...
Setting up opencl-rocr-amdgpu-pro:amd64 (20.45-1188099) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Errors were encountered while processing:
 amdgpu-dkms
 amdgpu-pro-rocr-opencl
E: Sub-process /usr/bin/dpkg returned an error code (1)
tom@gpu-server:~/Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04$

A Proud member of the O.F.A.  (Old Farts Association).  Be well, do good work, and keep in touch.® (Garrison Keillor)  I want some more patience. RIGHT NOW!

Tom M
Tom M
Joined: 2 Feb 06
Posts: 6453
Credit: 9579843175
RAC: 7430300

Stefan Ledwina wrote: That's

 

I was unable to implement the first possible solution.

The second thread shows the same problems.

The only new Idea I see so far is going to the latest non-LTS for the desktop. It has a different version of the kernel than the LTS version (someone said).

Will try that next.

Tom M

A Proud member of the O.F.A.  (Old Farts Association).  Be well, do good work, and keep in touch.® (Garrison Keillor)  I want some more patience. RIGHT NOW!

Ian&Steve C.
Ian&Steve C.
Joined: 19 Jan 20
Posts: 3956
Credit: 46952692642
RAC: 64619508

i mentioned this before but

i mentioned this before but you never replied that you acted on it or considered it.

 

have you tried reaching out to one of the many people on the project running AMD cards under linux? there's quite a few on the leaderboard. ask them how they were able to install the drivers.

_________________________________________________________________________

Tom M
Tom M
Joined: 2 Feb 06
Posts: 6453
Credit: 9579843175
RAC: 7430300

Ian&Steve C. wrote: i

Ian&Steve C. wrote:

i mentioned this before but you never replied that you acted on it or considered it.

 

have you tried reaching out to one of the many people on the project running AMD cards under linux? there's quite a few on the leaderboard. ask them how they were able to install the drivers.

I missed your response. After I take a stab at trying with 20.10 and fail I will start working working PM's to see if anyone who is running Linux has an idea.

It also seems like I may have to explore the other supported distros too.

Last resort would be to roll my own to get to a version of the kernel which works.

My attempt to start a different version of the already installed kernel stumbled under my lack of skill and understanding.

Tom M

A Proud member of the O.F.A.  (Old Farts Association).  Be well, do good work, and keep in touch.® (Garrison Keillor)  I want some more patience. RIGHT NOW!

Ian&Steve C.
Ian&Steve C.
Joined: 19 Jan 20
Posts: 3956
Credit: 46952692642
RAC: 64619508

I wouldn’t try these non-LTS

I wouldn’t try these non-LTS releases. They’re basically beta in my opinion. 
 

go back to 20.04 with the 5.4 kernel 

_________________________________________________________________________

Tom M
Tom M
Joined: 2 Feb 06
Posts: 6453
Credit: 9579843175
RAC: 7430300

Ian&Steve C. wrote: I

Ian&Steve C. wrote:

I wouldn’t try these non-LTS releases. They’re basically beta in my opinion. 
 

go back to 20.04 with the 5.4 kernel 

The Ubuntu 20.10 link throws a 404 error.

The Kubuntu 20.10 downloads and installs.  But the driver package says it can't be installed on that version.

I can get 20.04 installed but I haven't been able to master how to install with kernel 5.4 only.

Sigh.

I will go ahead and clean off the hard disk.  I am running 4 versions of Linux in there right now.

And install Ubuntu 20.4 but how to install with 5.4 only I am completely unclear about.  Even after reading some how toos.  And trying to modify grub to load a previous kernel.

My experimentation makes it perfectly clear that loading and installing the drivers on a recovery version of a previous kernel version makes do changes to what is on the hard disk.

Tom M

 

 

A Proud member of the O.F.A.  (Old Farts Association).  Be well, do good work, and keep in touch.® (Garrison Keillor)  I want some more patience. RIGHT NOW!

Ian&Steve C.
Ian&Steve C.
Joined: 19 Jan 20
Posts: 3956
Credit: 46952692642
RAC: 64619508

I don’t know what you mean by

I don’t know what you mean by “install with 5.4 kernel”. That’s what it comes with. You have to enable extra stuff to get a later kernel in there. Look at all the 20.04 systems on the leaderboard. They all have 5.4

_________________________________________________________________________

Keith Myers
Keith Myers
Joined: 11 Feb 11
Posts: 4964
Credit: 18741987823
RAC: 7013682

I don't know why you

I don't know why you proceeded with the failed installation when you should have stopped right away with the beginning error message that --opencl=pal parameter was deprecated.

You should have stopped and corrected the installation to use the rocr OpenCL library.

You can't get any other kernel BESIDES 5.4 on Ubuntu 20.04 LTS.  That is the whole point of an LTS.

The only way you can get anything newer is to enable HWE kernels.  DON'T DO THAT!!

[Edit] The AMD Community post SOLVED explains that a failed AMD-DKMS build blacklists the driver and you need to get rid of that first.  Then get rid of the amd-dkms module and finally install with the --no-dkms option.

https://community.amd.com/t5/drivers-software/can-t-install-amdgpu-drivers-on-ubuntu-20-04-1-5-4-0-56-generic/td-p/426676/page/4

The necessary steps are listed on this page.

 

Tom M
Tom M
Joined: 2 Feb 06
Posts: 6453
Credit: 9579843175
RAC: 7430300

Ian&Steve C. wrote: I don’t

Ian&Steve C. wrote:

I don’t know what you mean by “install with 5.4 kernel”. That’s what it comes with. You have to enable extra stuff to get a later kernel in there. Look at all the 20.04 systems on the leaderboard. They all have 5.4

My version installs 5.8 which doesn't get along with the Amd driver for that version of Ubuntu.

Tom M

A Proud member of the O.F.A.  (Old Farts Association).  Be well, do good work, and keep in touch.® (Garrison Keillor)  I want some more patience. RIGHT NOW!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.