Ошибка при обработке пакета amdgpu dkms

I have tried to run sudo apt-get dist-upgrade but at the end I am getting this output:

Loading new amdgpu-5.6.0.15-1098277 DKMS files...
Building for 5.11.0-40-generic 5.13.0-30-generic
Building for architecture x86_64
Building initial module for 5.11.0-40-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-firmware.0.crash'
Error! Bad return status for module build on kernel: 5.11.0-40-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.0.15-1098277); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
Setting up gir1.2-polkit-1.0 (0.105-26ubuntu1.3) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)

The /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log is too comprehensive to post here I think, but here are few last lines:

cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_bo_manager.o] Error 1
make[1]: *** [scripts/Makefile.build:519: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm] Error 2
make: *** [Makefile:1849: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.11.0-40-generic'

I am using a laptop with dedicated nvidia GPU, but most of the time running on integrated AMD GPU. Another problem which I have posted here recently was with no video signal from any port (usb-c, hdmi). I haven’t worked that out yet, but it may be related somehow.

When I’m uninstalling something via Ubuntu Software i get a popup saying:

Unable to remove "app_name":
Error while installing package: installed amdgpu-dkms package
post-installation script subprocess returned error exit status 10

EDIT:

apt-cache policy amdgpu amdgpu-dkms output:

amdgpu:
  Installed: 20.20-1098277
  Candidate: 20.20-1098277
  Version table:
 *** 20.20-1098277 1000
        500 file:/var/opt/amdgpu-pro-local ./ Packages
        100 /var/lib/dpkg/status
amdgpu-dkms:
  Installed: 1:5.6.0.15-1098277
  Candidate: 1:5.6.0.15-1098277
  Version table:
 *** 1:5.6.0.15-1098277 1000
        500 file:/var/opt/amdgpu-pro-local ./ Packages
        100 /var/lib/dpkg/status

dkms status output:

amdgpu, 5.6.0.15-1098277: added

uname -r output:

5.11.0-40-generic

Всем доброго дня!

Очень вери нид хэлп ;(

Предыстория.
После установки Ubu 21.04 на моём HP ноуте HP 15=bw518ur при загрузке стала яркость 30%. Но менялась в верхнем баре и FN на нужную и держалась до перезагрузки. Перепробовал многие рецепты — толку 0. Но работало и ладно, менял каждый раз при загрузке.

Обновился до 21.10 (пробовал ставить новую чистую копию на другой диск с 0 — аналогично). При загрузке xorg сразу срывало изображение, либо загружалось нормально, но при выходе из хранителя экрана, сна или гибернации — срыв изображения. Работало нормально в Wayland. Но после очередного обновления ядра, стало срывать и в Wayland. Решил, что проблема в дровах и совместимости с видюхой:

*-display UNCLAIMED       
       описание: VGA compatible controller
       продукт: Stoney [Radeon R2/R3/R4/R5 Graphics]
       производитель: Advanced Micro Devices, Inc. [AMD/ATI]
       физический ID: 1
       сведения о шине: pci@0000:00:01.0
       версия: da
       разрядность: 64 bits
       частота: 33MHz
       возможности: pm pciexpress msi vga_controller bus_master cap_list
       конфигурация: latency=0
       ресурсы: память:e0000000-efffffff память:f0800000-f0ffffff ioport:5000(размер=256) память:f0500000-f053ffff память:c0000-dffff
  *-display UNCLAIMED
       описание: Display controller
       продукт: Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile]
       производитель: Advanced Micro Devices, Inc. [AMD/ATI]
       физический ID: 0
       сведения о шине: pci@0000:01:00.0
       версия: 83
       разрядность: 64 bits
       частота: 33MHz
       возможности: pm pciexpress msi cap_list
       конфигурация: latency=0
       ресурсы: память:d0000000-dfffffff память:f0400000-f043ffff ioport:4000(размер=256) память:f0440000-f045ffff
Погуглил и напоролся на дрова от ATi Radeon™ Software for Linux® 21.30. Загрузил, установил. При установке получаю ошибку:

Настраивается пакет amdgpu-dkms (1:5.11.19.98-1290604) …
Removing old amdgpu-5.11.19.98-1290604 DKMS files...

------------------------------
Deleting module version: 5.11.19.98-1290604
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.11.19.98-1290604 DKMS files...
Building for 5.13.0-21-generic
Building for architecture x86_64
Building initial module for 5.13.0-21-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-fir
mware.0.crash'
Error! Bad return status for module build on kernel: 5.13.0-21-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.11.19.98-1290604/build/make.log for more informat
ion.
dpkg: ошибка при обработке пакета amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
dpkg: зависимости пакетов не позволяют настроить пакет amdgpu:
 amdgpu зависит от amdgpu-dkms (= 1:5.11.19.98-1290604), однако:
  Пакет amdgpu-dkms пока не настроен.

dpkg: ошибка при обработке пакета amdgpu (--configure):
 проблемы зависимостей — оставляем не настроенным
Отчёт apport не записан, так как сообщение об ошибке указывает на повторную ошиб
ку от предыдущего отказа.
                         При обработке следующих пакетов произошли ошибки:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)

При этом — система работает стабильно, изображение не срывает, но… не регулируется яркость. Совсем. Не реагирует вообще ни на что. Попытался снести эти драйвера и после перезагрузки не грузятся иксы. Пыпадаю в терминал, логинюсь, реконфигурю иксы и хрен. Восстанавливаю эти дрова и всё работает, акромя яркости.

Вопрос — можно ли пофиксить работу с этими дровами, либо как их снести к чёртовой матери и загрузить открытые дрова, что Ubuntu ставит. video-radeon не находится в репо.

