Problem with amdgpu-install

so I have an rx 580
I want to install the drivers from amd, I don't know much about linux(they said that this distro is the best one for noobs)
anyways, I read somewhere that I can install software for ubuntu, so I decided to go here
https://www.amd.com/en/support/graphics/radeon-500-series/radeon-rx-500-series/radeon-rx-580
and install the Ubuntu x86 64-Bit software.
so now if I run
amdgpu-install
it gives this error : Unsupported OS: /etc/os-release ID 'zorin'
can someone that knows more than me help me?

AMD Graphics drivers should be included in the kernel, making it unecessary to install them from the AMD site.
The AMD site drivers were wrapped in a rather lazy way, looking for Big name Distros instead of referencing the os_release file to find and recognize the distro.
You can install them... by opening the file within the installer and changing the name from Ubuntu to Zorin.
But again, there is not much point in doing so, since they are included already.

If you are having trouble with your AMD Graphics, you might try:

sudo add-apt-repository ppa:oibaf/graphics-drivers

sudo apt update && sudo apt full-upgrade

I need to run etherminer and it requires opengl , I don't think that the os comes with it preinstalled

Please try

sudo apt install mesa-utils

done.
when I run this command
./ethminer -G -P stratum1+tcp://myetheraddress@eth.2miners.com:2020
I get this

ethminer 0.18.0
Build: linux/release/gnu

No OpenCL platforms found
Error: No usable mining devices found

nothing changed

sorry , I confused , I meant opencl instead of opengl

How much RAM does your GPU have?

8 gb gpu ram
16 gb normal ram [not gpu]

Ok, that is no worry, then.
Have you seen this detailed guide?

1 Like

I downloaded AMDGPU-Pro Driver Version 17.40 for Ubuntu 16.04.3
from the link on that post.
I unpacked it , when I ls into the directory I see this

amdgpu-pro_17.40-492261_amd64.deb
amdgpu-pro_17.40-492261_i386.deb
amdgpu-pro-core_17.40-492261_all.deb
amdgpu-pro-dkms_17.40-492261_all.deb
amdgpu-pro-install
amdgpu-pro-lib32_17.40-492261_amd64.deb
clinfo-amdgpu-pro_17.40-492261_amd64.deb
clinfo-amdgpu-pro_17.40-492261_i386.deb
gst-omx-amdgpu-pro_1.0.0.1-492261_amd64.deb
gst-omx-amdgpu-pro_1.0.0.1-492261_i386.deb
hsa-ext-amdgpu-pro-finalize_1.1.6-492261_amd64.deb
hsa-ext-amdgpu-pro-image_1.1.6-492261_amd64.deb
hsa-runtime-tools-amdgpu-pro_1.1.6-492261_amd64.deb
hsa-runtime-tools-amdgpu-pro-dev_1.1.6-492261_amd64.deb
ids-amdgpu-pro_1.0.0-492261_all.deb
libdrm2-amdgpu-pro_2.4.82-492261_amd64.deb
libdrm2-amdgpu-pro_2.4.82-492261_i386.deb
libdrm-amdgpu-pro-amdgpu1_2.4.82-492261_amd64.deb
libdrm-amdgpu-pro-amdgpu1_2.4.82-492261_i386.deb
libdrm-amdgpu-pro-dev_2.4.82-492261_amd64.deb
libdrm-amdgpu-pro-dev_2.4.82-492261_i386.deb
libdrm-amdgpu-pro-radeon1_2.4.82-492261_amd64.deb
libdrm-amdgpu-pro-radeon1_2.4.82-492261_i386.deb
libdrm-amdgpu-pro-utils_2.4.82-492261_amd64.deb
libdrm-amdgpu-pro-utils_2.4.82-492261_i386.deb
libegl1-amdgpu-pro_17.40-492261_amd64.deb
libegl1-amdgpu-pro_17.40-492261_i386.deb
libgbm1-amdgpu-pro_17.40-492261_amd64.deb
libgbm1-amdgpu-pro_17.40-492261_i386.deb
libgbm1-amdgpu-pro-base_17.40-492261_all.deb
libgbm1-amdgpu-pro-dev_17.40-492261_amd64.deb
libgbm1-amdgpu-pro-dev_17.40-492261_i386.deb
libgl1-amdgpu-pro-appprofiles_17.40-492261_all.deb
libgl1-amdgpu-pro-dri_17.40-492261_amd64.deb
libgl1-amdgpu-pro-dri_17.40-492261_i386.deb
libgl1-amdgpu-pro-ext_17.40-492261_amd64.deb
libgl1-amdgpu-pro-ext_17.40-492261_i386.deb
libgl1-amdgpu-pro-glx_17.40-492261_amd64.deb
libgl1-amdgpu-pro-glx_17.40-492261_i386.deb
libglamor-amdgpu-pro-dev_1.19.0-492261_amd64.deb
libglamor-amdgpu-pro-dev_1.19.0-492261_i386.deb
libgles2-amdgpu-pro_17.40-492261_amd64.deb
libgles2-amdgpu-pro_17.40-492261_i386.deb
libllvm5.0-amdgpu-pro_5.0-492261_amd64.deb
libllvm5.0-amdgpu-pro_5.0-492261_i386.deb
libopencl1-amdgpu-pro_17.40-492261_amd64.deb
libopencl1-amdgpu-pro_17.40-492261_i386.deb
libvdpau-amdgpu-pro_17.0.1-492261_amd64.deb
libvdpau-amdgpu-pro_17.0.1-492261_i386.deb
llvm-amdgpu-pro_5.0-492261_amd64.deb
llvm-amdgpu-pro_5.0-492261_i386.deb
llvm-amdgpu-pro-5.0_5.0-492261_amd64.deb
llvm-amdgpu-pro-5.0_5.0-492261_i386.deb
llvm-amdgpu-pro-5.0-dev_5.0-492261_amd64.deb
llvm-amdgpu-pro-5.0-dev_5.0-492261_i386.deb
llvm-amdgpu-pro-5.0-doc_5.0-492261_all.deb
llvm-amdgpu-pro-5.0-runtime_5.0-492261_amd64.deb
llvm-amdgpu-pro-5.0-runtime_5.0-492261_i386.deb
llvm-amdgpu-pro-dev_5.0-492261_amd64.deb
llvm-amdgpu-pro-dev_5.0-492261_i386.deb
llvm-amdgpu-pro-runtime_5.0-492261_amd64.deb
llvm-amdgpu-pro-runtime_5.0-492261_i386.deb
mesa-amdgpu-pro-omx-drivers_17.0.1-492261_amd64.deb
mesa-amdgpu-pro-omx-drivers_17.0.1-492261_i386.deb
opencl-amdgpu-pro-icd_17.40-492261_amd64.deb
opencl-amdgpu-pro-icd_17.40-492261_i386.deb
Packages
Release
rocm-amdgpu-pro_17.40-492261_amd64.deb
rocm-amdgpu-pro-icd_17.40-492261_amd64.deb
rocm-amdgpu-pro-opencl_17.40-492261_amd64.deb
rocm-amdgpu-pro-opencl-dev_17.40-492261_amd64.deb
rocr-amdgpu-pro_1.1.6-492261_amd64.deb
rocr-amdgpu-pro-dev_1.1.6-492261_amd64.deb
roct-amdgpu-pro_1.0.6-492261_amd64.deb
roct-amdgpu-pro-dev_1.0.6-492261_amd64.deb
vulkan-amdgpu-pro_17.40-492261_amd64.deb
vulkan-amdgpu-pro_17.40-492261_i386.deb
xserver-xorg-video-amdgpu-pro_1.3.99-492261_amd64.deb
xserver-xorg-video-amdgpu-pro_1.3.99-492261_i386.deb
xserver-xorg-video-glamoregl-amdgpu-pro_1.19.0-492261_amd64.deb
xserver-xorg-video-glamoregl-amdgpu-pro_1.19.0-492261_i386.deb
xserver-xorg-video-modesetting-amdgpu-pro_1.19.0-492261_amd64.deb
xserver-xorg-video-modesetting-amdgpu-pro_1.19.0-492261_i386.deb

