0

I am trying to install AMD drivers for my RX 480 8GB GPU and I'm following this article from AMD to install it.

When I get to the point of running this command

./amdgpu-pro-install -y

It throws an error saying: Unsupported DEB-based OS: /etc/os-release ID 'elementary'

I looked it up on the internet and I found one article about it. It was this one. In the answer, it says to find "ubuntu" string inside the code of the amdgpu-pro-install and replace it with debian. But I can't find the ubuntu string inside of that file, maybe the code changed since the question was asked.

What I see in that file is

function os_release() {
        if [[ -r  /etc/os-release ]]; then
                . /etc/os-release

                case "$ID" in
                ubuntu|linuxmint|debian)
                        :
                        ;;
                *)
                        echo "Unsupported DEB-based OS: `
                                `/etc/os-release ID '$ID'" | stderr
                        exit 1
                        ;;
                esac
        else
                echo "Unsupported OS" | stderr
                exit 1
        fi
}

There is ubuntu in the case but I don't think that's it.

What can I do?

1

you will must make some modifications in the system, look this link:

AMDGPU-Pro on Juno to improve performance and compability

| improve this answer | |
  • Does it matter if this answer is for Juno version? I am using Hera. – crodev Apr 26 at 18:12
  • sure! just change this: on line 3 of ID=elementary to ID=ubuntu and on line 6 of VERSION_ID = "5.1" to VERSION_ID = "18.04" – Javier A. May 2 at 18:39
0

If I understand the code correctly, it checks the name of the release (in your case elementary) and tries to match it to ubuntu|linuxmint|debian (| means or). If release is different from any of this options, it prints Unsupported DEB-based OS:.

Based on this, I would try to replace debian with elementary and see what happens.

| improve this answer | |
  • Exactly. You are absolutely right. | means or so just add after debian | elementary – Sysadmin Apr 26 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.