Буду безумно признателен. Глаза вылазиют уже. А работать надо ;(

1 / 1 / 0

Регистрация: 17.01.2020

Сообщений: 15

1

Не ставятся драйвера интегрированой видеокарты

13.12.2020, 22:52. Показов 11279. Ответов 5


Студворк — интернет-сервис помощи студентам

Пытаюсь уже не один час поставить драйвера для интегрированной графики процессора AMD Ryzen 5 4500U на убунту 20.04, но в конце установки пишет: При обработке следующих пакетов произошли ошибки:
amdgpu-dkms
amdgpu
не понимаю в чем проблема. Архив с дровами скачал с оф сайта амд, пробовал уже использовать sudo apt-get install -f но в итоге ничего не помогло. Прорыл весь гугл в поиске ответа но ничего не нашел. Может кто-то тут подскажет что делать.



0



Эксперт по компьютерным сетямЭксперт NIX

12712 / 7281 / 772

Регистрация: 09.09.2009

Сообщений: 28,438

14.12.2020, 00:57

2

в тырнетах пишут, вроде как ядро версии 5.8 уже поддерживает Ryzen и для 20.04 предлагают поставить пакет

Код

sudo apt install linux-generic-hwe-20.04

…а если не поможет, то тогда

Код

sudo apt install linux-generic-hwe-20.04-edge



0



Эксперт NIX

2925 / 816 / 184

Регистрация: 14.01.2013

Сообщений: 3,785

14.12.2020, 04:11

3

Цитата
Сообщение от mc0souce
Посмотреть сообщение

При обработке следующих пакетов произошли ошибки:
amdgpu-dkms
amdgpu

Лучше бы выхлоп консоли сюда запостили.



0



1 / 1 / 0

Регистрация: 17.01.2020

Сообщений: 15

14.12.2020, 14:06

 [ТС]

4

Не помогло, по прежнему выбрасывает ощибку при установке.

Код

Настраивается пакет amdgpu-dkms (1:5.6.0.15-1098277) …
Loading new amdgpu-5.6.0.15-1098277 DKMS files...
Building for 5.4.0-58-generic 5.8.0-33-generic
Building for architecture x86_64
Building initial module for 5.4.0-58-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-fi
rmware.0.crash'
Error! Bad return status for module build on kernel: 5.4.0-58-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more informati
on.
dpkg: ошибка при обработке пакета amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned err
or exit status 10
dpkg: зависимости пакетов не позволяют настроить пакет amdgpu:
 amdgpu зависит от amdgpu-dkms (= 1:5.6.0.15-1098277), однако:
  Пакет amdgpu-dkms пока не настроен.

dpkg: ошибка при обработке пакета amdgpu (--configure):
 проблемы зависимостей — оставляем не настроенным
Настраивается пакет xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1098277) …
Отчёт apport не записан, так как сообщение об ошибке указывает на повторную оши
бку от предыдущего отказа.
                          Настраивается пакет mesa-amdgpu-omx-drivers:amd64 (1:
20.0.5-1098277) …
Настраивается пакет libegl1-amdgpu-mesa:amd64 (1:20.0.5-1098277) …
Настраивается пакет libegl1-amdgpu-mesa:i386 (1:20.0.5-1098277) …
Настраивается пакет libgl1-amdgpu-mesa-glx:amd64 (1:20.0.5-1098277) …
Настраивается пакет libgl1-amdgpu-mesa-glx:i386 (1:20.0.5-1098277) …
Настраивается пакет libgles2-amdgpu-mesa:amd64 (1:20.0.5-1098277) …
Настраивается пакет libgles2-amdgpu-mesa:i386 (1:20.0.5-1098277) …
Настраивается пакет libgl1-amdgpu-mesa-dri:amd64 (1:20.0.5-1098277) …
Настраивается пакет libgl1-amdgpu-mesa-dri:i386 (1:20.0.5-1098277) …
Настраивается пакет libosmesa6-amdgpu:amd64 (1:20.0.5-1098277) …
Настраивается пакет libosmesa6-amdgpu:i386 (1:20.0.5-1098277) …
Настраивается пакет libegl1-amdgpu-mesa-drivers:amd64 (1:20.0.5-1098277) …
Настраивается пакет libegl1-amdgpu-mesa-drivers:i386 (1:20.0.5-1098277) …
Настраивается пакет amdgpu-lib (20.20-1098277) …
Настраивается пакет amdgpu-lib32 (20.20-1098277) …
Обрабатываются триггеры для libc-bin (2.31-0ubuntu9.1) …
При обработке следующих пакетов произошли ошибки:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)

Добавлено через 34 секунды



0



Эксперт по компьютерным сетямЭксперт NIX

12712 / 7281 / 772

Регистрация: 09.09.2009

Сообщений: 28,438

14.12.2020, 14:45

5

  • начнем с того, что заметки про ядро 5.8 подразумевали наличие драйвера под райзен В САМОМ ЯДРЕ
  • а продолжим вопросом о том, уверены ли вы, что драйвер который вы пытаетесь поставить, ДЕЙСТВИТЕЛЬНО ПОДДЕРЖИВАЕТ имеющуюся в вашем компе видюшку? а то вот нашел я тут какую-то страницу на сайте амд, где перечислены модели, которые он поддерживает, и там никаких райзенов в упор не видать:

Не ставятся драйвера интегрированой видеокарты



0



Kubuntovod

Эксперт NIX

2925 / 816 / 184

Регистрация: 14.01.2013

Сообщений: 3,785

14.12.2020, 14:54

6

Цитата
Сообщение от mc0souce
Посмотреть сообщение

ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms-fi
rmware.0.crash’

Bash
1
sudo rm /var/crash/amdgpu-dkms-firmware.0.crash

Цитата
Сообщение от mc0souce
Посмотреть сообщение

Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more information.

Не пренебрегайте советами. Почитайте лог. Возможно, там будет более подробная инфа.



0



Summary:
both amdgpu and amdgpu-pro-20.45-1188099 fail to install on fresh Ubuntu 20.04.2.0 LTS system.
failure is on [amdgpu-dkms] 

Expected behavior: 
amdgpu-pro 20.45 should install on Ubuntu 20.04.2.0 LTS system without issue

  • Screen recording of install attempts and errors: 
    https://www.screencast.com/t/OU9WUUdFZL
    (to help prove I am a reasonably sane end user)
  • Pastebin for terminal output: 
    https://pastebin.com/HMicfcYp
  • Pastebin for the make.log: 
    https://pastebin.com/1v34Q2kZ
    /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log
  • Pastebin for DKMS crash:
    https://pastebin.com/FqNK4Jg9
    /var/crash/amdgpu-dkms.0.crash

FILES USED: 

  • Ubuntu 20.04.2.0 LTS (Focal Fossa)
    • https://releases.ubuntu.com/focal/
    • standard iso loaded onto usb: 
      https://ubuntu.com/tutorials/create-a-usb-stick-on-ubuntu#1-overview
    • Linux 5.8.0-45-generic
  • Radeon™ Software for Linux® version 20.45 for Ubuntu 20.04.1
    • https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-45
    • https://drivers.amd.com/drivers/linux/amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz

HARDWARE

  • CPU: Ryzen 3950
  • MB: B550M Pro VDH Wifi
  • GPU: Vega 10 XL/XT [Radeon RX Vega 56] 
  • PSU: Corsair 1000gold

TO RECREATE ISSUE:

  • Fresh install of Ubuntu 20 LTS from usb onto new SSD
    • log in, make sure system works
      • reboot
      • sudo apt update
      • reboot
    • log in, make sure system works — all good
  • Download and install
    • unpack: amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz 
      • $ ./amdgpu-install -y
      • fails [see errors below]
  • reboot
    • black screen — Ubuntu wont start
    • To fix have to sideload GRUB [alt+right] and uninstall via command line
      • amdgpu-pro-uninstall
      • reboot
    • system powers up and GPU works again
    • However, NO openCL drivers