I install all the packages before successfully

amdgpu-pro-dkms

that in my case is
amdgpu-pro-dkms_17.40-492261_all.deb

so if I install this I get this error

sudo dpkg -i amdgpu-pro-dkms_17.40-492261_all.deb
Selecting previously unselected package amdgpu-pro-dkms.
(Reading database ... 277632 files and directories currently installed.)
Preparing to unpack amdgpu-pro-dkms_17.40-492261_all.deb ...
Unpacking amdgpu-pro-dkms (17.40-492261) ...
Setting up amdgpu-pro-dkms (17.40-492261) ...
Loading new amdgpu-17.40-492261 DKMS files...
Building for 5.13.0-28-generic
Building for architecture amd64
Building initial module for 5.13.0-28-generic
Error! Bad return status for module build on kernel: 5.13.0-28-generic (amd64)
Consult /var/lib/dkms/amdgpu/17.40-492261/build/make.log for more information.
dpkg: error processing package amdgpu-pro-dkms (--install):
 installed amdgpu-pro-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 amdgpu-pro-dkms

Try using the 5.8 kernel:

sudo apt install linux-headers-5.8.0-63-generic linux-modules-5.8.0-63 linux-modules-extra-5.4.0-63-generic linux-image-5.8.0-63

It looks like DKMS is not getting along with the 5.13

1 Like

this is what I get

Reading package lists... Done
Building dependency tree       
Reading state information... Done

E: Unable to locate package linux-modules-5.8.0-63
E: Couldn't find any package by glob 'linux-modules-5.8.0-63'
E: Unable to locate package linux-modules-extra-5.4.0-63-generic
E: Couldn't find any package by glob 'linux-modules-extra-5.4.0-63-generic'
E: Unable to locate package linux-image-5.8.0-63
E: Couldn't find any package by glob 'linux-image-5.8.0-63'

also when I run this
sudo apt update && sudo apt full-upgrade
the last lines say this

Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libopencl1-amdgpu-pro:i386 : Depends: libc6:i386 (>= 2.3.6-6~) but it is not installed
                              Recommends: opencl-amdgpu-pro-icd:i386 but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

and thsi is what I get when I run

apt --fix-broken install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  zorin-os-feedback
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  gcc-10-base:i386 libc6:i386 libcrypt1:i386 libgcc-s1:i386 libidn2-0:i386 libunistring2:i386
Suggested packages:
  glibc-doc:i386 locales:i386
