[GH-ISSUE #97] Package broken on Ubuntu24 after latest update #50

Closed
opened 2026-10-13 21:03:05 +00:00 by bsakaguchi · 5 comments
Owner

Originally created by @VitalyArtemiev on GitHub (Oct 2, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-go/issues/97

Upgraded system today, amneziawg-dkms fails to install and is now non-functional:

vitaly@vitaly-PC:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libvlc5 freerdp2-x11 libzvbi-common vlc-data libvlccore9 libjs-katex
  libwinpr2-2t64 libcjson1 libavdevice60 ffmpeg libpostproc57 libavcodec60
  libavcodec60 libzvbi0t64 libzvbi0t64 libavutil58 libavutil58 libswscale7
  libfreerdp-client2-2t64 fonts-katex libswresample4 libswresample4
  vlc-plugin-video-output 7zip libavformat60 libfreerdp2-2t64 libvlc-bin
  vlc-plugin-base libavfilter9
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following upgrades have been deferred due to phasing:
  wpasupplicant
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 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 amneziawg-dkms (1.0.0-0~202510021336+591f50a~ubuntu24.04.1) ...
Removing old amneziawg-1.0.0 DKMS files...
Deleting module amneziawg-1.0.0 completely from the DKMS tree.
Loading new amneziawg-1.0.0 DKMS files...
Deprecated feature: REMAKE_INITRD (/usr/src/amneziawg-1.0.0/dkms.conf)
Building for 6.8.0-85-generic
Building initial module for 6.8.0-85-generic
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/1.0.0/source/dkms.conf)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amneziawg-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-85-generic (x86_64)
Consult /var/lib/dkms/amneziawg/1.0.0/build/make.log for more information.
dpkg: error processing package amneziawg-dkms (--configure):
 installed amneziawg-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 amneziawg-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
vitaly@vitaly-PC:~$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
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"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Mentioned logs below:

vitaly@vitaly-PC:~$ cat /var/lib/dkms/amneziawg/1.0.0/build/make.log
DKMS make.log for amneziawg-1.0.0 for kernel 6.8.0-85-generic (x86_64)
Пт 03 окт 2025 02:47:50 MSK
make: Entering directory '/var/lib/dkms/amneziawg/1.0.0/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
/var/lib/dkms/amneziawg/1.0.0/build/Kbuild:22: /var/lib/dkms/amneziawg/1.0.0/build/compat/Kbuild.include: No such file or directory
make[2]: *** No rule to make target '/var/lib/dkms/amneziawg/1.0.0/build/compat/Kbuild.include'.  Stop.
make[1]: *** [Makefile:1927: /var/lib/dkms/amneziawg/1.0.0/build] Error 2
make: *** [Makefile:27: module] Error 2
make: Leaving directory '/var/lib/dkms/amneziawg/1.0.0/build'
vitaly@vitaly-PC:~$ cat /var/crash/amneziawg-dkms.0.crash
ProblemType: Package
DKMSBuildLog:
 DKMS make.log for amneziawg-1.0.0 for kernel 6.8.0-85-generic (x86_64)
 Пт 03 окт 2025 00:41:30 MSK
 make: Entering directory '/var/lib/dkms/amneziawg/1.0.0/build'
 warning: the compiler differs from the one used to build the kernel
   The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
   You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
 /var/lib/dkms/amneziawg/1.0.0/build/Kbuild:22: /var/lib/dkms/amneziawg/1.0.0/build/compat/Kbuild.include: No such file or directory
 make[2]: *** No rule to make target '/var/lib/dkms/amneziawg/1.0.0/build/compat/Kbuild.include'.  Stop.
 make[1]: *** [Makefile:1927: /var/lib/dkms/amneziawg/1.0.0/build] Error 2
 make: *** [Makefile:27: module] Error 2
 make: Leaving directory '/var/lib/dkms/amneziawg/1.0.0/build'
DKMSKernelVersion: 6.8.0-85-generic
Date: Fri Oct  3 00:41:31 2025
Package: amneziawg-dkms 1.0.0-0~202510021336+591f50a~ubuntu24.04.1
PackageVersion: 1.0.0-0~202510021336+591f50a~ubuntu24.04.1
SourcePackage: amneziawg-linux-kmod
Title: amneziawg-dkms 1.0.0-0~202510021336+591f50a~ubuntu24.04.1: amneziawg kernel module failed to build

Trying to start service:

vitaly@vitaly-PC:~$ sudo awg-quick up repos/awg/linux_desktop.conf 
Warning: `/home/vitaly/repos/awg/linux_desktop.conf' is world accessible
[#] ip link add linux_desktop type amneziawg
Error: Unknown device type.
Unable to access interface: Protocol not supported
[#] ip link delete dev linux_desktop
Cannot find device "linux_desktop"

Installing from https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu .

Originally created by @VitalyArtemiev on GitHub (Oct 2, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-go/issues/97 Upgraded system today, amneziawg-dkms fails to install and is now non-functional: ``` vitaly@vitaly-PC:~$ sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done Get more security updates through Ubuntu Pro with 'esm-apps' enabled: libvlc5 freerdp2-x11 libzvbi-common vlc-data libvlccore9 libjs-katex libwinpr2-2t64 libcjson1 libavdevice60 ffmpeg libpostproc57 libavcodec60 libavcodec60 libzvbi0t64 libzvbi0t64 libavutil58 libavutil58 libswscale7 libfreerdp-client2-2t64 fonts-katex libswresample4 libswresample4 vlc-plugin-video-output 7zip libavformat60 libfreerdp2-2t64 libvlc-bin vlc-plugin-base libavfilter9 Learn more about Ubuntu Pro at https://ubuntu.com/pro The following upgrades have been deferred due to phasing: wpasupplicant 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 1 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 amneziawg-dkms (1.0.0-0~202510021336+591f50a~ubuntu24.04.1) ... Removing old amneziawg-1.0.0 DKMS files... Deleting module amneziawg-1.0.0 completely from the DKMS tree. Loading new amneziawg-1.0.0 DKMS files... Deprecated feature: REMAKE_INITRD (/usr/src/amneziawg-1.0.0/dkms.conf) Building for 6.8.0-85-generic Building initial module for 6.8.0-85-generic Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/1.0.0/source/dkms.conf) ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amneziawg-dkms.0.crash' Error! Bad return status for module build on kernel: 6.8.0-85-generic (x86_64) Consult /var/lib/dkms/amneziawg/1.0.0/build/make.log for more information. dpkg: error processing package amneziawg-dkms (--configure): installed amneziawg-dkms package post-installation script subprocess returned error exit status 10 Errors were encountered while processing: amneziawg-dkms E: Sub-process /usr/bin/dpkg returned an error code (1) vitaly@vitaly-PC:~$ cat /etc/os-release PRETTY_NAME="Ubuntu 24.04.3 LTS" NAME="Ubuntu" VERSION_ID="24.04" VERSION="24.04.3 LTS (Noble Numbat)" VERSION_CODENAME=noble ID=ubuntu ID_LIKE=debian 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" UBUNTU_CODENAME=noble LOGO=ubuntu-logo ``` Mentioned logs below: ``` vitaly@vitaly-PC:~$ cat /var/lib/dkms/amneziawg/1.0.0/build/make.log DKMS make.log for amneziawg-1.0.0 for kernel 6.8.0-85-generic (x86_64) Пт 03 окт 2025 02:47:50 MSK make: Entering directory '/var/lib/dkms/amneziawg/1.0.0/build' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 /var/lib/dkms/amneziawg/1.0.0/build/Kbuild:22: /var/lib/dkms/amneziawg/1.0.0/build/compat/Kbuild.include: No such file or directory make[2]: *** No rule to make target '/var/lib/dkms/amneziawg/1.0.0/build/compat/Kbuild.include'. Stop. make[1]: *** [Makefile:1927: /var/lib/dkms/amneziawg/1.0.0/build] Error 2 make: *** [Makefile:27: module] Error 2 make: Leaving directory '/var/lib/dkms/amneziawg/1.0.0/build' ``` ``` vitaly@vitaly-PC:~$ cat /var/crash/amneziawg-dkms.0.crash ProblemType: Package DKMSBuildLog: DKMS make.log for amneziawg-1.0.0 for kernel 6.8.0-85-generic (x86_64) Пт 03 окт 2025 00:41:30 MSK make: Entering directory '/var/lib/dkms/amneziawg/1.0.0/build' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 /var/lib/dkms/amneziawg/1.0.0/build/Kbuild:22: /var/lib/dkms/amneziawg/1.0.0/build/compat/Kbuild.include: No such file or directory make[2]: *** No rule to make target '/var/lib/dkms/amneziawg/1.0.0/build/compat/Kbuild.include'. Stop. make[1]: *** [Makefile:1927: /var/lib/dkms/amneziawg/1.0.0/build] Error 2 make: *** [Makefile:27: module] Error 2 make: Leaving directory '/var/lib/dkms/amneziawg/1.0.0/build' DKMSKernelVersion: 6.8.0-85-generic Date: Fri Oct 3 00:41:31 2025 Package: amneziawg-dkms 1.0.0-0~202510021336+591f50a~ubuntu24.04.1 PackageVersion: 1.0.0-0~202510021336+591f50a~ubuntu24.04.1 SourcePackage: amneziawg-linux-kmod Title: amneziawg-dkms 1.0.0-0~202510021336+591f50a~ubuntu24.04.1: amneziawg kernel module failed to build ``` Trying to start service: ``` vitaly@vitaly-PC:~$ sudo awg-quick up repos/awg/linux_desktop.conf Warning: `/home/vitaly/repos/awg/linux_desktop.conf' is world accessible [#] ip link add linux_desktop type amneziawg Error: Unknown device type. Unable to access interface: Protocol not supported [#] ip link delete dev linux_desktop Cannot find device "linux_desktop" ``` Installing from https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu .
Author
Owner

@Koguni31 commented on GitHub (Oct 3, 2025):

Have the same problem. amneziawg dkms have broken with latest update on Ubuntu 24.04.3 - module not compiling. Used https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu to install.

<!-- gh-comment-id:3365059720 --> @Koguni31 commented on GitHub (Oct 3, 2025): Have the same problem. amneziawg dkms have broken with latest update on Ubuntu 24.04.3 - module not compiling. Used https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu to install.
Author
Owner

@Koguni31 commented on GitHub (Oct 3, 2025):

amneziawg metapackage now fails to build with "Error! The directory /var/lib/dkms/amneziawg/2.0.0/source does not appear to have module source located within it.".

# apt install amneziawg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  amneziawg-dkms amneziawg-tools
The following NEW packages will be installed:
  amneziawg amneziawg-dkms amneziawg-tools
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/391 kB of archives.
After this operation, 2,158 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package amneziawg-dkms.
(Reading database ... 128326 files and directories currently installed.)
Preparing to unpack .../amneziawg-dkms_1.0.0-0~202510031931+b0db37d~ubuntu24.04.1_all.deb ...
Unpacking amneziawg-dkms (1.0.0-0~202510031931+b0db37d~ubuntu24.04.1) ...
Selecting previously unselected package amneziawg-tools.
Preparing to unpack .../amneziawg-tools_1.0.20210914-0~202509032017+5c6ffd6~ubuntu24.04.1_amd64.deb ...
Unpacking amneziawg-tools (1.0.20210914-0~202509032017+5c6ffd6~ubuntu24.04.1) ...
Selecting previously unselected package amneziawg.
Preparing to unpack .../amneziawg_1.0.20210914-0~202509032017+5c6ffd6~ubuntu24.04.1_all.deb ...
Unpacking amneziawg (1.0.20210914-0~202509032017+5c6ffd6~ubuntu24.04.1) ...
Setting up amneziawg-tools (1.0.20210914-0~202509032017+5c6ffd6~ubuntu24.04.1) ...
Setting up amneziawg-dkms (1.0.0-0~202510031931+b0db37d~ubuntu24.04.1) ...
Loading new amneziawg-2.0.0 DKMS files...
Deprecated feature: REMAKE_INITRD (/usr/src/amneziawg-2.0.0/dkms.conf)
Building for 6.8.0-85-generic
Building initial module for 6.8.0-85-generic
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/2.0.0/source/dkms.conf)
Error! The directory /var/lib/dkms/amneziawg/2.0.0/source does not appear to have module source located within it.
Build halted.
dpkg: error processing package amneziawg-dkms (--configure):
 installed amneziawg-dkms package post-installation script subprocess returned error exit status 8
