ExpressVPN Difficulties - n00b Alert

Good morning folks,

Let me preface by saying I’m a complete linux n00b and have never used a linux operating system so I apologize in advance. I chose Ubuntu Desktop, preconfigured the installation files on my sd card, and installed the OS successfully on my Raspberry Pi 4 8GB.

My first attempt at installing anything was ExpressVPN. I went to their site and downloaded the package for Ubuntu 64. In the Downloads folder, I found expressvpn_3.48.0.4-1_amd64.deb.

In terminal, I ran:

sudo dpkg -1 expressvpn_3.48.0.4-1_amd64.deb

After providing my password, there was a bunch of activity:

(Reading database … 149680 files and directories currently installed.)

Preparing to unpack expressvpn_3.48.0.4-1_amd64.deb …

/var/lib/dpkg/info/expressvpn.prerm: line 7: /usr/bin/expressvpn: cannot execute binary file: exec format error

Unpacking expressvpn:amd64 (3.48.0.4-1) over (3.48.0.4-1) …

Setting up expressvpn:amd64 (3.48.0.4-1) …

Processing triggers for man-db (2.11.2-1) …

Then, per instructions, I run a command & got the following response:

expressvpn activate

bash: /usr/bin/expressvpn: cannot execute binary file: Exec format error

I tried doing some research but unfortunately, I’m having difficulty finding this exact scenario anywhere. The closest I’ve come to an explaination is that the Pi is aarch64 but the package is amd64. I could be totally off base here. Even if that is the case, I’m not really sure where to go.

So, if there’s someone out there who is willing to do some hand-holding, provide some feedback, it would be greatly appreciated.

Thanks,

George

The Pi4 has an ARM processor, like all Android cell phones and many other small devices. The amd64 deb you have is meant for 64 bit intel compatible systems. If you’re going to do it that way you need a package that has ‘arm’ in the name.

If this company offers OpenVPN you can just get the OVPN configuration file, manually install OpenVPN, and place the config in /etc/openvpn.

I use ProtonVPN and Mullvad. I have previously set up OpenVPN to run automatically on boot but I found that sucks really hard. Now I just manually invoke OpenVPN under tmux when I need it.

My /etc/openvpn is a mess, what you would need as a bare minimum would be:

  1. providers .ovpn file
  2. put user and password in some_text_file.txt
  3. make sure auth-user-pass some_text_file.txt is in the config
  4. cd /etc/openvpn; chmod 600 * (OpenVPN may fuss about world readable files)

If you’re doing this because you’ve got srs bsns hazards, you want to edit your /etc/netplan so your system no longer has a default route. You’d put in a static route to DNS and then another to the ExpressVPN concentrator(s). Here’s a sample yaml file for netplan that works with Proton.

network:
ethernets:
eno1:
addresses: [192.168.1.101/24]
nameservers:
addresses: [9.9.9.9,1.0.0.1]
# gateway4: 192.168.1.1
routes:
- to: 1.0.0.1/32
via: 192.168.1.1
- to: 9.9.9.9/32
via: 192.168.1.1
-to: 185.159.158.0/23

via: 192.168.1.1

Thanks for the reply. I already pay for expressvpn so I was hoping to stay with that app. Is there any functional difference between the two or is it just another VPN.

In doing a little digging, I found this:

https://www.reddit.com/r/Express_VPN/comments/ns9t4w/expressvpn_on_ubuntu_raspberry_pi_4/

Do you think these steps will work?

Thank you for the detailed reply. I think I understood about 26.3% of it. lol. I was actually able to configure OpenVPN using ExpressVPN instructions yesterday. Aside from the opvn file type you mentioned above, none of that other information came into play. Does that mean I’ll have a problem later on?

Did they give you a graphical method of doing things?

Speaking as a grumpy old man with headless boxes in my care, I’ve never actually done it that way.

ARM64

I feel like an idiot. At each step, there’s a glitch. :frowning:

Running the instructions (specifically “sudo apt-get update”) at the link resulted in a bunch of errors related to IP: 185.125.190.36 80. I am able to ping that without the " 80" with success.

