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
  • Can you please tell where is the file exactly present in which we have to change the string? Jan 5 at 12:39

3 Answers 3

1

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

AMDGPU-Pro on Juno to improve performance and compability

2
  • Does it matter if this answer is for Juno version? I am using Hera.
    – crodev
    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.
    May 2, 2020 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.

2
  • Exactly. You are absolutely right. | means or so just add after debian | elementary
    – Sysadmin
    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.
    Aug 12, 2021 at 19:22
0

ubuntu|linuxmint|debian|zorin|kubuntu|elementary)

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

echo SETUP KLUDGE OF OS RELEASE to ubuntu
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, privacy policy and cookie policy

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