Other Attempts:

  • None of the existing forum suggestions fix the problem
    • fresh wipe/install of Ubuntu does not fix issue
    • trying to use «—no-dkms» does not work as this command does not exist anymore
    • no solution: https://community.amd.com/t5/drivers-software/amdgpu-20-40-fails-on-fresh-install-of-ub…
      • downgrading kernel 5.8.0 —> 5.4.0 has been suggested
        but does not work (or I am not doing it correctly)
    • no solution: https://community.amd.com/t5/drivers-software/amdgpu-pro-20-45-install-fails-on-ubuntu-…
  • all of the following fail
    • $ ./amdgpu-install -y
    • $ ./amdgpu-pro-install -y
    • $ ./amdgpu-pro-install -y —opencl=pal,legacy —headless
  • Results are always the same for each failure [posted below]
  • To reproduce this issue simply try to install amdgpu-pro on any Ubuntu 20 LTS system
    • I suspect you will get the same results.

At this time I am unable to build and deliver systems to customers with working drivers and GPU’s in them. Thus far my only solution has been to clone an old drive I have which has previous version of Ubuntu 20LTS and the amdgpu-pro 17 driver. This of course is not ideal because then I have to tell people to never apt update the system… 

I remain hopeful a solution will be released, please advise. However, I would humbly ask you attempt a fresh install to see for yourself what’s going on here.

========== ERROR OUTPUT ===========

sudo ./amdgpu-pro-install -y

[removed download lines and skipped to first failure]

Setting up amdgpu-dkms (1:5.6.20.906316-1188099) …
Loading new amdgpu-5.6.20.906316-1188099 DKMS files…
Building for 5.8.0-45-generic
Building for architecture x86_64
Building initial module for 5.8.0-45-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms.0.crash’
Error! Bad return status for module build on kernel: 5.8.0-45-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (—configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (—configure):
dependency problems — leaving unconfigured
Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1188099) …
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up mesa-amdgpu-omx-
drivers:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1188099) …
Setting up amdgpu-pro-core (20.45-1188099) …
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1188099) …
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1188099) …
Setting up vulkan-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1188099) …
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1188099) …
dpkg: dependency problems prevent configuration of amdgpu-pro:
amdgpu-pro depends on amdgpu (= 20.45-1188099); however:
Package amdgpu is not configured yet.

dpkg: error processing package amdgpu-pro (—configure):
dependency problems — leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems p
revent configuration of amdgpu-pro-lib32:
amdgpu-pro-lib32 depends on amdgpu (= 20.45-1188099) | amdgpu-hwe (= 20.45-1188099); however:
Package amdgpu is not configured yet.
Package amdgpu-hwe is not installed.
amdgpu-pro-lib32 depends on amdgpu-pro (= 20.45-1188099) | amdgpu-pro-hwe (= 20.45-1188099); however:
Package amdgpu-pro is not configured yet.
Package amdgpu-pro-hwe is not installed.

dpkg: error processing package amdgpu-pro-lib32 (—configure):
dependency problems — leaving unconfigured
Setting up libglapi1-amdgpu-pro:amd64 (20.45-1188099) …
No apport report written because MaxReports is reached already
Setting up libglapi1-amdgpu-pro:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-dri:amd64 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-dri:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-appprofiles (20.45-1188099) …
Setting up libegl1-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libegl1-amdgpu-pro:i386 (20.45-1188099) …
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1188099) …
Setting up libgles2-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libgles2-amdgpu-pro:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-glx:amd64 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-glx:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-ext:amd64 (20.45-1188099) …
Setting up amdgpu-lib (20.45-1188099) …
Setting up amdgpu-lib32 (20.45-1188099) …
Processing triggers for libc-bin (2.31-0ubuntu9.2) …
Errors were encountered while processing:
amdgpu-dkms
amdgpu
amdgpu-pro
amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)

========== END ===========

1 / 1 / 0

Регистрация: 17.01.2020

Сообщений: 15

1

Не ставятся драйвера интегрированой видеокарты

13.12.2020, 22:52. Показов 10488. Ответов 5


Пытаюсь уже не один час поставить драйвера для интегрированной графики процессора AMD Ryzen 5 4500U на убунту 20.04, но в конце установки пишет: При обработке следующих пакетов произошли ошибки:
amdgpu-dkms
amdgpu
не понимаю в чем проблема. Архив с дровами скачал с оф сайта амд, пробовал уже использовать sudo apt-get install -f но в итоге ничего не помогло. Прорыл весь гугл в поиске ответа но ничего не нашел. Может кто-то тут подскажет что делать.

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

0

Эксперт по компьютерным сетямЭксперт NIX

12380 / 7220 / 757

Регистрация: 09.09.2009

Сообщений: 28,177

14.12.2020, 00:57

2

в тырнетах пишут, вроде как ядро версии 5.8 уже поддерживает Ryzen и для 20.04 предлагают поставить пакет

Код

sudo apt install linux-generic-hwe-20.04

…а если не поможет, то тогда

Код

sudo apt install linux-generic-hwe-20.04-edge

0

Эксперт NIX

2657 / 776 / 173

Регистрация: 14.01.2013

Сообщений: 3,573

14.12.2020, 04:11

3

Цитата
Сообщение от mc0souce
Посмотреть сообщение

При обработке следующих пакетов произошли ошибки:
amdgpu-dkms
amdgpu

Лучше бы выхлоп консоли сюда запостили.

0

1 / 1 / 0

Регистрация: 17.01.2020

Сообщений: 15

14.12.2020, 14:06

 [ТС]

4

Не помогло, по прежнему выбрасывает ощибку при установке.

Код

Настраивается пакет amdgpu-dkms (1:5.6.0.15-1098277) …
Loading new amdgpu-5.6.0.15-1098277 DKMS files...
Building for 5.4.0-58-generic 5.8.0-33-generic
Building for architecture x86_64
Building initial module for 5.4.0-58-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-fi
rmware.0.crash'
Error! Bad return status for module build on kernel: 5.4.0-58-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more informati
on.
dpkg: ошибка при обработке пакета amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned err
or exit status 10
dpkg: зависимости пакетов не позволяют настроить пакет amdgpu:
 amdgpu зависит от amdgpu-dkms (= 1:5.6.0.15-1098277), однако:
  Пакет amdgpu-dkms пока не настроен.

dpkg: ошибка при обработке пакета amdgpu (--configure):
 проблемы зависимостей — оставляем не настроенным
Настраивается пакет xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1098277) …
Отчёт apport не записан, так как сообщение об ошибке указывает на повторную оши
бку от предыдущего отказа.
                          Настраивается пакет mesa-amdgpu-omx-drivers:amd64 (1:
20.0.5-1098277) …
Настраивается пакет libegl1-amdgpu-mesa:amd64 (1:20.0.5-1098277) …
Настраивается пакет libegl1-amdgpu-mesa:i386 (1:20.0.5-1098277) …
Настраивается пакет libgl1-amdgpu-mesa-glx:amd64 (1:20.0.5-1098277) …
Настраивается пакет libgl1-amdgpu-mesa-glx:i386 (1:20.0.5-1098277) …
Настраивается пакет libgles2-amdgpu-mesa:amd64 (1:20.0.5-1098277) …
Настраивается пакет libgles2-amdgpu-mesa:i386 (1:20.0.5-1098277) …
Настраивается пакет libgl1-amdgpu-mesa-dri:amd64 (1:20.0.5-1098277) …
Настраивается пакет libgl1-amdgpu-mesa-dri:i386 (1:20.0.5-1098277) …
Настраивается пакет libosmesa6-amdgpu:amd64 (1:20.0.5-1098277) …
Настраивается пакет libosmesa6-amdgpu:i386 (1:20.0.5-1098277) …
Настраивается пакет libegl1-amdgpu-mesa-drivers:amd64 (1:20.0.5-1098277) …
Настраивается пакет libegl1-amdgpu-mesa-drivers:i386 (1:20.0.5-1098277) …
Настраивается пакет amdgpu-lib (20.20-1098277) …
Настраивается пакет amdgpu-lib32 (20.20-1098277) …
Обрабатываются триггеры для libc-bin (2.31-0ubuntu9.1) …
При обработке следующих пакетов произошли ошибки:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)

Добавлено через 34 секунды

0

Эксперт по компьютерным сетямЭксперт NIX

12380 / 7220 / 757

Регистрация: 09.09.2009

Сообщений: 28,177

14.12.2020, 14:45

5

  • начнем с того, что заметки про ядро 5.8 подразумевали наличие драйвера под райзен В САМОМ ЯДРЕ
  • а продолжим вопросом о том, уверены ли вы, что драйвер который вы пытаетесь поставить, ДЕЙСТВИТЕЛЬНО ПОДДЕРЖИВАЕТ имеющуюся в вашем компе видюшку? а то вот нашел я тут какую-то страницу на сайте амд, где перечислены модели, которые он поддерживает, и там никаких райзенов в упор не видать:

Не ставятся драйвера интегрированой видеокарты

0

Kubuntovod

Эксперт NIX

2657 / 776 / 173

Регистрация: 14.01.2013

Сообщений: 3,573

14.12.2020, 14:54

6

Цитата
Сообщение от mc0souce
Посмотреть сообщение

ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms-fi
rmware.0.crash’

Bash
1
sudo rm /var/crash/amdgpu-dkms-firmware.0.crash

Цитата
Сообщение от mc0souce
Посмотреть сообщение

Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more information.

Не пренебрегайте советами. Почитайте лог. Возможно, там будет более подробная инфа.

0

Всем доброго дня!

Очень вери нид хэлп ;(

Предыстория.
После установки Ubu 21.04 на моём HP ноуте HP 15=bw518ur при загрузке стала яркость 30%. Но менялась в верхнем баре и FN на нужную и держалась до перезагрузки. Перепробовал многие рецепты — толку 0. Но работало и ладно, менял каждый раз при загрузке.

Обновился до 21.10 (пробовал ставить новую чистую копию на другой диск с 0 — аналогично). При загрузке xorg сразу срывало изображение, либо загружалось нормально, но при выходе из хранителя экрана, сна или гибернации — срыв изображения. Работало нормально в Wayland. Но после очередного обновления ядра, стало срывать и в Wayland. Решил, что проблема в дровах и совместимости с видюхой:

*-display UNCLAIMED       
       описание: VGA compatible controller
       продукт: Stoney [Radeon R2/R3/R4/R5 Graphics]
       производитель: Advanced Micro Devices, Inc. [AMD/ATI]
       физический ID: 1
       сведения о шине: pci@0000:00:01.0
       версия: da
       разрядность: 64 bits
       частота: 33MHz
       возможности: pm pciexpress msi vga_controller bus_master cap_list
       конфигурация: latency=0
       ресурсы: память:e0000000-efffffff память:f0800000-f0ffffff ioport:5000(размер=256) память:f0500000-f053ffff память:c0000-dffff
  *-display UNCLAIMED
       описание: Display controller
       продукт: Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile]
       производитель: Advanced Micro Devices, Inc. [AMD/ATI]
       физический ID: 0
       сведения о шине: pci@0000:01:00.0
       версия: 83
       разрядность: 64 bits
       частота: 33MHz
       возможности: pm pciexpress msi cap_list
       конфигурация: latency=0
       ресурсы: память:d0000000-dfffffff память:f0400000-f043ffff ioport:4000(размер=256) память:f0440000-f045ffff
Погуглил и напоролся на дрова от ATi Radeon™ Software for Linux® 21.30. Загрузил, установил. При установке получаю ошибку:

Настраивается пакет amdgpu-dkms (1:5.11.19.98-1290604) …
Removing old amdgpu-5.11.19.98-1290604 DKMS files...

------------------------------
Deleting module version: 5.11.19.98-1290604
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.11.19.98-1290604 DKMS files...
Building for 5.13.0-21-generic
Building for architecture x86_64
Building initial module for 5.13.0-21-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-fir
mware.0.crash'
Error! Bad return status for module build on kernel: 5.13.0-21-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.11.19.98-1290604/build/make.log for more informat
ion.
dpkg: ошибка при обработке пакета amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
dpkg: зависимости пакетов не позволяют настроить пакет amdgpu:
 amdgpu зависит от amdgpu-dkms (= 1:5.11.19.98-1290604), однако:
  Пакет amdgpu-dkms пока не настроен.

dpkg: ошибка при обработке пакета amdgpu (--configure):
 проблемы зависимостей — оставляем не настроенным
Отчёт apport не записан, так как сообщение об ошибке указывает на повторную ошиб
ку от предыдущего отказа.
                         При обработке следующих пакетов произошли ошибки:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)

При этом — система работает стабильно, изображение не срывает, но… не регулируется яркость. Совсем. Не реагирует вообще ни на что. Попытался снести эти драйвера и после перезагрузки не грузятся иксы. Пыпадаю в терминал, логинюсь, реконфигурю иксы и хрен. Восстанавливаю эти дрова и всё работает, акромя яркости.

Вопрос — можно ли пофиксить работу с этими дровами, либо как их снести к чёртовой матери и загрузить открытые дрова, что Ubuntu ставит. video-radeon не находится в репо.

