Hi, I was trying to install Cyberghost VPN and for some reason it failed with this log:
CyberGhost Installer ...
Check if "curl" package is already installed ... Yes
Check if "openvpn" package is already installed ... Yes
Checking OpenVPN version ... Latest ...
Check if "resolvconf" package is already installed ... Yes
Check if "wireguard" package is already installed ... No, installing ... Done.
Continue ...
Installing application ...
Create symlinks ...
install.sh: line 176: /usr/bin/cyberghostvpn: cannot execute binary file: Exec format error
and now I can’t do anything, it just shows like this when I try to update software, etc.
Err:1 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease
Temporary failure resolving 'packagecloud.io'
Err:2 https://downloads.plex.tv/repo/deb public InRelease
Temporary failure resolving 'downloads.plex.tv'
Err:3 https://archive.raspberrypi.com/debian bullseye InRelease
Temporary failure resolving 'archive.raspberrypi.com'
Err:4 https://deb.debian.org/debian bullseye InRelease
Temporary failure resolving 'deb.debian.org'
Err:5 https://deb.debian.org/debian bullseye-updates InRelease
Temporary failure resolving 'deb.debian.org'
Err:6 https://dietpi.com/apt bullseye InRelease
Temporary failure resolving 'dietpi.com'
Err:7 https://deb.debian.org/debian-security bullseye-security InRelease
Temporary failure resolving 'deb.debian.org'
Err:8 https://deb.nodesource.com/node_16.x bullseye InRelease
Temporary failure resolving 'deb.nodesource.com'
Err:9 https://dietpi.com/apt all InRelease
Temporary failure resolving 'dietpi.com'
Err:10 https://deb.debian.org/debian bullseye-backports InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists...
E: Failed to fetch https://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org'
E: Failed to fetch https://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org'
E: Failed to fetch https://deb.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'deb.debian.org'
E: Failed to fetch https://deb.debian.org/debian/dists/bullseye-backports/InRelease Temporary failure resolving 'deb.debian.org'
E: Failed to fetch https://dietpi.com/apt/dists/bullseye/InRelease Temporary failure resolving 'dietpi.com'
E: Failed to fetch https://dietpi.com/apt/dists/all/InRelease Temporary failure resolving 'dietpi.com'
E: Failed to fetch https://deb.nodesource.com/node_16.x/dists/bullseye/InRelease Temporary failure resolving 'deb.nodesource.com'
E: Failed to fetch https://packagecloud.io/ookla/speedtest-cli/debian/dists/bullseye/InRelease Temporary failure resolving 'packagecloud.io'
E: Failed to fetch https://downloads.plex.tv/repo/deb/dists/public/InRelease Temporary failure resolving 'downloads.plex.tv'
E: Failed to fetch https://archive.raspberrypi.com/debian/dists/bullseye/InRelease Temporary failure resolving 'archive.raspberrypi.com'
E: Some index files failed to download. They have been ignored, or old ones used instead.
Your DNS is not workling anymore.
looks like incorrect architecture was used by the install script.
Best to restore a backup you have done before the change
Or to check your DNS server settings. At least you should be able to ping 8.8.8.8 or 9.9.9.9 or 1.1.1.1
Pinging 8.8.8.8 works but update doesn’t.
root@DietPi:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=20.5 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=114 time=20.4 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 20.360/20.443/20.526/0.083 ms
root@DietPi:~# dietpi-update
DietPi-Update
─────────────────────────────────────────────────────
Phase: Checking for available DietPi update
[ OK ] DietPi-Update | Checking IPv4 network connectivity
[FAILED] DietPi-Update | Checking DNS resolver
- Command: getent hosts dns9.quad9.net
[FAILED] DietPi-Update | Unable to continue, DietPi-Update will now terminate.
I don’t have any recent backup
I only have this distros available btw for the installation.
better doing one next time.
what has been set in
cat /etc/resolv.conf
You need to check whether your system is 32bit. Maybe your VPN provider only supports 64bit? You need to check this.
Joulinar:
what has been set in
it’s empty
It’s a raspberry pi 4b, it’s arm64 I suppose.
Ok I fixed the resolve.conf part by setting it to the nameserver of my router. Now about the VPN part, what am I missing?
double check your system architecture. This was btw part of our initial trouble shooting template you removed during topic creation.
Required
DietPi version | cat /boot/dietpi/.version
Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
Kernel version | uname -a
Architecture | dpkg --print-architecture
SBC model | echo $G_HW_MODEL_NAME
or (EG: RPi3)
Joulinar:
echo $G_HW_MODEL_NAME
Sorry, here it is:
root@DietPi:~# cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=11
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
root@DietPi:~#
root@DietPi:~# echo $G_DISTRO_NAME $G_RASPBIAN
bullseye 0
root@DietPi:~# uname -a
Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
root@DietPi:~# dpkg --print-architecture
arm64
root@DietPi:~# echo $G_HW_MODEL_NAME
RPi 4 Model B (aarch64)
you are running quite old Debian Bullseye. Maybe that’s the problem. Anyway, something you need to check with your VPN provoder which executable would fit your system. Maybe you can try Ubuntu 20
Is this something I can update? I typically just run the dietpi-update
Thank you, I will try that out, specially because the 20.0 also doesn’t work.
To prevent opening a new thread, I’ll just use this one to ask if what I’m looking is possible:
I’m trying to setup a specific service in my dietpi to use a wireguard tunnel, but that’s just one service (without docker). Is this doable? Any guide?
Thanks.
depends on your app. usually you could try to bind the service/app to the wireguard tunnel.
Bzw, you can check with your VPN provider if the offer Wireguard Client configurations. This way you could avoid installation of 3rd party tools.
They don’t. Unfortunately.
Edit: @Joulinar but I have configs for OpenVPN. Does that help? Sorry, I’m seeking guidance.
I’m on bookworm now @Joulinar and I get the same error.
if you have a .ovpn file. you can use dietpi-vpn
and choose Custom
option Software Installation - DietPi.com Docs
And how can I assign it to be used only for 1 service running on the pi?
well this is a different topic compare to your initial question about installation of VPN software.
But I guess you need to setup some kind of spilt tunnel using iptables
. There @trendy is the expert. However better to open a new topic or search for existing once as we had that question quit often.
Ok. As for the original question, I’ve tried with the 22 and 20 version from the cyberghost and both gave the same error even with the bookworm. Is there anything else I can do?