error when compiling ovpn-dkms under ubuntu 26.04
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 14.6k
- Forks
- 3.4k
- PR merge metrics
- No merged PRs in 30d
Description
Today I upgraded to the new LTS Ubuntu 26.04 and noticed that this version has been added to the repository http://build.openvpn.net/debian/openvpn/release/ so i add repository to my Ubuntu to use latest testing version with:
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/openvpn-repo-public.asc] https://build.openvpn.net/debian/openvpn/testing resolute main" > /etc/apt/sources.list.d/openvpn-aptrepo.list
When I run sudo apt-get update && sudo apt-get upgrade I get information about new available version of openvpn and ovpn-dkms
I get an error while building the ovpn-dkms module.
It seems that apport.fatal() used during the module build process is deprecated.
Full logs:
Przygotowywanie do rozpakowania pakietu .../openvpn_2.7.4-resolute1_amd64.deb ...
Rozpakowywanie pakietu openvpn (2.7.4-resolute1) nad (2.7.4-questing1) ...
Przygotowywanie do rozpakowania pakietu .../ovpn-dkms_7.0.0.2026032400-resolute1_all.deb ...
Module ovpn/7.0.0.2026032400 for kernel 6.17.0-23-generic (x86_64):
Before uninstall, this module version was ACTIVE on this kernel.
Deleting /lib/modules/6.17.0-23-generic/updates/dkms/ovpn.ko.zst
Restoring archived original module /lib/modules/6.17.0-23-generic/kernel/drivers/net/ovpn/ovpn.ko.zst
Running depmod..... done.
Deleting module ovpn/7.0.0.2026032400 completely from the DKMS tree.
Rozpakowywanie pakietu ovpn-dkms (7.0.0.2026032400-resolute1) nad (7.0.0.2026032400-questing1) ...
Konfigurowanie pakietu openvpn (2.7.4-resolute1) ...
A reboot is required to replace the running openvpn.
Please reboot the system as soon as possible.
Konfigurowanie pakietu ovpn-dkms (7.0.0.2026032400-resolute1) ...
Loading new ovpn/7.0.0.2026032400 DKMS files...
Building for 6.17.0-23-generic and 7.0.0-15-generic
Building initial module ovpn/7.0.0.2026032400 for 6.17.0-23-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Building module(s)...... done.
Signing module /var/lib/dkms/ovpn/7.0.0.2026032400/build/drivers/net/ovpn/ovpn.ko
Found pre-existing /lib/modules/6.17.0-23-generic/kernel/drivers/net/ovpn/ovpn.ko.zst, archiving for uninstallation
Installing /lib/modules/6.17.0-23-generic/updates/dkms/ovpn.ko.zst
Running depmod... done.
Building initial module ovpn/7.0.0.2026032400 for 7.0.0-15-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Building module(s).....(bad exit status: 2)
Failed command:
make -j4 KERNELRELEASE=7.0.0-15-generic VER=7.0.0-15-generic KERNEL_SRC=/lib/modules/7.0.0-15-generic/build REVISION=7.0.0.2026032400
/usr/share/apport/package-hooks/dkms_packages.py:101: DeprecationWarning: apport.fatal() is deprecated. Please use apport.logging.fatal() directly instead.
apport.fatal('Cannot create report: ' + str(e))
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/ovpn-dkms.0.crash'
Error! Bad return status for module build on kernel: 7.0.0-15-generic (x86_64)
Consult /var/lib/dkms/ovpn/7.0.0.2026032400/build/make.log for more information.
dpkg: błąd przetwarzania pakietu ovpn-dkms (--configure):
old ovpn-dkms package postinst maintainer script subprocess failed with exit status 10
Przetwarzanie wyzwalaczy pakietu man-db (2.13.1-1build1)...
Wystąpiły błędy podczas przetwarzania:
ovpn-dkms
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with /var/lib/dkms/ovpn/7.0.0.2026032400/build/make.log for the failed 7.0.0-15-generic build, then review the DKMS build output and /usr/share/apport/package-hooks/dkms_packages.py around the reported warning. Determine the actual build failure separately from the apport error, and consider the issue done when the package configures successfully for both kernels with the failure no longer masked by report creation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux, ubuntu
- Domain
- networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100