WireGuard Updates not available Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: WireGuard Updates not available

Post by Joulinar »

for WireGuard the Bullseye repository is used on DietPi. And there is no newer version atm.

https://packages.debian.org/bullseye/net/wireguard
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Niwre
Posts: 36
Joined: Tue Apr 09, 2019 1:26 pm

Re: WireGuard Updates not available

Post by Niwre »

Was something changed there? I always check the WireGuard website, the current version is available for Debian and this is also offered for DietPi 6.25.
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: WireGuard Updates not available

Post by Joulinar »

At the beginning there where some workarounds implemented to have WireGuard available. But this changed and WireGuard is now being installed from Bullseye repository as you can see on the package preferences:

Code: Select all

root@DietPi4:/etc/apt/preferences.d# cat dietpi-wireguard
Package: *
Pin: release n=bullseye
Pin-Priority: -1

Package: wireguard wireguard-dkms wireguard-tools
Pin: release n=bullseye
Pin-Priority: 100
root@DietPi4:/etc/apt/preferences.d#
You would need to wait until WireGuard package will be update on Bullseye
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Niwre
Posts: 36
Joined: Tue Apr 09, 2019 1:26 pm

Re: WireGuard Updates not available

Post by Niwre »

Thank you for your help, I am waiting for the update on Bullseye.
mail2rst
Posts: 61
Joined: Fri Apr 13, 2018 4:53 pm

Re: WireGuard Updates not available

Post by mail2rst »

I am also struck at same situation, my wireguard working yesterday but after update it is broken today, i am very new to wireguard. if in backhand side they update there system. what procedure i have to follow to update my system & start working on my machine. if anywhere some guidelines to update system please suggest me

mostly i am using only these commands in my system frequently

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

is these commands will sufficient & my wireguard system will online again when they update or i have to uninstall & install again everything again?
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: WireGuard Updates not available

Post by Joulinar »

Hi @mail2rst,

I don't think you have similar issue. Because you seems to be able to do an update but somehow thinks are not working afterwards. What I don't understand is the following:
if in backhand side they update there system.
Whom do you mean by this?
Who is "they"?

Do you run WireGuard as Server or Client?

In case of server pls can you past output of

Code: Select all

systemctl status wg-quick@wg0.service
journalctl -u wg-quick@wg0.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mail2rst
Posts: 61
Joined: Fri Apr 13, 2018 4:53 pm

Re: WireGuard Updates not available

Post by mail2rst »

I installed two wireguard’s one on my home raspberry pi (with dietpi) & second on google cloud with there debian image. My batch file update are running in night same time & both virtual machines was working wirgaurd on Sunday. In Monday night early morning when update batch files run both machines break down. In dietpi local machine I format the card & reinstall dietpi & still not put wirguard & wait till all updated from there owner will complete . But on google cloud side I got these errors. I think in dietpi side I received these type errors also but I am not able to run these command because that machine already formatted. i am running wireguard server on linux(debian/dietpi) & access via android app clients
=======
my update bash file run these commands
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo reboot
==================
systemctl status wg-quick@wg0.service
wg-quick@wg0.service - WireGuard via wg-quick(8) for wg0
Loaded: loaded (/lib/systemd/system/wg-quick@.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-02-09 16:00:24 UTC; 1 day 23h ago
Docs: man:wg-quick(8)
man:wg(8)
https://www.wireguard.com/
https://www.wireguard.com/quickstart/
https://git.zx2c4.com/wireguard-tools/a ... wg-quick.8
https://git.zx2c4.com/wireguard-tools/a ... c/man/wg.8
Process: 752 ExecStart=/usr/bin/wg-quick up wg0 (code=exited, status=1/FAILURE)
Main PID: 752 (code=exited, status=1/FAILURE)
Feb 09 16:00:24 wiregaurd systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
Feb 09 16:00:24 wiregaurd wg-quick[752]: [#] ip link add wg0 type wireguard
Feb 09 16:00:24 wiregaurd wg-quick[752]: RTNETLINK answers: Operation not supported
Feb 09 16:00:24 wiregaurd wg-quick[752]: Unable to access interface: Protocol not supported
Feb 09 16:00:24 wiregaurd wg-quick[752]: [#] ip link delete dev wg0
Feb 09 16:00:24 wiregaurd wg-quick[752]: Cannot find device "wg0"
Feb 09 16:00:24 wiregaurd systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=1/FAILURE
Feb 09 16:00:24 wiregaurd systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.
Feb 09 16:00:24 wiregaurd systemd[1]: wg-quick@wg0.service: Unit entered failed state.
Feb 09 16:00:24 wiregaurd systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.

===================
journalctl -u wg-quick@wg0.service
-- Logs begin at Sun 2020-02-09 16:00:22 UTC, end at Tue 2020-02-11 15:41:52 UTC. --
Feb 09 16:00:24 wiregaurd systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
Feb 09 16:00:24 wiregaurd wg-quick[752]: [#] ip link add wg0 type wireguard
Feb 09 16:00:24 wiregaurd wg-quick[752]: RTNETLINK answers: Operation not supported
Feb 09 16:00:24 wiregaurd wg-quick[752]: Unable to access interface: Protocol not supported
Feb 09 16:00:24 wiregaurd wg-quick[752]: [#] ip link delete dev wg0
Feb 09 16:00:24 wiregaurd wg-quick[752]: Cannot find device "wg0"
Feb 09 16:00:24 wiregaurd systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=1/FAILURE
Feb 09 16:00:24 wiregaurd systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.
Feb 09 16:00:24 wiregaurd systemd[1]: wg-quick@wg0.service: Unit entered failed state.
Feb 09 16:00:24 wiregaurd systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.
============
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: WireGuard Updates not available

Post by Joulinar »

well seems something went wrong during your nightly update. Maybe you're missing linux-headers. To resolve this, you could try installing the linux-headers corresponding to your kernel version.

Code: Select all

apt-get install wireguard-dkms wireguard-tools linux-headers-$(uname -r)
Is there are reason why you are running apt-get dist-upgrade next to apt-get upgrade
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mail2rst
Posts: 61
Joined: Fri Apr 13, 2018 4:53 pm

Re: WireGuard Updates not available

Post by mail2rst »

Thanks @ Joulinar, you are very helpful. I am newbie in linux, & try to safeguard my servers by updating them frequently, as my both servers expose to outside I want to protect them as much as possible.

So from my learning, these three commands update the operating system to currently benchmark,

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade


please guide me if these “apt-get dist-upgrade next to apt-get upgrade” have adverse effect. I can change my update bash files. My update bashfile executed each week, please suggest me what things/commands to be need in our update bashfiles so that our server protected from broot forces. I am linux learner/lover & try to polish my program as I learned. thanks
this command these results
==================================================================
apt-get install wireguard-dkms wireguard-tools linux-headers-$(uname -r)
================================================================
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-4.9.0-12-amd64 is already the newest version (4.9.210-1).
wireguard-dkms is already the newest version (0.0.20200121-2).
wireguard-tools is already the newest version (1.0.20200121-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
==============================================================================
User avatar
Joulinar
Posts: 2546
Joined: Sat Nov 16, 2019 12:49 am

Re: WireGuard Updates not available

Post by Joulinar »

something seems to be wrong on your system. I guess you would need to remove the wireguard stack and try to get a clean install. Somehow WireGuard is not able to find the correct kernel header.

Code: Select all

sudo apt-get remove wireguard
sudo apt autoremove
reboot
once done try to install WireGuard again.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply