mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-13 21:34:34 +00:00
[GH-ISSUE #91] amneziawg-dkms_1.0.0-0~202510021336+591f50a~ubuntu20.04.1_all.deb does not install on Debian 13 #52
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-linux-kernel-module#52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sekrett on GitHub (Oct 2, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/91
Originally assigned to: @ygurov on GitHub.
Previous version installed fine, but the upgrade fails:
I examined previous and current deb package, the new one is missing a lot of source code files.
Before upgrade:
After upgrade:
It is not about linux headers, amneziawg sources are missing.
@noap1911 commented on GitHub (Oct 2, 2025):
I have the same thing, what should I do?
@sekrett commented on GitHub (Oct 2, 2025):
I took old deb package from another server (/var/cache/apt) which was not yet upgraded and reinstalled it. This exact version works:
amneziawg_1.0.20210914-0~202509032017+5c6ffd6~ubuntu20.04.1_all.deb@noap1911 commented on GitHub (Oct 2, 2025):
i dont have it, coz new os installation
@hiddener commented on GitHub (Oct 2, 2025):
curl -L -O https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu/pool/main/a/amneziawg-linux-kmod/amneziawg-dkms_1.0.0-0~202506030006+b91faba~ubuntu20.04.1_all.debdpkg -i amneziawg-dkms_1.0.0-0~202506030006+b91faba~ubuntu20.04.1_all.deb@413xk commented on GitHub (Oct 2, 2025):
Yep got same problem on Deb12.
My workaround:
There are just sources so nothing wrong with it.
dkms install amneziawg/1.0.0and awg was successfully installed.@papiru5 commented on GitHub (Oct 2, 2025):
Got this error too on Ubuntu 24.04.3 LTS fresh install, so I think 20251002 is some of buggy version.
@MikePooh commented on GitHub (Oct 2, 2025):
Same problem on Linux Mint 22.2 Zara
@papiru5 commented on GitHub (Oct 2, 2025):
For Ubuntu 24.04.3 workaround is the same, as @hiddener (https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/91#issuecomment-3362243900) suggest: I took previous package for 24.04 at https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu/pool/main/a/amneziawg-linux-kmod/ and install it with dpkg, then mark hold. After that amneziawg was successfully installed and working now.
@ygurov commented on GitHub (Oct 3, 2025):
#92
@mhz-tamb commented on GitHub (Oct 4, 2025):
I’m running into the following problem now. Am I right that this is related to this issue?
@ygurov commented on GitHub (Oct 4, 2025):
Hi everyone,
Thanks for reporting the issue
Apologize for the inconvenience, there were previously build changes introduced, which by my mistake actually have broken dkms functionality. Everything should work as expected on the latest master
Also, a release tag was made to be v1.0.20251004
PPA repo would be fixed once it sync the changes
@Rockstein2 commented on GitHub (Oct 4, 2025):
Thank you.
I just tried the new release on kernel 6.1.0-40-amd64 and encountered build errors.
This kernel already includes get_random_u32_below and get_random_u32_inclusive.
Therefore, it was necessary to (quick and dirty) update your preprocessor check in compat.h from:
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)
to
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
github.com/amnezia-vpn/amneziawg-linux-kernel-module@8a55ceb761/src/compat/compat.h (L1221)After making this change, I was able to successfully compile the DKMS module.
@ygurov commented on GitHub (Oct 4, 2025):
Hi @Rockstein2,
Thanks for reporting the issue. Should be covered in #94
@Rockstein2 commented on GitHub (Oct 4, 2025):
If I do a fresh install of Debian 12, at installing amneziawg-dkms package no source files are copied to /var/lib/dkms/amneziawg/2.0.0/
/var/lib/dkms/amneziawg/2.0.0/ is a symlink to /usr/source/amneziawg-2.0.0, but only dkms.conf is found in this folder
It works only after clone the repo and copy src/ to /var/lib/dkms/amneziawg/2.0.0/
but the installer creates /usr/source/amneziawg-1.0.0 instead
sudo apt-get install amneziawg
rck@sck:~$ sudo apt-get install amneziawg Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: amneziawg-dkms The following NEW packages will be installed: amneziawg amneziawg-dkms 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/292 kB of archives. After this operation, 1861 kB of additional disk space will be used. Do you want to continue? [Y/n] y Selecting previously unselected package amneziawg-dkms. (Reading database ... 55510 files and directories currently installed.) Preparing to unpack .../amneziawg-dkms_1.0.0-0~202510031931+b0db37d~ubuntu22.04.1_all.deb ... Unpacking amneziawg-dkms (1.0.0-0~202510031931+b0db37d~ubuntu22.04.1) ... Selecting previously unselected package amneziawg. Preparing to unpack .../amneziawg_1.0.20210914-0~202509032017+5c6ffd6~ubuntu22.04.1_all.deb ... Unpacking amneziawg (1.0.20210914-0~202509032017+5c6ffd6~ubuntu22.04.1) ... Setting up amneziawg-dkms (1.0.0-0~202510031931+b0db37d~ubuntu22.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.1.0-40-amd64 Building initial module for 6.1.0-40-amd64 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
Errors were encountered while processing:
amneziawg-dkms
amneziawg
E: Sub-process /usr/bin/dpkg returned an error code (1)
@ygurov commented on GitHub (Oct 4, 2025):
@Rockstein2,
That's because I have made an error during refactoring of dkms.conf and it was fixed by
github.com/amnezia-vpn/amneziawg-linux-kernel-module@8a55ceb761It will be fixed once PPA sync the changes, as I have mentioned above
@Rockstein2 commented on GitHub (Oct 4, 2025):
@ygurov
Sorry for boring you, I didn't realize that your changed PACKAGE_VERSION="2.0.0" in dkms.conf affected the path or source be copied.
I have now looked at my dkms.conf on broken install, and your change is already there: PACKAGE_VERSION="2.0.0"
@ygurov commented on GitHub (Oct 4, 2025):
@Rockstein2,
That was actually the mistake :)
make dkms-installcreates the path like/usr/src/amneziawg-1.0.0, but dkms.conf expects it to be 2.0.0@Rockstein2 commented on GitHub (Oct 4, 2025):
@ygurov
is DKMSDIR defined over cmd line or some there else?
if I look in src/Makefile, DKMSDIR evals to "amneziawg-1.0.0"
WIREGUARD_VERSION = 1.0.0
...
DKMSDIR ?= $(SRCDIR)/amneziawg-$(WIREGUARD_VERSION)
...
dkms-install: $(DKMS_SOURCES)
@$(foreach f,$(DKMS_SOURCES),install -v -m0644 -D $(f) $(DESTDIR)$(DKMSDIR)/$(f);)
@ygurov commented on GitHub (Oct 4, 2025):
@Rockstein2,
Yes, but
PACKAGE_VERSIONfromdkms.confdid not correlate withWIREGUARD_VERSIONdefined inMakefileSo Makefile did install it to the one directory, and dkms did expect it in the other
@rseleven commented on GitHub (Oct 4, 2025):
@Rockstein2 commented on GitHub (Oct 4, 2025):
@rseleven
it is the same thing I posted.
Just rename /usr/src/amneziawg-1.0.0 to 2.0.0
@rseleven commented on GitHub (Oct 4, 2025):
@Rockstein2, thanks!
@Rockstein2 commented on GitHub (Oct 4, 2025):
If you look into the fresh deb package from launchpad
amneziawg-dkms_1.0.0-0
202510031931+b0db37dubuntu22.04.1_all.debunder CONTENTS/usr/src are two folders amneziawg-1.0.0 with full src and amneziawg-2.0.0 with only dkms.conf
@Rockstein2 commented on GitHub (Oct 4, 2025):
@rseleven
or just wait until launchpad rebuild the deb with PACKAGE_VERSION="1.0.0" in dkms.conf
@ygurov commented on GitHub (Oct 4, 2025):
PPA synced. Please proceed with
sudo apt-get updateand try once again