
每次我执行
./amdgpu-pro-install --opencl=pal,legacy
在
amdgpu-pro-21.10-1247438-ubuntu-20.04
文件夹,它会尝试安装它,但随后会崩溃并出现错误:
Errors were encountered while processing:
amdgpu-dkms
amdgpu
amdgpu-pro
amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)
Please Help, thanks.
我尝试过的事情:
- 本教程,但他们说“此设置不适用于每个 Linux 内核,因此请自行承担风险”,然后他们没有指定他们使用的内核。
sudo dpkg --configure -a
- 使用
5.8.0-55-generic
内核启动(我只有5.11.0-18-generic
并5.8.0-55-generic
安装了)
tweimann@lol:$ neofetch
tweimann@lol
OS: Ubuntu 21.04 x86_64
Kernel: 5.11.0-18-generic
Uptime: 21 mins
Packages: 4019 (dpkg), 16 (flatpak), 32 (snap)
Shell: bash 5.1.4
Resolution: 2560x1440, 1920x1080, 1440x2560
DE: GNOME 3.38.4
WM: Mutter
WM Theme: Adwaita
Theme: Adwaita-dark [GTK2/3]
Icons: Yaru [GTK2/3]
Terminal: gnome-terminal
CPU: Intel i7-9700K (8) @ 4.900GHz
GPU: Intel CoffeeLake-S GT2 [UHD Graphics 630]
GPU: AMD ATI Radeon RX 470/480/570/570X/580/580X/590
Memory: 6698MiB / 63219MiB
请帮忙,谢谢。
答案1
amd 发行说明:对于 Ubuntu 20.04.1,仅支持内核 5.4/5.6。不支持最新内核版本 5.8+。使用内核 5.8+ 的客户需要降级到 5.4/5.6 才能获得正确的驱动程序支持。
看来你必须降级到较低的内核版本
答案2
对我有用:
如果您对系统上的旧内核感到满意:
添加旧内核的存储库,例如 Groovy Gorilla 的旧存储库:
deb http://de.archive.ubuntu.com/ubuntu/ groovy main restricted
deb http://de.archive.ubuntu.com/ubuntu/ groovy-updates main restricted
已安装的内核 5.8 + 模块 + 标头:
apt install linux-image-5.8.0-53-generic linux-modules-extra-5.8.0-53-generic linux-headers-5.8.0-53-generic
将 /etc/os-release 中的 VERSION_ID 改回 20.04:
root@localhost /e/apt# cat /etc/os-release
NAME="Ubuntu"
VERSION="21.04 (Hirsute Hippo)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 21.04"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=hirsute
UBUNTU_CODENAME=hirsute
更改为提取的驱动程序目录,例如在下载中:
cd ~/Downloads/amdgpu-pro-20.50-1234664-ubuntu-20.04
运行安装程序:
./amdgpu-pro-install --opencl=rocr,legacy -y
重启。
然后,使用 xrandr 您应该能够看到 freesync 参数:
[user@localhost]➜ ~ xrandr --props | grep free
freesync_capable: 0
freesync: 0
freesync_capable: 0
freesync: 0
根据您的显示器连接(此处:DisplayPort-0),您可能能够将 freesync 更改为 1:
[user@localhost]➜ ~ xrandr --output DisplayPort-0 --set "freesync" 1
[user@localhost]➜ ~ xrandr --props | grep free
freesync_capable: 0
freesync: 1
freesync_capable: 0
freesync: 0
答案3
amdgpu-pro-21.30-1290604-ubuntu-20.04 仅在以下情况下才能在内核为 5.11.0-25 的 21.04 中安装并运行:
将 /etc/os-release 中的 VERSION_ID 改回 20.04:
在 blender 2.93.2 中测试