Tuesday, November 22, 2016

AMD Radeon™ Software AMDGPU-PRO for Ubuntu 16.10

Just downloaded the latest version of AMDGPU-PRO driver and ran into some issues installing this on Ubuntu 16.10.  When I tried to install, I got the following error message:

root@miner01:~/downloads/amdgpu-pro-16.40-348864# ./amdgpu-pro-install
tee: /etc/aptsources.list.d/amdgpu-pro.list: No such file or directory
Turns out, there seems to be a problem with the source_list function.  Editing amdgpu-pro-install and changing the function from:
function source_list() {
        local dir etc sourceparts
        eval $(apt-config shell dir Dir)
        eval $(apt-config shell etc Dir::Etc)
        eval $(apt-config shell sourceparts Dir::Etc::sourceparts)
        echo ${dir}/${etc}/${sourceparts}/amdgpu-pro.list
and editing the sourceparts line to this:

        echo ${dir}/${etc}/${sourceparts}/amdgpu-pro.list

seems to fix the problem.  Hopefully this will help someone else out in the future.

No comments:

Post a Comment