WireGuard Updates not available Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
mail2rst
Posts: 61
Joined: Fri Apr 13, 2018 4:53 pm

Re: WireGuard Updates not available

Post by mail2rst »

Thanks, i will reinstall wire guard again,


what you suggest for upgrade bash command, what things to be needed & what not? only operating system & security purpose. not for any other software or application running on it.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
User avatar
Joulinar
Posts: 2581
Joined: Sat Nov 16, 2019 12:49 am

Re: WireGuard Updates not available

Post by Joulinar »

The upgrade option only installs new version of the packages that are already installed on the system (and yes, kernel updates belong to them).

However, sometimes the updates change dependencies: for example, a new version of a package will no longer depend on a library that you have installed, or will require installation of additional libraries. The upgrade option will never remove installed packages that you no longer actually need.

However, the dist-upgrade option can "intelligently" handle changes in the dependencies system. This includes removing packages that are no longer necessary or resolve conflicts between packages that arose because of changes in the dependencies.

You should decide between both. From my point of view, it doesn't make sense to run them together.

upgrade

Code: Select all

    upgrade is used to install the newest versions of all packages
    currently installed on the system from the sources enumerated in
    /etc/apt/sources.list. Packages currently installed with new
    versions available are retrieved and upgraded; under no
    circumstances are currently installed packages removed, or packages
    not already installed retrieved and installed. New versions of
    currently installed packages that cannot be upgraded without
    changing the install status of another package will be left at
    their current version. An update must be performed first so that
    apt-get knows that new versions of packages are available.
dist-upgrade

Code: Select all

    dist-upgrade in addition to performing the function of upgrade,
    also intelligently handles changing dependencies with new versions
    of packages; apt-get has a "smart" conflict resolution system, and
    it will attempt to upgrade the most important packages at the
    expense of less important ones if necessary. So, dist-upgrade
    command may remove some packages. The /etc/apt/sources.list file
    contains a list of locations from which to retrieve desired package
    files. See also apt_preferences(5) for a mechanism for overriding
    the general settings for individual packages.
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 after your recommendation i remove my wiregurd & reinstall it again, even then it was not working. then i carefully check it showing me wireguard-tools are out of dated on my machine & new one on upstream wireguard repository. then i remove the wiregurad-tools & reinstall them again . after that wiregurad start working fine. so the trouble was from wireguard-tools
User avatar
Joulinar
Posts: 2581
Joined: Sat Nov 16, 2019 12:49 am

Re: WireGuard Updates not available

Post by Joulinar »

that's strange because you reported wireguard tool up-to-date

Code: Select all

wireguard-tools is already the newest version (1.0.20200121-2).
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 think it is upgraded now is


Debian [module – v0.0.20200205 & tools – v1.0.20200206]

now for debian

https://www.wireguard.com/install/
User avatar
Joulinar
Posts: 2581
Joined: Sat Nov 16, 2019 12:49 am

Re: WireGuard Updates not available

Post by Joulinar »

yes, however on DietPi WireGuard is being installed from Bullseye repository, which was not updated until now. So don't be confused if you will have a different version on your DietPi device.

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
mail2rst
Posts: 61
Joined: Fri Apr 13, 2018 4:53 pm

Re: WireGuard Updates not available

Post by mail2rst »

For future reference if I am using wireguard, I have to take care of these packages. if anything new come from up I have to install it on my machine by removing the old one & install new individually.

sudo apt-get remove wireguard-dkms
sudo apt-get remove wireguard-modules
sudo apt-get remove wireguard-tools


sudo apt-get install wireguard-dkms
sudo apt-get install wireguard-modules
sudo apt-get install wireguard-tools

or

sudo apt install wireguard
for everything.

Is I have to create new keys and generate client again or system can reuse old keys/clients. this time i regenerate keys & clients. but if these updates are frequent then personally i want to reuse them
User avatar
Joulinar
Posts: 2581
Joined: Sat Nov 16, 2019 12:49 am

Re: WireGuard Updates not available

Post by Joulinar »

honestly I don't understand why you like to remove/install WireGuard once a new version is out. This should not be needed. Usually apt-get update and apt-get upgrade will update your installation if needed.
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 »

OK, i will wait for next update will come then i will checked what happen. if found some trouble i will come back here. but for now everything is working for me. thanks for all your help. dietpi is fantastic software. i want to thanks the administrator of this dietpi software/operating system. with there hardwork & knowledge our machines are working 24/7 happily, thanks
DarrenHill
Posts: 29
Joined: Wed May 08, 2019 3:00 pm

Re: WireGuard Updates not available

Post by DarrenHill »

More generally, if you haven't already I would suggest looking into both fail2ban and unattended-upgrades as packages that might be useful to you (although the latter takes a little configuring to get running properly).

The former can be installed within DietPi, the latter would be via apt or apt-get.
Post Reply