l-n-s / wireguard-install

WireGuard VPN server installer
MIT License
656 stars 166 forks source link

Let me save y'all some time, install these dependencies before installing WireGuard #64

Open ishmumx opened 4 years ago

ishmumx commented 4 years ago

If you try to run this script on a vanilla Debian or Ubuntu machine, you'll get errors that wg service is not found. Just run the following before you run the script and you will not face any issues running later:

sudo apt-get install libmnl-dev libelf-dev linux-headers-$(uname -r) build-essential pkg-config lsb-release iptables libmnl-dev libelf-dev linux-headers-$(uname -r) build-essential pkg-config libmnl-dev libelf-dev linux-headers-$(uname -r) build-essential pkg-config -y

Russkazkin commented 4 years ago

Still not working

Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.3).
libelf-dev is already the newest version (0.168-1).
iptables is already the newest version (1.6.0+snapshot20161117-6).
libmnl-dev is already the newest version (1.0.4-2).
lsb-release is already the newest version (9.20161125).
pkg-config is already the newest version (0.29-4+b1).
linux-headers-4.9.0-11-amd64 is already the newest version (4.9.189-3+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo systemctl start wg-quick@wg0.service
Job for wg-quick@wg0.service failed because the control process exited with error code.
See "systemctl status wg-quick@wg0.service" and "journalctl -xe" for details.
ishmumx commented 4 years ago

Still not working

Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.3).
libelf-dev is already the newest version (0.168-1).
iptables is already the newest version (1.6.0+snapshot20161117-6).
libmnl-dev is already the newest version (1.0.4-2).
lsb-release is already the newest version (9.20161125).
pkg-config is already the newest version (0.29-4+b1).
linux-headers-4.9.0-11-amd64 is already the newest version (4.9.189-3+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo systemctl start wg-quick@wg0.service
Job for wg-quick@wg0.service failed because the control process exited with error code.
See "systemctl status wg-quick@wg0.service" and "journalctl -xe" for details.

Can you run "systemctl status wg-quick@wg0.service" and "journalctl -xe" and tell me what they say? What distro?