Буду безумно признателен. Глаза вылазиют уже. А работать надо ;(

I had amdgpu-pro 17.40 installed and running fine but had some issues with a specific display (Dell U3014) not working over displayport. I opened a ticket with AMD and they suggested an update to amdgpu-pro 17.50.

Running the installer for amdgpu-pro 17.50 failed and has broken package manager such that I can not install or uninstall anything. I have reached out to AMD for help but have not gotten any response in 5 days…simply that they are still looking into it.

The results of install script and attempts to fix are:

 ./amdgpu-pro-install 
[sudo] password for xxxx: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 amdgpu : Depends: amdgpu-core (= 17.50-511655) but it is not going to be installed
          Depends: amdgpu-dkms (= 17.50-511655) but it is not going to be installed
          Depends: libdrm2-amdgpu (= 1:2.4.82-511655) but it is not going to be installed
 amdgpu-lib32 : Depends: libdrm2-amdgpu:i386 (= 1:2.4.82-511655)
 glamor-amdgpu : Depends: amdgpu-core but it is not going to be installed
                 Depends: libdrm2-amdgpu but it is not going to be installed
 gst-omx-amdgpu : Depends: amdgpu-core but it is not going to be installed
 ids-amdgpu : Depends: amdgpu-core but it is not going to be installed
 libdrm-amdgpu-amdgpu1:i386 : Depends: libdrm2-amdgpu:i386 (= 1:2.4.82-511655) but it is not going to be installed
 libdrm-amdgpu-amdgpu1 : Depends: libdrm2-amdgpu (= 1:2.4.82-511655) but it is not going to be installed
 libegl1-amdgpu-mesa:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
                            Depends: amdgpu-core:i386
 libegl1-amdgpu-mesa : Depends: libdrm2-amdgpu but it is not going to be installed
                       Depends: amdgpu-core but it is not going to be installed
 libgbm1-amdgpu:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
                       Depends: amdgpu-core:i386
 libgbm1-amdgpu : Depends: libdrm2-amdgpu but it is not going to be installed
                  Depends: amdgpu-core but it is not going to be installed
 libgl1-amdgpu-mesa-dri:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
                               Depends: amdgpu-core:i386
 libgl1-amdgpu-mesa-dri : Depends: libdrm2-amdgpu but it is not going to be installed
                          Depends: amdgpu-core but it is not going to be installed
 libgl1-amdgpu-mesa-glx:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
 libgl1-amdgpu-mesa-glx : Depends: libdrm2-amdgpu but it is not going to be installed
 libglapi-amdgpu-mesa:i386 : Depends: amdgpu-core:i386
 libglapi-amdgpu-mesa : Depends: amdgpu-core but it is not going to be installed
 libllvm5.0-amdgpu:i386 : Depends: amdgpu-core:i386
 libllvm5.0-amdgpu : Depends: amdgpu-core but it is not going to be installed
 libwayland-amdgpu-client0:i386 : Depends: amdgpu-core:i386
 libwayland-amdgpu-client0 : Depends: amdgpu-core but it is not going to be installed
 libwayland-amdgpu-server0:i386 : Depends: amdgpu-core:i386
 libwayland-amdgpu-server0 : Depends: amdgpu-core but it is not going to be installed
 libxatracker2-amdgpu:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
 libxatracker2-amdgpu : Depends: libdrm2-amdgpu but it is not going to be installed
 mesa-amdgpu-omx-drivers : Depends: libdrm2-amdgpu but it is not going to be installed
 mesa-amdgpu-vdpau-drivers:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
                                  Depends: amdgpu-core:i386
 mesa-amdgpu-vdpau-drivers : Depends: libdrm2-amdgpu but it is not going to be installed
                             Depends: amdgpu-core but it is not going to be installed
 xserver-xorg-amdgpu-video-amdgpu : Depends: amdgpu-core but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

And then, attempting to fix:

sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  cinnamon-desktop-data gyp javascript-common libcinnamon-desktop4 libjs-inherits libjs-jquery libjs-node-uuid libjs-underscore libssl-dev libssl-doc
  libuv1 libuv1-dev linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic linux-image-4.10.0-28-generic linux-image-extra-4.10.0-28-generic
  node-abbrev node-ansi node-ansi-color-table node-archy node-async node-block-stream node-combined-stream node-cookie-jar node-delayed-stream
  node-forever-agent node-form-data node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp node-inherits
  node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
  node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read node-read-package-json node-request node-retry node-rimraf
  node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which zlib1g-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  amdgpu-dkms libdrm2-amdgpu:i386 libdrm2-amdgpu
The following NEW packages will be installed:
  amdgpu-dkms libdrm2-amdgpu:i386 libdrm2-amdgpu
0 upgraded, 3 newly installed, 0 to remove and 56 not upgraded.
46 not fully installed or removed.
Need to get 0 B/5,638 kB of archives.
After this operation, 127 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/opt/amdgpu-pro-local ./ amdgpu-dkms 17.50-511655 [5,578 kB]
Get:2 file:/var/opt/amdgpu-pro-local ./ libdrm2-amdgpu 1:2.4.82-511655 [29.5 kB]
Get:3 file:/var/opt/amdgpu-pro-local ./ libdrm2-amdgpu 1:2.4.82-511655 [30.5 kB]
(Reading database ... 334828 files and directories currently installed.)
Preparing to unpack .../amdgpu-dkms_17.50-511655_all.deb ...
Unpacking amdgpu-dkms (17.50-511655) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./amdgpu-dkms_17.50-511655_all.deb (--unpack):
 trying to overwrite '/etc/modprobe.d/blacklist-radeon.conf', which is also in package amdgpu-pro-dkms 17.40-492261
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libdrm2-amdgpu_2.4.82-511655_amd64.deb ...
Unpacking libdrm2-amdgpu:amd64 (1:2.4.82-511655) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_amd64.deb (--unpack):
 trying to overwrite '/lib/udev/rules.d/91-amdgpu-pro-modeset.rules', which is also in package libdrm2-amdgpu-pro:i386 1:2.4.82-492261
Preparing to unpack .../libdrm2-amdgpu_2.4.82-511655_i386.deb ...
Unpacking libdrm2-amdgpu:i386 (1:2.4.82-511655) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_i386.deb (--unpack):
 trying to overwrite '/lib/udev/rules.d/91-amdgpu-pro-modeset.rules', which is also in package libdrm2-amdgpu-pro:i386 1:2.4.82-492261
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
 /var/opt/amdgpu-pro-local/./amdgpu-dkms_17.50-511655_all.deb
 /var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_amd64.deb
 /var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I would appreciate any ideas/guidance on how to fix this issue. At this point apt cant install or uninstall anything at all.

Distribution (run cat /etc/os-release):

> cat /etc/os-release 
NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

> apt policy linux-headers-5.4.0-7634-generic
linux-headers-5.4.0-7634-generic:
  Installed: 5.4.0-7634.38~1592497129~20.04~9a1ea2e
  Candidate: 5.4.0-7634.38~1592497129~20.04~9a1ea2e
  Version table:
 *** 5.4.0-7634.38~1592497129~20.04~9a1ea2e 1001
       1001 http://ppa.launchpad.net/system76/pop/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
> apt policy linux-headers-generic
linux-headers-generic:
  Installed: 5.4.0.7634.38~1592497129~20.04~9a1ea2e
  Candidate: 5.4.0.7634.38~1592497129~20.04~9a1ea2e
  Version table:
 *** 5.4.0.7634.38~1592497129~20.04~9a1ea2e 1001
       1001 http://ppa.launchpad.net/system76/pop/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     5.4.0.40.43 500
        500 http://us.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
     5.4.0.26.32 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages

Issue/Bug Description:
When trying to install amdgpu-pro drivers version 20.20 for Ubuntu 20.04 that are required to use DaVinci Resolve, as it needs recent OpenCL version, amdgpu-dkms installation fails with error:

ERROR (dkms apport): kernel package linux-headers-5.4.0-7634-generic is not supported
Error! Bad return status for module build on kernel: 5.4.0-7634-generic (amd64)

Steps to reproduce (if you know):

~/D/amdgpu-pro-20.20-1089974-ubuntu-20.04> ./amdgpu-pro-install --opencl=pal

It spends some time on amdgpu-dkms installation, and then fails with the following error output (previous dkms output is overwritten when the error happens, so I cannot copy it): https://gist.github.com/0x1eaf/3c2a18a6cd7ee80a181e37f1effb9686

I’ve managed to get the actual error output that gets overwritten, by running:

~/D/amdgpu-pro-20.20-1089974-ubuntu-20.04> sudo dpkg -i amdgpu-dkms_5.6.0.13-1089974_all.deb
(Reading database ... 223600 files and directories currently installed.)
Preparing to unpack amdgpu-dkms_5.6.0.13-1089974_all.deb ...

------------------------------
Deleting module version: 5.6.0.13-1089974
completely from the DKMS tree.
------------------------------
Done.
Unpacking amdgpu-dkms (1:5.6.0.13-1089974) over (1:5.6.0.13-1089974) ...
Setting up amdgpu-dkms (1:5.6.0.13-1089974) ...
Loading new amdgpu-5.6.0.13-1089974 DKMS files...
Building for 5.4.0-7634-generic
Building for architecture amd64
Building initial module for 5.4.0-7634-generic
ERROR (dkms apport): kernel package linux-headers-5.4.0-7634-generic is not supported
Error! Bad return status for module build on kernel: 5.4.0-7634-generic (amd64)
Consult /var/lib/dkms/amdgpu/5.6.0.13-1089974/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--install):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 amdgpu-dkms

The linux-headers package version, mentioned in the error, matches the kernel version:

> uname -r
5.4.0-7634-generic

Looking at DKMS code it seems that the error is triggered whenever is_distro_package() returns False or raises an exception that package does not exist. To see if it raises an exception or simply returns False, I’ve ran:

> python3
Python 3.8.2 (default, Apr 27 2020, 15:53:34) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import apport
>>> apport.packaging.is_distro_package("linux-headers-5.4.0-7634-generic")
False
>>> 

So the culprit seems to be that is_distro_package("linux-headers-5.4.0-7634-generic") returns False.

Expected behavior:

amdgpu-dkms for Ubuntu 20.04 should install successfully on Pop! OS 20.04.

Other Notes:

I care about this issue because there doesn’t seem to be a work-around:

I’ve tried installing open source amdgpu OpenCL drivers with:

~/D/amdgpu-pro-20.20-1089974-ubuntu-20.04> ./amdgpu-install --opencl=pal --no-dkms --headless

But DaVinci Resolve crashes on launch with them.

I’ve tried to use --no-dkms option with ‘pro’ drivers, as recommended in: https://devtalk.blender.org/t/install-amd-proprietary-opencl-on-pop-os-and-some-ubuntu-derivates/13458
But it is no longer available in 20.20 driver version, and leads to an error:

ERROR: using --no-dkms with a pro install is invalid.
Did you want to run the following instead?
amdgpu-install --no-dkms

Could you please take a look at the issue?

uname -a : Linux me 5.9.0-1-amd64 #1 SMP Debian 5.9.1-1 (2020-10-17) x86_64 GNU/Linux

When upgrading the amdgpu-dkms package it runs into an error in the kernel building phase. Both config.log and make.log complain of a missing autoconf.h. make.log suggests Run 'make oldconfig && make prepare' on kernel src to fix it. That complains of a missing mkmakefile. Could this be an issue with my linux headers installation or something else? How can I obtain or create the missing config files?

Output of sudo apt upgrade:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up amdgpu-dkms (1:5.6.5.24-1109583) ...
Removing old amdgpu-5.6.5.24-1109583 DKMS files...

------------------------------
Deleting module version: 5.6.5.24-1109583
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.6.5.24-1109583 DKMS files...
Building for 5.9.0-1-amd64
Building for architecture amd64
Building initial module for 5.9.0-1-amd64
configure: error: in `/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error! Bad return status for module build on kernel: 5.9.0-1-amd64 (amd64)
Consult /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.5.24-1109583); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amdgpu-pro:
 amdgpu-pro depends on amdgpu (= 20.30-1109583); however:
  Package amdgpu is not configured yet.

dpkg: error processing package amdgpu-pro (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:
 amdgpu-pro-lib32 depends on amdgpu (= 20.30-1109583) | amdgpu-hwe (= 20.30-1109583); however:
  Package amdgpu is not configured yet.
  Package amdgpu-hwe is not installed.
 amdgpu-pro-lib32 depends on amdgpu-pro (= 20.30-1109583) | amdgpu-pro-hwe (= 20.30-1109583); however:
  Package amdgpu-pro is not configured yet.
  Package amdgpu-pro-hwe is not installed.

dpkg: error processing package amdgpu-pro-lib32 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
 amdgpu-pro
 amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)

Content of /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms/config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by amdgpu-dkms configure 19.40, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = windexDebiant
uname -m = x86_64
uname -r = 5.9.0-1-amd64
uname -s = Linux
uname -v = #1 SMP Debian 5.9.1-1 (2020-10-17)

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/lib/dkms


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1881: checking for a BSD-compatible install
configure:1949: result: /bin/install -c
configure:2008: checking for gcc
configure:2024: found /bin/gcc
configure:2035: result: gcc
configure:2264: checking for C compiler version
configure:2273: gcc --version >&5
gcc (Debian 10.2.0-15) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2284: $? = 0
configure:2273: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.0-15' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-mPxEea/gcc-10-10.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-mPxEea/gcc-10-10.2.0/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Debian 10.2.0-15) 
... rest of stderr output deleted ...
configure:2284: $? = 0
configure:2273: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2284: $? = 1
configure:2273: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2284: $? = 1
configure:2304: checking whether the C compiler works
configure:2326: gcc  -I/lib/modules/5.9.0-1-amd64/source/arch/x86/include   -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated   -I/lib/modules/5.9.0-1-amd64/source/include     -I/lib/modules/5.9.0-1-amd64/build/include  -I/lib/modules/5.9.0-1-amd64/source/include/uapi    -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h  conftest.c  >&5
In file included from <command-line>:32:
/lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h:7:10: fatal error: generated/autoconf.h: No such file or directory
    7 | #include <generated/autoconf.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
configure:2330: $? = 1
configure:2368: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "amdgpu-dkms"
| #define PACKAGE_TARNAME "amdgpu-dkms"
| #define PACKAGE_VERSION "19.40"
| #define PACKAGE_STRING "amdgpu-dkms 19.40"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2373: error: in `/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms':
configure:2375: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-I/lib/modules/5.9.0-1-amd64/source/arch/x86/include  -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated   -I/lib/modules/5.9.0-1-amd64/source/include     -I/lib/modules/5.9.0-1-amd64/build/include  -I/lib/modules/5.9.0-1-amd64/source/include/uapi    -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/bin/install -c'
ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS='-I/lib/modules/5.9.0-1-amd64/source/arch/x86/include  -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated   -I/lib/modules/5.9.0-1-amd64/source/include     -I/lib/modules/5.9.0-1-amd64/build/include  -I/lib/modules/5.9.0-1-amd64/source/include/uapi    -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KERNEL_MAKE=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LINUX=''
LINUX_OBJ=''
LINUX_SYMBOLS=''
LINUX_VERSION=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='amdgpu-dkms'
PACKAGE_STRING='amdgpu-dkms 19.40'
PACKAGE_TARNAME='amdgpu-dkms'
PACKAGE_URL=''
PACKAGE_VERSION='19.40'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "amdgpu-dkms"
#define PACKAGE_TARNAME "amdgpu-dkms"
#define PACKAGE_VERSION "19.40"
#define PACKAGE_STRING "amdgpu-dkms 19.40"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 77

