amdgpu-pro 无法在 16.04 上安装

amdgpu-pro 无法在 16.04 上安装

我今天从 15.10 升级到了 16.04(是的,我迟到了 :-/),并尝试安装 amdgpu-pro 驱动程序。但是在下载并提取文件后,运行时amdgpu-pro-install出现以下错误:

$amdgpu-pro-driver/amdgpu-pro-install
[sudo] password for MYUSER: 
deb file:/var/opt/amdgpu-pro/ ./
Get:1 file:/var/opt/amdgpu-pro ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro ./ InRelease
Get:2 file:/var/opt/amdgpu-pro ./ Release
Ign:2 file:/var/opt/amdgpu-pro ./ Release
Get:3 file:/var/opt/amdgpu-pro ./ Packages
Ign:3 file:/var/opt/amdgpu-pro ./ Packages
Get:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Ign:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Get:5 file:/var/opt/amdgpu-pro ./ Translation-en
Ign:5 file:/var/opt/amdgpu-pro ./ Translation-en
Get:6 file:/var/opt/amdgpu-pro ./ Translation-de
Ign:6 file:/var/opt/amdgpu-pro ./ Translation-de
Get:3 file:/var/opt/amdgpu-pro ./ Packages
Ign:3 file:/var/opt/amdgpu-pro ./ Packages
Get:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Ign:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Get:5 file:/var/opt/amdgpu-pro ./ Translation-en
Ign:5 file:/var/opt/amdgpu-pro ./ Translation-en
Get:6 file:/var/opt/amdgpu-pro ./ Translation-de
Ign:6 file:/var/opt/amdgpu-pro ./ Translation-de
Get:3 file:/var/opt/amdgpu-pro ./ Packages
Ign:3 file:/var/opt/amdgpu-pro ./ Packages
Get:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Ign:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Get:5 file:/var/opt/amdgpu-pro ./ Translation-en
Ign:5 file:/var/opt/amdgpu-pro ./ Translation-en
Get:6 file:/var/opt/amdgpu-pro ./ Translation-de
Ign:6 file:/var/opt/amdgpu-pro ./ Translation-de
Get:3 file:/var/opt/amdgpu-pro ./ Packages [6.987 B]
Get:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Ign:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Get:5 file:/var/opt/amdgpu-pro ./ Translation-en
Ign:5 file:/var/opt/amdgpu-pro ./ Translation-en
Get:6 file:/var/opt/amdgpu-pro ./ Translation-de
Ign:6 file:/var/opt/amdgpu-pro ./ Translation-de
Get:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Ign:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Get:5 file:/var/opt/amdgpu-pro ./ Translation-en
Ign:5 file:/var/opt/amdgpu-pro ./ Translation-en
Get:6 file:/var/opt/amdgpu-pro ./ Translation-de
Ign:6 file:/var/opt/amdgpu-pro ./ Translation-de
Get:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Ign:4 file:/var/opt/amdgpu-pro ./ Translation-en_US
Get:5 file:/var/opt/amdgpu-pro ./ Translation-en
Ign:5 file:/var/opt/amdgpu-pro ./ Translation-en
Ign:3 file:/var/opt/amdgpu-pro ./ Packages
Get:6 file:/var/opt/amdgpu-pro ./ Translation-de
Ign:6 file:/var/opt/amdgpu-pro ./ Translation-de
Get:3 file:/var/opt/amdgpu-pro ./ Packages
Ign:3 file:/var/opt/amdgpu-pro ./ Packages
Get:3 file:/var/opt/amdgpu-pro ./ Packages
Err:3 file:/var/opt/amdgpu-pro ./ Packages
  File not found - /var/opt/amdgpu-pro/./Packages (2: No such file or directory)
Hit:7 http://de.archive.ubuntu.com/ubuntu xenial InRelease
Hit:8 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:9 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:10 http://security.ubuntu.com/ubuntu xenial-security InRelease
Reading package lists... Done
N: Can't drop privileges for downloading as file '/var/opt/amdgpu-pro/./InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
W: The repository 'file:/var/opt/amdgpu-pro ./ Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch file:/var/opt/amdgpu-pro/./Packages  File not found - /var/opt/amdgpu-pro/./Packages (2: No such file or directory)
E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree   
Reading state information... Done
E: Unable to locate package amdgpu-pro
E: Unable to locate package amdgpu-pro-lib32
E: Unable to locate package amdgpu-pro-dkms

我猜 AMD 只是搞砸了本地回购,但我对此不太了解。

感谢您的任何帮助!

一些系统信息(我认为这里并不重要):

显卡:Radeon R9380X

内核:4.4.0-38

答案1

您可以尝试以非 root 身份运行安装程序。

所以不要执行 sudo -i 或任何操作。

也不要 sudo ./amdgpu-pro-install。

只需以可以使用 sudo 命令的非特权用户身份运行即可。脚本将为您调用 sudo,但如果您已经是 root 用户,则稍后将无法“放弃”权限。存在错误,因为它假定了 umask,而它应该专门定义一个。

答案2

我同意,Ubuntu 16.10 和 amdgpu 版本 16.50-362463 也遇到了同样的错误。

我需要将函数 source_list() 的最后一行(第 69 行)从

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

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

来克服这些错误。

相关内容