dpkg: dependency problems prevent configuration of amneziawg:
 amneziawg depends on amneziawg-dkms (>= 0.0.20200121-2) | amneziawg-modules (>= 0.0.20191219); however:
  Package amneziawg-dkms is not configured yet.
  Package amneziawg-modules is not installed.

dpkg: error processing package amneziawg (--configure):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.12.0-4build2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 amneziawg-dkms
 amneziawg
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

# dkms status
amneziawg/2.0.0: added

# dkms  build -m amneziawg/2.0.0
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/2.0.0/source/dkms.conf)
Error! The directory /var/lib/dkms/amneziawg/2.0.0/source does not appear to have module source located within it.
Build halted.
<!-- gh-comment-id:3367465877 --> @Koguni31 commented on GitHub (Oct 3, 2025): amneziawg metapackage now fails to build with "Error! The directory /var/lib/dkms/amneziawg/2.0.0/source does not appear to have module source located within it.". ``` # apt install amneziawg Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: amneziawg-dkms amneziawg-tools The following NEW packages will be installed: amneziawg amneziawg-dkms amneziawg-tools 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/391 kB of archives. After this operation, 2,158 kB of additional disk space will be used. Do you want to continue? [Y/n] y Selecting previously unselected package amneziawg-dkms. (Reading database ... 128326 files and directories currently installed.) Preparing to unpack .../amneziawg-dkms_1.0.0-0~202510031931+b0db37d~ubuntu24.04.1_all.deb ... Unpacking amneziawg-dkms (1.0.0-0~202510031931+b0db37d~ubuntu24.04.1) ... Selecting previously unselected package amneziawg-tools. Preparing to unpack .../amneziawg-tools_1.0.20210914-0~202509032017+5c6ffd6~ubuntu24.04.1_amd64.deb ... Unpacking amneziawg-tools (1.0.20210914-0~202509032017+5c6ffd6~ubuntu24.04.1) ... Selecting previously unselected package amneziawg. Preparing to unpack .../amneziawg_1.0.20210914-0~202509032017+5c6ffd6~ubuntu24.04.1_all.deb ... Unpacking amneziawg (1.0.20210914-0~202509032017+5c6ffd6~ubuntu24.04.1) ... Setting up amneziawg-tools (1.0.20210914-0~202509032017+5c6ffd6~ubuntu24.04.1) ... Setting up amneziawg-dkms (1.0.0-0~202510031931+b0db37d~ubuntu24.04.1) ... Loading new amneziawg-2.0.0 DKMS files... Deprecated feature: REMAKE_INITRD (/usr/src/amneziawg-2.0.0/dkms.conf) Building for 6.8.0-85-generic Building initial module for 6.8.0-85-generic Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/2.0.0/source/dkms.conf) Error! The directory /var/lib/dkms/amneziawg/2.0.0/source does not appear to have module source located within it. Build halted. dpkg: error processing package amneziawg-dkms (--configure): installed amneziawg-dkms package post-installation script subprocess returned error exit status 8 dpkg: dependency problems prevent configuration of amneziawg: amneziawg depends on amneziawg-dkms (>= 0.0.20200121-2) | amneziawg-modules (>= 0.0.20191219); however: Package amneziawg-dkms is not configured yet. Package amneziawg-modules is not installed. dpkg: error processing package amneziawg (--configure): dependency problems - leaving unconfigured Processing triggers for man-db (2.12.0-4build2) ... No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: amneziawg-dkms amneziawg needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) # dkms status amneziawg/2.0.0: added # dkms build -m amneziawg/2.0.0 Sign command: /usr/bin/kmodsign Binary update-secureboot-policy not found, modules won't be signed Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/2.0.0/source/dkms.conf) Error! The directory /var/lib/dkms/amneziawg/2.0.0/source does not appear to have module source located within it. Build halted. ```
Author
Owner

