hwdsl2 / wireguard-install

WireGuard VPN server installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, Fedora, openSUSE and Raspberry Pi OS
MIT License
1.03k stars 246 forks source link

ubuntu 22.04 manual install #15

Closed nickfan closed 1 year ago

nickfan commented 1 year ago

任务列表

问题描述

image

重现步骤 重现该 bug 的步骤:

sudo bash wireguard.sh
Welcome to this WireGuard server installer!
GitHub: https://github.com/hwdsl2/wireguard-install

I need to ask you a few questions before starting setup.
You can use the default options and just press enter if you are OK with them.

Which IPv6 address should be used?
     1) 111xxx
     2) 222xxx
IPv6 address [1]: 1

What port should WireGuard listen to?
Port [51820]:

Enter a name for the first client:
Name [client]:

Select a DNS server for the client:
   1) Current system resolvers
   2) Google Public DNS
   3) Cloudflare DNS
   4) OpenDNS
   5) Quad9
   6) AdGuard DNS
   7) Custom
DNS server [2]: 3

WireGuard installation is ready to begin.
Do you want to continue? [Y/n]

Installing WireGuard, please wait...
+ apt-get -yqq update
+ apt-get -yqq install wireguard qrencode
Error: 'apt-get install' failed.

期待的正确结果 正常安装

hwdsl2 commented 1 year ago

@nickfan 你好!Ubuntu 22.04 最近的测试已通过(参见这里),可以正常安装。应该是你的服务器的系统的问题,不是脚本的问题。你可以将脚本中的 apt-get -yqq install 替换为 apt-get -y install,然后再次尝试安装并检查具体的错误信息。

VahidN commented 1 year ago

This error happens after installing and then uninstalling it.

hwdsl2 commented 1 year ago

@VahidN Hello! The referenced error typically means that apt-get -yqq install wireguard qrencode iptables was not successful, therefore the /etc/wireguard folder was not created. The script catches this issue and returns an error. Please retry the install on your server, as it is usually a temporary issue.