web-dev-qa-db-ja.com

18.04およびカーネル5.3.0-53-genericを備えたワイヤガードppa?

今日、アップデートとアップグレードを実行しましたが、ワイヤーガードを取得できませんでした

$ Sudo wg-quick up wg0
[#] ip link add wg0 type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported

ワイヤーガードをパージして再インストールすると、

Setting up wireguard-dkms (1.0.20200429-2~18.04) ...
Loading new wireguard-1.0.20200429 DKMS files...
Building for 5.3.0-53-generic
Building initial module for 5.3.0-53-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/wireguard-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.3.0-53-generic (x86_64)
Consult /var/lib/dkms/wireguard/1.0.20200429/build/make.log for more information.
Setting up wireguard-tools (1.0.20200513-1~18.04) ...
wg-quick.target is a disabled or a static unit, not starting it.
Setting up wireguard (1.0.20200513-1~18.04) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
ProblemType: Package
DKMSBuildLog:
 DKMS make.log for wireguard-1.0.20200429 for kernel 5.3.0-53-generic (x86_64)
 Wed May 20 09:54:57 PDT 2020
 make: Entering directory '/usr/src/linux-headers-5.3.0-53-generic'
   CC [M]  /var/lib/dkms/wireguard/1.0.20200429/build/main.o
   CC [M]  /var/lib/dkms/wireguard/1.0.20200429/build/noise.o
   CC [M]  /var/lib/dkms/wireguard/1.0.20200429/build/device.o
   CC [M]  /var/lib/dkms/wireguard/1.0.20200429/build/peer.o
   CC [M]  /var/lib/dkms/wireguard/1.0.20200429/build/timers.o
   CC [M]  /var/lib/dkms/wireguard/1.0.20200429/build/queueing.o
   CC [M]  /var/lib/dkms/wireguard/1.0.20200429/build/receive.o
   CC [M]  /var/lib/dkms/wireguard/1.0.20200429/build/send.o
 In file included from <command-line>:0:0:
 /var/lib/dkms/wireguard/1.0.20200429/build/compat/compat.h:1024:20: error: redefinition of ‘skb_reset_redirect’
  static inline void skb_reset_redirect(struct sk_buff *skb)
                     ^~~~~~~~~~~~~~~~~~
 In file included from /var/lib/dkms/wireguard/1.0.20200429/build/compat/compat.h:870:0,
                  from <command-line>:0:
 ./include/linux/skbuff.h:4476:20: note: previous definition of ‘skb_reset_redirect’ was here
  static inline void skb_reset_redirect(struct sk_buff *skb)
                     ^~~~~~~~~~~~~~~~~~
 In file included from <command-line>:0:0:
 /var/lib/dkms/wireguard/1.0.20200429/build/compat/compat.h:1024:20: error: redefinition of ‘skb_reset_redirect’
  static inline void skb_reset_redirect(struct sk_buff *skb)

元々はppa:wireguard/wireguardを使用してインストールしました-このカーネルではインストールが異なりますか?

5
Lucas W

以降、wireguard-dkmsが更新されました。バージョン1.0.20200506-1〜18.04では、この問題が修正されています。現在、カーネル5.3.0-53で動作しますが、5.3-051バージョンでは動作しなくなりました...

2
Laurent Simon

カーネルバージョン4.4.0-184-genericでも同じ問題が発生しました。私のためにwireguard-dkmsパッケージを再インストールするとうまくいきました:

$ Sudo apt-get --reinstall install wireguard-dkms 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
Need to get 0 B/257 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 293587 files and directories currently installed.)
Preparing to unpack .../wireguard-dkms_1.0.20200611-0ppa1~16.04_all.deb ...

------------------------------
Deleting module version: 1.0.20200611
completely from the DKMS tree.
------------------------------
Done.
Unpacking wireguard-dkms (1.0.20200611-0ppa1~16.04) over (1.0.20200611-0ppa1~16.04) ...
Setting up wireguard-dkms (1.0.20200611-0ppa1~16.04) ...
Loading new wireguard-1.0.20200611 DKMS files...
Building only for 4.4.0-184-generic
Building initial module for 4.4.0-184-generic
Done.

wireguard:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-184-generic/kernel/net/

depmod....

DKMS: install completed.
 ~ $
1
whiscard