@lilalkor commented on GitHub (Oct 4, 2025):

amneziawg metapackage now fails to build with "Error! The directory /var/lib/dkms/amneziawg/2.0.0/source does not appear to have module source located within it.".

Same issue for me on Ubuntu 24.04. As a workaround I've just copied source files from the previous location:

cp -a /usr/src/amneziawg-1.0.0/* /usr/src/amneziawg-2.0.0/

Version used, to be clear:

# apt-cache policy amneziawg-dkms
amneziawg-dkms:
  Installed: 1.0.0-0~202510031931+b0db37d~ubuntu24.04.1
  Candidate: 1.0.0-0~202510031931+b0db37d~ubuntu24.04.1
  Version table:
 *** 1.0.0-0~202510031931+b0db37d~ubuntu24.04.1 500
        500 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble/main amd64 Packages
        500 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble/main i386 Packages

Basically, the module version was changed to 2.0.0, but it was either not intended to happen, or was not done correctly.

<!-- gh-comment-id:3367958208 --> @lilalkor commented on GitHub (Oct 4, 2025): > amneziawg metapackage now fails to build with "Error! The directory /var/lib/dkms/amneziawg/2.0.0/source does not appear to have module source located within it.". Same issue for me on Ubuntu 24.04. As a workaround I've just copied source files from the previous location: ``` cp -a /usr/src/amneziawg-1.0.0/* /usr/src/amneziawg-2.0.0/ ``` Version used, to be clear: ``` # apt-cache policy amneziawg-dkms amneziawg-dkms: Installed: 1.0.0-0~202510031931+b0db37d~ubuntu24.04.1 Candidate: 1.0.0-0~202510031931+b0db37d~ubuntu24.04.1 Version table: *** 1.0.0-0~202510031931+b0db37d~ubuntu24.04.1 500 500 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble/main amd64 Packages 500 https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu noble/main i386 Packages ``` Basically, the module version was changed to 2.0.0, but it was either not intended to happen, or was not done correctly.
Author
Owner

@fukc-gihtub commented on GitHub (Oct 4, 2025):

https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/91

<!-- gh-comment-id:3368024470 --> @fukc-gihtub commented on GitHub (Oct 4, 2025): https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/91
Author
Owner

@ygurov commented on GitHub (Oct 19, 2025):

Hello everyone,
As @fukc-gihtub properly mentioned, this is the issue of the different repo, amneziawg-linux-kernel-module, that has already fixed. Once PPA is updated (sometimes it takes up to ~24h) it should be working well on ubuntu 22.04

<!-- gh-comment-id:3419611331 --> @ygurov commented on GitHub (Oct 19, 2025): Hello everyone, As @fukc-gihtub properly mentioned, this is the issue of the different repo, `amneziawg-linux-kernel-module`, that has already fixed. Once PPA is updated (sometimes it takes up to ~24h) it should be working well on ubuntu 22.04
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-go#50
No description provided.