This repository was archived by the owner on Nov 2, 2024. It is now read-only.
WireGuard Script [ERROR] in line 40: exit code 1 when selecting latest Ubuntu 23.04 Lunar. Works using Debian 11. #1753
Replies: 1 comment
-
Note: Confirmed script also works on Ubuntu 22.04.3 LTS Jammy. Appears script compatibility with 23.04 Lunar is the culprit. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Selected Advanced, Ubuntu 23.4
`
✓ Installed Dependencies
++ curl -fsSL https://install.pivpn.io
:::
::: You are root.
::: --unattended passed to install script, no whiptail dialogs will be displayed
::: Hostname length OK
::: Verifying free disk space...
:::
::: Package Cache update is needed, running apt-get update -y ...
done!
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with PiVPN installation...
Status: inactive
::: Checking for git... not installed!
::: Checking for tar... already installed!
::: Checking for curl... already installed!
::: Checking for grep... already installed!
::: Checking for dnsutils... not installed!
::: Checking for grepcidr... not installed!
::: Checking for whiptail... already installed!
::: Checking for net-tools... not installed!
::: Checking for bsdmainutils... not installed!
::: Checking for bash-completion... already installed!
::: Checking for iptables-persistent... not installed!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
git-man libcurl3-gnutls liberror-perl ncal netfilter-persistent
Suggested packages:
calendar whois vacation mailutils git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
Recommended packages:
patch
The following NEW packages will be installed:
bsdmainutils dnsutils git git-man grepcidr iptables-persistent libcurl3-gnutls liberror-perl ncal net-tools netfilter-persistent
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 5231 kB of archives.
After this operation, 25.8 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu lunar/universe amd64 netfilter-persistent all 1.0.18 [6640 B]
Get:2 http://archive.ubuntu.com/ubuntu lunar/universe amd64 iptables-persistent all 1.0.18 [6584 B]
Get:3 http://archive.ubuntu.com/ubuntu lunar/universe amd64 ncal amd64 12.1.7+nmu3ubuntu2 [20.2 kB]
Get:4 http://archive.ubuntu.com/ubuntu lunar/universe amd64 bsdmainutils all 12.1.7+nmu3ubuntu2 [3170 B]
Get:5 http://archive.ubuntu.com/ubuntu lunar-updates/universe amd64 dnsutils all 1:9.18.12-1ubuntu1.1 [3932 B]
Get:6 http://archive.ubuntu.com/ubuntu lunar-updates/main amd64 libcurl3-gnutls amd64 7.88.1-8ubuntu2.1 [300 kB]
Get:7 http://archive.ubuntu.com/ubuntu lunar/main amd64 liberror-perl all 0.17029-2 [25.6 kB]
Get:8 http://archive.ubuntu.com/ubuntu lunar-updates/main amd64 git-man all 1:2.39.2-1ubuntu1.1 [1075 kB]
Get:9 http://archive.ubuntu.com/ubuntu lunar-updates/main amd64 git amd64 1:2.39.2-1ubuntu1.1 [3572 kB]
Get:10 http://archive.ubuntu.com/ubuntu lunar/universe amd64 grepcidr amd64 2.0-2 [13.8 kB]
Get:11 http://archive.ubuntu.com/ubuntu lunar/main amd64 net-tools amd64 2.10-0.1ubuntu3 [204 kB]
Fetched 5231 kB in 1s (4096 kB/s)
Preconfiguring packages ...
Selecting previously unselected package netfilter-persistent.
(Reading database ... 19566 files and directories currently installed.)
Preparing to unpack .../00-netfilter-persistent_1.0.18_all.deb ...
Unpacking netfilter-persistent (1.0.18) ...
Selecting previously unselected package iptables-persistent.
Preparing to unpack .../01-iptables-persistent_1.0.18_all.deb ...
Unpacking iptables-persistent (1.0.18) ...
Selecting previously unselected package ncal.
Preparing to unpack .../02-ncal_12.1.7+nmu3ubuntu2_amd64.deb ...
Unpacking ncal (12.1.7+nmu3ubuntu2) ...
Selecting previously unselected package bsdmainutils.
Preparing to unpack .../03-bsdmainutils_12.1.7+nmu3ubuntu2_all.deb ...
Unpacking bsdmainutils (12.1.7+nmu3ubuntu2) ...
Selecting previously unselected package dnsutils.
Preparing to unpack .../04-dnsutils_1%3a9.18.12-1ubuntu1.1_all.deb ...
Unpacking dnsutils (1:9.18.12-1ubuntu1.1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../05-libcurl3-gnutls_7.88.1-8ubuntu2.1_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.88.1-8ubuntu2.1) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../06-liberror-perl_0.17029-2_all.deb ...
Unpacking liberror-perl (0.17029-2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../07-git-man_1%3a2.39.2-1ubuntu1.1_all.deb ...
Unpacking git-man (1:2.39.2-1ubuntu1.1) ...
Selecting previously unselected package git.
Preparing to unpack .../08-git_1%3a2.39.2-1ubuntu1.1_amd64.deb ...
Unpacking git (1:2.39.2-1ubuntu1.1) ...
Selecting previously unselected package grepcidr.
Preparing to unpack .../09-grepcidr_2.0-2_amd64.deb ...
Unpacking grepcidr (2.0-2) ...
Selecting previously unselected package net-tools.
Preparing to unpack .../10-net-tools_2.10-0.1ubuntu3_amd64.deb ...
Unpacking net-tools (2.10-0.1ubuntu3) ...
Setting up net-tools (2.10-0.1ubuntu3) ...
Setting up ncal (12.1.7+nmu3ubuntu2) ...
Setting up libcurl3-gnutls:amd64 (7.88.1-8ubuntu2.1) ...
Setting up dnsutils (1:9.18.12-1ubuntu1.1) ...
Setting up liberror-perl (0.17029-2) ...
Setting up bsdmainutils (12.1.7+nmu3ubuntu2) ...
Setting up grepcidr (2.0-2) ...
Setting up netfilter-persistent (1.0.18) ...
Created symlink /etc/systemd/system/multi-user.target.wants/netfilter-persistent.service -> /lib/systemd/system/netfilter-persistent.service.
Setting up git-man (1:2.39.2-1ubuntu1.1) ...
Setting up iptables-persistent (1.0.18) ...
update-alternatives: using /lib/systemd/system/netfilter-persistent.service to provide /lib/systemd/system/iptables.service (iptables.service) in auto mode
Setting up git (1:2.39.2-1ubuntu1.1) ...
Processing triggers for man-db (2.11.2-1) ...
Processing triggers for libc-bin (2.37-0ubuntu2) ...
::: Package git successfully installed!
::: Package dnsutils successfully installed!
::: Package grepcidr successfully installed!
::: Package net-tools successfully installed!
::: Package bsdmainutils successfully installed!
::: Package iptables-persistent successfully installed!
::: PiVPN Automated Installer
::: This installer will transform your Ubuntu host into an OpenVPN or WireGuard server!
::: Initiating network interface
::: IPv6 test connections to google.com have failed. Disabling IPv6 support. (The curl test failed with code: 7)
::: Enable forced IPv6 route with no IPv6 uplink on server.
::: Using interface: eth0 for IPv4
::: Since we think you are not using Raspberry Pi OS, we will not configure a static IP for you.
::: User root does not exist, creating...
useradd: user 'root' already exists
::: User created without a password, please do sudo passwd root to create one
:::
::: Checking for existing base files...
::: Checking /usr/local/src/pivpn is a repo... not found!
::: Cloning https://github.com/pivpn/pivpn.git into /usr/local/src/pivpn ... done!
::: WireGuard will be installed
::: Installing WireGuard...
::: Checking for wireguard-tools... not installed!
::: Checking for qrencode... not installed!
::: Checking for linux-headers-generic... not installed!
::: Checking for wireguard-dkms... not installed!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package wireguard-dkms
::: Failed to install wireguard-tools!
::: Failed to install qrencode!
::: Failed to install linux-headers-generic!
::: Failed to install wireguard-dkms!
[2023-09-02T10:42:52-0400]:
++ error_handler 40 '$STD bash <(curl -fsSL https://install.pivpn.io) --unattended options.conf'
++ local exit_code=1
++ local line_number=40
++ local 'command=$STD bash <(curl -fsSL https://install.pivpn.io) --unattended options.conf'
++ local 'error_message=\033[01;31m[ERROR]\033[m in line \033[01;31m40\033[m: exit code \033[01;31m1\033[m: while executing command \033[33m$STD bash <(curl -fsSL https://install.pivpn.io) --unattended options.conf\033[m'
++ echo -e '\n\033[01;31m[ERROR]\033[m in line \033[01;31m40\033[m: exit code \033[01;31m1\033[m: while executing command \033[33m$STD bash <(curl -fsSL https://install.pivpn.io) --unattended options.conf\033[m'
[ERROR] in line 40: exit code 1: while executing command $STD bash <(curl -fsSL https://install.pivpn.io) --unattended options.conf
++ [[ 40 -eq 24 ]]
`
Beta Was this translation helpful? Give feedback.
All reactions