Ubuntu 18.04.1, cannot add PPA wireguard/ubuntu/wireguard

Solution 1:

As a workaround, you could manually add the following to your /etc/apt/sources.list:

deb http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic main 
deb-src http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic main 

And then sudo apt-get update.

You could see these steps in the WireGuard Launchpad page - reveal by expanding "Technical details about this PPA" and picking "Bionic 18.04" in the drop down.

The following post suggests that this error from add-apt-repository may be due to apt proxy settings, and gives a possible fix: Cannot add PPA - “user or team does not exist”.

Solution 2:

Info from https://launchpad.net/~wireguard : This formerly was responsible for producing a PPA for WireGuard on Ubuntu. That functionality has now been folded into Ubuntu itself, so our old PPA has been removed. Simply run apt install wireguard on all Ubuntus ≥ 16.04.