The following NEW packages will be installed:
  gcc-10-base:i386 libc6:i386 libcrypt1:i386 libgcc-s1:i386 libidn2-0:i386 libunistring2:i386
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 3.161 kB of archives.
After this operation, 15,2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://it.archive.ubuntu.com/ubuntu focal-updates/main i386 gcc-10-base i386 10.3.0-1ubuntu1~20.04 [20,2 kB]
Get:2 http://it.archive.ubuntu.com/ubuntu focal-updates/main i386 libgcc-s1 i386 10.3.0-1ubuntu1~20.04 [49,4 kB]
Get:3 http://it.archive.ubuntu.com/ubuntu focal/main i386 libcrypt1 i386 1:4.4.10-10ubuntu4 [90,9 kB]
Get:4 http://it.archive.ubuntu.com/ubuntu focal-updates/main i386 libc6 i386 2.31-0ubuntu9.2 [2.572 kB]
Get:5 http://it.archive.ubuntu.com/ubuntu focal/main i386 libunistring2 i386 0.9.10-2 [377 kB]
Get:6 http://it.archive.ubuntu.com/ubuntu focal/main i386 libidn2-0 i386 2.2.0-2 [51,4 kB]
Fetched 3.161 kB in 1s (2.952 kB/s)    
Preconfiguring packages ...
Selecting previously unselected package gcc-10-base:i386.
(Reading database ... 279020 files and directories currently installed.)
Preparing to unpack .../0-gcc-10-base_10.3.0-1ubuntu1~20.04_i386.deb ...
Unpacking gcc-10-base:i386 (10.3.0-1ubuntu1~20.04) ...
Selecting previously unselected package libgcc-s1:i386.
Preparing to unpack .../1-libgcc-s1_10.3.0-1ubuntu1~20.04_i386.deb ...
Unpacking libgcc-s1:i386 (10.3.0-1ubuntu1~20.04) ...
Selecting previously unselected package libcrypt1:i386.
Preparing to unpack .../2-libcrypt1_1%3a4.4.10-10ubuntu4_i386.deb ...
Unpacking libcrypt1:i386 (1:4.4.10-10ubuntu4) ...
Selecting previously unselected package libc6:i386.
Preparing to unpack .../3-libc6_2.31-0ubuntu9.2_i386.deb ...
Unpacking libc6:i386 (2.31-0ubuntu9.2) ...
Selecting previously unselected package libunistring2:i386.
Preparing to unpack .../4-libunistring2_0.9.10-2_i386.deb ...
Unpacking libunistring2:i386 (0.9.10-2) ...
Selecting previously unselected package libidn2-0:i386.
Preparing to unpack .../5-libidn2-0_2.2.0-2_i386.deb ...
Unpacking libidn2-0:i386 (2.2.0-2) ...
Setting up amdgpu-pro-dkms (17.40-492261) ...
Removing old amdgpu-17.40-492261 DKMS files...

------------------------------
Deleting module version: 17.40-492261
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-17.40-492261 DKMS files...
Building for 5.13.0-28-generic
Building for architecture amd64
Building initial module for 5.13.0-28-generic
Error! Bad return status for module build on kernel: 5.13.0-28-generic (amd64)
Consult /var/lib/dkms/amdgpu/17.40-492261/build/make.log for more information.
dpkg: error processing package amdgpu-pro-dkms (--configure):
 installed amdgpu-pro-dkms package post-installation script subprocess returned error exit status 10
Setting up gcc-10-base:i386 (10.3.0-1ubuntu1~20.04) ...
Setting up libcrypt1:i386 (1:4.4.10-10ubuntu4) ...
Setting up libgcc-s1:i386 (10.3.0-1ubuntu1~20.04) ...
Setting up libc6:i386 (2.31-0ubuntu9.2) ...
Setting up libunistring2:i386 (0.9.10-2) ...
Setting up libidn2-0:i386 (2.2.0-2) ...
Setting up libopencl1-amdgpu-pro:i386 (17.40-492261) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Errors were encountered while processing:
 amdgpu-pro-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

That is NOT Good.
Do not run that.

Why is apt not seeing the 5.8?

In Software & Updates > Download from - Which server are you set to?

1 Like

server from italy

Please set that to "Main Server"
Close out Software & Updates and let it reload as you do.
Once done, in terminal run

sudo apt update

sudo apt --fix-missing update && sudo apt install -f

1 Like

same problem

Loading new amdgpu-17.40-492261 DKMS files...
Building for 5.13.0-28-generic
Building for architecture amd64
Building initial module for 5.13.0-28-generic
Error! Bad return status for module build on kernel: 5.13.0-28-generic (amd64)
Consult /var/lib/dkms/amdgpu/17.40-492261/build/make.log for more information.
dpkg: error processing package amdgpu-pro-dkms (--configure):
 installed amdgpu-pro-dkms package post-installation script subprocess returned 
error exit status 10
Errors were encountered while processing:
 amdgpu-pro-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

Now, run:

sudo dpkg --add-architecture i386

1 Like

done, what next?
I tried running

and the error is the same one

if it's a complex problem I can change the os directly to ubuntu