pivpn: cannot install pivpn from script
I had a nicely working pivpn on my raspberry pi 4 server and running open vpn on my phone when I had a cert expired. I tried to create a new client ovpn but this did not generate a new certificate. I read that the best way to get a new cert was to uninstall and re-install pivpn, however, now, regardless of which option I choose (openvpn/wireguard) when running the install script it just stops at “::: Using VPN: WireGuard” (or openvpn) and does nothing else. If I ctr-c out of it then pivpn is not installed. I have manually installed openvpn and wireguard but wasn’t prompted to install them before that. Has anything changed or are there unmentioned dependencies ? what should it be doing after this stage? Thanks for any help getting this working again. Tony
The full install feedback is :
:::
::: sudo will be used for the install.
::: 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...
::: Checking for git... already installed!
::: Checking for tar... already installed!
::: Checking for curl... already installed!
::: Checking for grep... already installed!
::: Checking for dnsutils... already installed!
::: Checking for grepcidr... already installed!
::: Checking for whiptail... already installed!
::: Checking for net-tools... already installed!
::: Checking for bsdmainutils... already installed!
::: Checking for bash-completion... already installed!
::: Checking for dhcpcd5... already installed!
::: Checking for iptables-persistent... already installed!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libc-ares2 libmaxminddb0 libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediagsttools5 libqt5multimediaquick5 libqt5multimediawidgets5 libsmi2ldbl libwireshark-data libwireshark11 libwiretap8
libwscodecs2 libwsutil9 wireshark-common wireshark-qt
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
::: IPv6 test connections to google.com have failed. Disabling IPv6 support. (The curl test failed with code: 6)
grep: /etc/resolv.conf: No such file or directory
::: Static IP already configured.
::: Using User: tony
:::
::: Checking for existing base files...
::: Checking /usr/local/src/pivpn is a repo... OK!
::: Updating repo in /usr/local/src/pivpn from https://github.com/pivpn/pivpn.git ... done!
::: Using VPN: WireGuard
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 15 (5 by maintainers)
I experienced the same issue and when it hung i did a Ctrl+\ and the script continued. I did not modify the install scipt at all.
This is a “me too” post, but also with some additional data points:
/etc/resolv.conferror (see below).Here is the tail of the script where it fails:
I will try the workaround and report back.
I had word for word the exact same issue as OP. The workaround mentioned in issue #1518 did the trick