Content of /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/make.log

DKMS make.log for amdgpu-5.6.5.24-1109583 for kernel 5.9.0-1-amd64 (amd64)
Sat 24 Oct 2020 08:30:59 PM EDT
make: Entering directory '/usr/src/linux-headers-5.9.0-1-amd64'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make[1]: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:718: include/config/auto.conf] Error 1
make: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:185: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-5.9.0-1-amd64'

Output of sudo make oldconfig && make prepare:

sh: /usr/src/linux-headers-5.9.0-1-common/scripts/mkmakefile: No such file or directory
make[1]: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:552: outputmakefile] Error 127
make: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:185: __sub-make] Error 2

uname -a : Linux me 5.9.0-1-amd64 #1 SMP Debian 5.9.1-1 (2020-10-17) x86_64 GNU/Linux

When upgrading the amdgpu-dkms package it runs into an error in the kernel building phase. Both config.log and make.log complain of a missing autoconf.h. make.log suggests Run 'make oldconfig && make prepare' on kernel src to fix it. That complains of a missing mkmakefile. Could this be an issue with my linux headers installation or something else? How can I obtain or create the missing config files?

Output of sudo apt upgrade:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up amdgpu-dkms (1:5.6.5.24-1109583) ...
Removing old amdgpu-5.6.5.24-1109583 DKMS files...

------------------------------
Deleting module version: 5.6.5.24-1109583
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.6.5.24-1109583 DKMS files...
Building for 5.9.0-1-amd64
Building for architecture amd64
Building initial module for 5.9.0-1-amd64
configure: error: in `/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error! Bad return status for module build on kernel: 5.9.0-1-amd64 (amd64)
Consult /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.5.24-1109583); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amdgpu-pro:
 amdgpu-pro depends on amdgpu (= 20.30-1109583); however:
  Package amdgpu is not configured yet.

dpkg: error processing package amdgpu-pro (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:
 amdgpu-pro-lib32 depends on amdgpu (= 20.30-1109583) | amdgpu-hwe (= 20.30-1109583); however:
  Package amdgpu is not configured yet.
  Package amdgpu-hwe is not installed.
 amdgpu-pro-lib32 depends on amdgpu-pro (= 20.30-1109583) | amdgpu-pro-hwe (= 20.30-1109583); however:
  Package amdgpu-pro is not configured yet.
  Package amdgpu-pro-hwe is not installed.

dpkg: error processing package amdgpu-pro-lib32 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
 amdgpu-pro
 amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)

Content of /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms/config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by amdgpu-dkms configure 19.40, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = windexDebiant
uname -m = x86_64
uname -r = 5.9.0-1-amd64
uname -s = Linux
uname -v = #1 SMP Debian 5.9.1-1 (2020-10-17)

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/lib/dkms


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1881: checking for a BSD-compatible install
configure:1949: result: /bin/install -c
configure:2008: checking for gcc
configure:2024: found /bin/gcc
configure:2035: result: gcc
configure:2264: checking for C compiler version
configure:2273: gcc --version >&5
gcc (Debian 10.2.0-15) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2284: $? = 0
configure:2273: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.0-15' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-mPxEea/gcc-10-10.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-mPxEea/gcc-10-10.2.0/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Debian 10.2.0-15) 
... rest of stderr output deleted ...
configure:2284: $? = 0
configure:2273: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2284: $? = 1
configure:2273: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2284: $? = 1
configure:2304: checking whether the C compiler works
configure:2326: gcc  -I/lib/modules/5.9.0-1-amd64/source/arch/x86/include   -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated   -I/lib/modules/5.9.0-1-amd64/source/include     -I/lib/modules/5.9.0-1-amd64/build/include  -I/lib/modules/5.9.0-1-amd64/source/include/uapi    -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h  conftest.c  >&5
In file included from <command-line>:32:
/lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h:7:10: fatal error: generated/autoconf.h: No such file or directory
    7 | #include <generated/autoconf.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
configure:2330: $? = 1
configure:2368: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "amdgpu-dkms"
| #define PACKAGE_TARNAME "amdgpu-dkms"
| #define PACKAGE_VERSION "19.40"
| #define PACKAGE_STRING "amdgpu-dkms 19.40"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2373: error: in `/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms':
configure:2375: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-I/lib/modules/5.9.0-1-amd64/source/arch/x86/include  -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated   -I/lib/modules/5.9.0-1-amd64/source/include     -I/lib/modules/5.9.0-1-amd64/build/include  -I/lib/modules/5.9.0-1-amd64/source/include/uapi    -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/bin/install -c'
ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS='-I/lib/modules/5.9.0-1-amd64/source/arch/x86/include  -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated   -I/lib/modules/5.9.0-1-amd64/source/include     -I/lib/modules/5.9.0-1-amd64/build/include  -I/lib/modules/5.9.0-1-amd64/source/include/uapi    -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KERNEL_MAKE=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LINUX=''
LINUX_OBJ=''
LINUX_SYMBOLS=''
LINUX_VERSION=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='amdgpu-dkms'
PACKAGE_STRING='amdgpu-dkms 19.40'
PACKAGE_TARNAME='amdgpu-dkms'
PACKAGE_URL=''
PACKAGE_VERSION='19.40'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "amdgpu-dkms"
#define PACKAGE_TARNAME "amdgpu-dkms"
#define PACKAGE_VERSION "19.40"
#define PACKAGE_STRING "amdgpu-dkms 19.40"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 77

Content of /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/make.log

