teddysun / across

Across the Great Wall we can reach every corner in the world
https://teddysun.com
Apache License 2.0
4.94k stars 2.22k forks source link

wireguard Ubuntu Server20.04 add ppa时脚本中止,因其已经在官方源了 #72

Closed ycmmonkey closed 3 years ago

ycmmonkey commented 3 years ago

我改成这样能用了 install_wg_1() { install_wg_pkgs _info "Install wireguard from repository" case "$(_os)" in ubuntu)

_error_detect "add-apt-repository ppa:wireguard/wireguard"

        _error_detect "apt-get update"
        _error_detect "apt-get -y install linux-headers-$(uname -r)"
        #_error_detect "apt-get -y install wireguard-dkms"
        #_error_detect "apt-get -y install wireguard-tools"
        _error_detect "apt-get -y install wireguard"
ycmmonkey commented 3 years ago

改如上之后,add_client的时侯会报WireGuard was not installed, please install it and try again 暂时把是否已安装判断注释掉就能用了