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?

  • Can you please tell where is the file exactly present in which we have to change the string? Commented Jan 5, 2022 at 12:39

3 Answers 3


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
    Commented Apr 26, 2020 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.
    Commented May 2, 2020 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
    Commented Apr 26, 2020 at 20:15
  • but there is a problem, many files have that check, is more "easy" if u do the system modification ;)
    – Javier A.
    Commented Aug 12, 2021 at 19:22


Could work, but since this mod is maybe needed in other files, faking your os ID may work better:

sudo mv /etc/os-release /etc/os-release-backup
sudo cat /etc/os-release-backup | sudo grep -v ^ID= > /etc/os-release-ubuntu
sudo echo "ID=ubuntu" >> /etc/os-release-ubuntu
sudo mv /etc/os-release-ubuntu /etc/os-release
cat /etc/os-release

then ./amdgpu-pro-install -y and to restore the backup and put back to what you had:

echo REMOVE KLUDGE OF OS RELEASE restore backup
sudo mv /etc/os-release        /etc/os-release-ubuntu
sudo mv /etc/os-release-backup /etc/os-release
cat /etc/os-release

Careful with the > it likes to wipe files. Use >> to add / append to them. Not sure if the order matters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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