DKMS make.log for amdgpu-5.6.5.24-1109583 for kernel 5.9.0-1-amd64 (amd64)
Sat 24 Oct 2020 08:30:59 PM EDT
make: Entering directory '/usr/src/linux-headers-5.9.0-1-amd64'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make[1]: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:718: include/config/auto.conf] Error 1
make: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:185: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-5.9.0-1-amd64'

Output of sudo make oldconfig && make prepare:

sh: /usr/src/linux-headers-5.9.0-1-common/scripts/mkmakefile: No such file or directory
make[1]: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:552: outputmakefile] Error 127
make: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:185: __sub-make] Error 2

Summary:
both amdgpu and amdgpu-pro-20.45-1188099 fail to install on fresh Ubuntu 20.04.2.0 LTS system.
failure is on [amdgpu-dkms] 

Expected behavior: 
amdgpu-pro 20.45 should install on Ubuntu 20.04.2.0 LTS system without issue

  • Screen recording of install attempts and errors: 
    https://www.screencast.com/t/OU9WUUdFZL
    (to help prove I am a reasonably sane end user)
  • Pastebin for terminal output: 
    https://pastebin.com/HMicfcYp
  • Pastebin for the make.log: 
    https://pastebin.com/1v34Q2kZ
    /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log
  • Pastebin for DKMS crash:
    https://pastebin.com/FqNK4Jg9
    /var/crash/amdgpu-dkms.0.crash

FILES USED: 

  • Ubuntu 20.04.2.0 LTS (Focal Fossa)
    • https://releases.ubuntu.com/focal/
    • standard iso loaded onto usb: 
      https://ubuntu.com/tutorials/create-a-usb-stick-on-ubuntu#1-overview
    • Linux 5.8.0-45-generic
  • Radeon™ Software for Linux® version 20.45 for Ubuntu 20.04.1
    • https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-45
    • https://drivers.amd.com/drivers/linux/amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz

HARDWARE

  • CPU: Ryzen 3950
  • MB: B550M Pro VDH Wifi
  • GPU: Vega 10 XL/XT [Radeon RX Vega 56] 
  • PSU: Corsair 1000gold

TO RECREATE ISSUE:

  • Fresh install of Ubuntu 20 LTS from usb onto new SSD
    • log in, make sure system works
      • reboot
      • sudo apt update
      • reboot
    • log in, make sure system works — all good
  • Download and install
    • unpack: amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz 
      • $ ./amdgpu-install -y
      • fails [see errors below]
  • reboot
    • black screen — Ubuntu wont start
    • To fix have to sideload GRUB [alt+right] and uninstall via command line
      • amdgpu-pro-uninstall
      • reboot
    • system powers up and GPU works again
    • However, NO openCL drivers

Other Attempts:

  • None of the existing forum suggestions fix the problem
    • fresh wipe/install of Ubuntu does not fix issue
    • trying to use «—no-dkms» does not work as this command does not exist anymore
    • no solution: https://community.amd.com/t5/drivers-software/amdgpu-20-40-fails-on-fresh-install-of-ub…
      • downgrading kernel 5.8.0 —> 5.4.0 has been suggested
        but does not work (or I am not doing it correctly)
    • no solution: https://community.amd.com/t5/drivers-software/amdgpu-pro-20-45-install-fails-on-ubuntu-…
  • all of the following fail
    • $ ./amdgpu-install -y
    • $ ./amdgpu-pro-install -y
    • $ ./amdgpu-pro-install -y —opencl=pal,legacy —headless
  • Results are always the same for each failure [posted below]
  • To reproduce this issue simply try to install amdgpu-pro on any Ubuntu 20 LTS system
    • I suspect you will get the same results.

At this time I am unable to build and deliver systems to customers with working drivers and GPU’s in them. Thus far my only solution has been to clone an old drive I have which has previous version of Ubuntu 20LTS and the amdgpu-pro 17 driver. This of course is not ideal because then I have to tell people to never apt update the system… 

I remain hopeful a solution will be released, please advise. However, I would humbly ask you attempt a fresh install to see for yourself what’s going on here.

========== ERROR OUTPUT ===========

sudo ./amdgpu-pro-install -y

[removed download lines and skipped to first failure]

Setting up amdgpu-dkms (1:5.6.20.906316-1188099) …
Loading new amdgpu-5.6.20.906316-1188099 DKMS files…
Building for 5.8.0-45-generic
Building for architecture x86_64
Building initial module for 5.8.0-45-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms.0.crash’
Error! Bad return status for module build on kernel: 5.8.0-45-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (—configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (—configure):
dependency problems — leaving unconfigured
Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1188099) …
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up mesa-amdgpu-omx-
drivers:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1188099) …
Setting up amdgpu-pro-core (20.45-1188099) …
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1188099) …
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1188099) …
Setting up vulkan-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1188099) …
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1188099) …
dpkg: dependency problems prevent configuration of amdgpu-pro:
amdgpu-pro depends on amdgpu (= 20.45-1188099); however:
Package amdgpu is not configured yet.

dpkg: error processing package amdgpu-pro (—configure):
dependency problems — leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems p
revent configuration of amdgpu-pro-lib32:
amdgpu-pro-lib32 depends on amdgpu (= 20.45-1188099) | amdgpu-hwe (= 20.45-1188099); however:
Package amdgpu is not configured yet.
Package amdgpu-hwe is not installed.
amdgpu-pro-lib32 depends on amdgpu-pro (= 20.45-1188099) | amdgpu-pro-hwe (= 20.45-1188099); however:
Package amdgpu-pro is not configured yet.
Package amdgpu-pro-hwe is not installed.

dpkg: error processing package amdgpu-pro-lib32 (—configure):
dependency problems — leaving unconfigured
Setting up libglapi1-amdgpu-pro:amd64 (20.45-1188099) …
No apport report written because MaxReports is reached already
Setting up libglapi1-amdgpu-pro:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-dri:amd64 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-dri:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-appprofiles (20.45-1188099) …
Setting up libegl1-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libegl1-amdgpu-pro:i386 (20.45-1188099) …
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1188099) …
Setting up libgles2-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libgles2-amdgpu-pro:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-glx:amd64 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-glx:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-ext:amd64 (20.45-1188099) …
Setting up amdgpu-lib (20.45-1188099) …
Setting up amdgpu-lib32 (20.45-1188099) …
Processing triggers for libc-bin (2.31-0ubuntu9.2) …
Errors were encountered while processing:
amdgpu-dkms
amdgpu
amdgpu-pro
amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)

========== END ===========

  • Ошибка при обработке криптографического сообщения 0x80091001
  • Ошибка при обработке информации сервера пд
  • Ошибка при обработке запроса системой банка err 100 date must be specified
  • Ошибка при обработке запроса ошибка при отправке запроса код ошибки 400 что значит
  • Ошибка при обработке запроса ошибка при отправке запроса код ошибки 400 прокуратура