Hit:1 Index of /ubuntu-ports lunar InRelease
Get:2 Index of /ubuntu-ports lunar-updates InRelease [109 kB]
Get:3 Index of /ubuntu-ports lunar-backports InRelease [99.8 kB]
Get:4 Index of /ubuntu-ports lunar-security InRelease [109 kB]
Get:5 Index of /ubuntu-ports lunar/main amd64 Packages [1,396 kB]
Get:5 Index of /ubuntu-ports lunar/main amd64 Packages [1,396 kB]
Get:5 Index of /ubuntu-ports lunar/main amd64 Packages [1,396 kB]
Get:5 Index of /ubuntu-ports lunar/main amd64 Packages [1,396 kB]
Ign:5 Index of /ubuntu-ports lunar/main amd64 Packages
Ign:10 Index of /ubuntu-ports lunar/restricted amd64 Packages
Ign:11 Index of /ubuntu-ports lunar/universe amd64 Packages
Ign:12 Index of /ubuntu-ports lunar/multiverse amd64 Packages
Get:13 Index of /ubuntu-ports lunar-updates/main arm64 Packages [143 kB]
Get:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages [146 kB]
Get:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages [146 kB]
Get:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages [146 kB]
Get:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages [146 kB]
Get:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages [146 kB]
Get:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages [146 kB]
Ign:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages
Ign:21 Index of /ubuntu-ports lunar-updates/universe amd64 Packages
Ign:5 Index of /ubuntu-ports lunar/main amd64 Packages
Ign:10 Index of /ubuntu-ports lunar/restricted amd64 Packages
Ign:11 Index of /ubuntu-ports lunar/universe amd64 Packages
Ign:12 Index of /ubuntu-ports lunar/multiverse amd64 Packages
Ign:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages
Ign:21 Index of /ubuntu-ports lunar-updates/universe amd64 Packages
Get:5 Index of /ubuntu-ports lunar/main amd64 Packages [1,797 kB]
Get:5 Index of /ubuntu-ports lunar/main amd64 Packages [1,797 kB]
Ign:5 Index of /ubuntu-ports lunar/main amd64 Packages
Ign:10 Index of /ubuntu-ports lunar/restricted amd64 Packages
Ign:11 Index of /ubuntu-ports lunar/universe amd64 Packages
Ign:12 Index of /ubuntu-ports lunar/multiverse amd64 Packages
Ign:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages
Ign:24 Index of /ubuntu-ports lunar-backports/universe amd64 Packages
Ign:21 Index of /ubuntu-ports lunar-updates/universe amd64 Packages
Get:5 Index of /ubuntu-ports lunar/main amd64 Packages [1,797 kB]
Get:5 Index of /ubuntu-ports lunar/main amd64 Packages [1,797 kB]
Ign:5 Index of /ubuntu-ports lunar/main amd64 Packages
Ign:10 Index of /ubuntu-ports lunar/restricted amd64 Packages
Ign:11 Index of /ubuntu-ports lunar/universe amd64 Packages
Ign:12 Index of /ubuntu-ports lunar/multiverse amd64 Packages
Get:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages [181 kB]
Get:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages [181 kB]
Ign:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages
Ign:24 Index of /ubuntu-ports lunar-backports/universe amd64 Packages
Ign:29 Index of /ubuntu-ports lunar-security/main amd64 Packages
Ign:30 Index of /ubuntu-ports lunar-security/universe amd64 Packages
Ign:21 Index of /ubuntu-ports lunar-updates/universe amd64 Packages
Ign:5 Index of /ubuntu-ports lunar/main amd64 Packages
Ign:10 Index of /ubuntu-ports lunar/restricted amd64 Packages
Ign:11 Index of /ubuntu-ports lunar/universe amd64 Packages
Ign:12 Index of /ubuntu-ports lunar/multiverse amd64 Packages
Ign:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages
Ign:24 Index of /ubuntu-ports lunar-backports/universe amd64 Packages
Ign:29 Index of /ubuntu-ports lunar-security/main amd64 Packages
Ign:30 Index of /ubuntu-ports lunar-security/universe amd64 Packages
Ign:21 Index of /ubuntu-ports lunar-updates/universe amd64 Packages
Err:5 Index of /ubuntu-ports lunar/main amd64 Packages
404 Not Found [IP: 185.125.190.36 80]
Ign:10 Index of /ubuntu-ports lunar/restricted amd64 Packages
Ign:11 Index of /ubuntu-ports lunar/universe amd64 Packages
Ign:12 Index of /ubuntu-ports lunar/multiverse amd64 Packages
Err:14 Index of /ubuntu-ports lunar-updates/main amd64 Packages
404 Not Found [IP: 185.125.190.36 80]
Ign:24 Index of /ubuntu-ports lunar-backports/universe amd64 Packages
Ign:29 Index of /ubuntu-ports lunar-security/main amd64 Packages
Ign:30 Index of /ubuntu-ports lunar-security/universe amd64 Packages
Ign:21 Index of /ubuntu-ports lunar-updates/universe amd64 Packages
Ign:24 Index of /ubuntu-ports lunar-backports/universe amd64 Packages
Ign:29 Index of /ubuntu-ports lunar-security/main amd64 Packages
Ign:30 Index of /ubuntu-ports lunar-security/universe amd64 Packages
Err:24 Index of /ubuntu-ports lunar-backports/universe amd64 Packages
404 Not Found [IP: 185.125.190.36 80]
Ign:29 Index of /ubuntu-ports lunar-security/main amd64 Packages
Ign:30 Index of /ubuntu-ports lunar-security/universe amd64 Packages
Err:29 Index of /ubuntu-ports lunar-security/main amd64 Packages
404 Not Found [IP: 185.125.190.36 80]
Ign:30 Index of /ubuntu-ports lunar-security/universe amd64 Packages
Fetched 317 kB in 7s (44.0 kB/s)
Reading package lists… Done
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/lunar/main/binary-amd64/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/lunar-updates/main/binary-amd64/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/lunar-backports/universe/binary-amd64/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/lunar-security/main/binary-amd64/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.