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
                        echo "Unsupported DEB-based OS: `
                                `/etc/os-release ID '$ID'" | stderr
                        exit 1
                echo "Unsupported OS" | stderr
                exit 1

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

What can I do?


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

AMDGPU-Pro on Juno to improve performance and compability

  • Does it matter if this answer is for Juno version? I am using Hera.
    – crodev
    Apr 26 '20 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 '20 at 18:39

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.

  • Exactly. You are absolutely right. | means or so just add after debian | elementary
    – Sysadmin
    Apr 26 '20 at 20:15
  • but there is a problem, many files have that check, is more "easy" if u do the system modification ;)
    – Javier A.
    Aug 12 at 19:22

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.