User Tools

Site Tools


ubuntu:dkms:check_dkms_status

This is an old revision of the document!


Ubuntu - dkms - Check dkms status

dkms status

returns:

amdgpu/5.18.13-1580598.22.04, 5.19.0-45-generic, x86_64: installed

NOTE: This shows there is a amdgpu dkms module.

  • This is located in /var/lib/dkms.

If an error is seen

dkms status

returns:

Error! Could not locate dkms.conf file.
File: /var/lib/dkms/amdgpu/5.18.13-1577590.22.04/source/dkms.conf does not exist.

NOTE: dkms relies upon the source/dmks.conf file.

  • If this file is not found then dkms reports an error.

To fix the dkms error

Go to the /var/lib/dkms directory for the specific module reporting the error.

cd /var/lib/dkms/amdgpu

NOTE: In this example, the amdgpu module having the issue


Check what is installed in that directory

ls -al /var/lib/dkms/amdgpu/

returns:

total 8.0K
drwxr-xr-x 3 root root 4.0K Jun  2 15:19 5.18.13-1577590.22.04/
drwxr-xr-x 3 root root 4.0K Jun 16 02:06 5.18.13-1580598.22.04/
lrwxrwxrwx 1 root root   46 Jun 16 02:06 kernel-5.19.0-45-generic-x86_64 -> 5.18.13-1580598.22.04/5.19.0-45-generic/x86_64/

NOTE: This shows 2 directories.

  • with the top one being reported as causing the error, when dkms status command is run.

Remove the offending directory

sudo mv 5.18.13-1577590.22.04/ /home/peter/dkms_amd/

NOTE: For safety, the directory is just moved away to a backup directory, just in case it might be needed to be restored back.


Check again what is installed in that directory

ls -al /var/lib/dkms/amdgpu/

returns:

total 8.0K
drwxr-xr-x 3 root root 4.0K Jun 16 02:06 5.18.13-1580598.22.04/
lrwxrwxrwx 1 root root   46 Jun 16 02:06 kernel-5.19.0-45-generic-x86_64 -> 5.18.13-1580598.22.04/5.19.0-45-generic/x86_64/

NOTE: This shows only 1 directory.

  • with the link also pointing to this directory too.

Check that the module source does exist

The source of the actual module is found in /usr/src.

The link, in /var/lib/dkms/amdgpu should be pointing to the actual source.

ls /usr/src/amdgpu-5.18.13-1580598.22.04/

returns:

amd  dkms.conf  drm_gem_ttm_helper.c  firmware  include  Makefile  scheduler  ttm

NOTE: Good!

  • This shows that the dkms link does point to actual source.

Retry to check dkms status

To see if the above changes have corrected the error.

dkms status

returns:

amdgpu/5.18.13-1580598.22.04, 5.19.0-45-generic, x86_64: installed

NOTE: This shows there is a amdgpu dkms module.

  • The error has been corrected.
ubuntu/dkms/check_dkms_status.1686914979.txt.gz · Last modified: 2023/06/16 11:29 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki