Page 1 of 1

Error installing openvpn-as package on Ubuntu 20

Posted: Wed Mar 16, 2022 11:13 am
by JohanvdMerwe
Good day

I am new to Ubuntu server and I am trying to install openvpn-as on a Raspberry Pi. I installed Ubuntu 20.04.4 TLS. I setup the time and did an update and upgrade.
I then proceded to copy the installation commands from the site into my unix console. I am logged in as root. However, I get an error stating that "Unable to locate package openvpn-as". So I suppose I am doing something wrong somewhere. Please see the commands and messages from my console:

Code: Select all

root@ubuntu:/# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal
root@ubuntu:/# apt update && apt -y install ca-certificates wget net-tools gnupg
Hit:1 http://as-repository.openvpn.net/as/debian focal InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://as-repository.openvpn.net/as/debian focal InRelease' doesn't support architecture 'armhf'
Reading package lists... Done
Building dependency tree
Reading state information... Done
net-tools is already the newest version (1.60+git20180626.aebd88e-1ubuntu1).
ca-certificates is already the newest version (20210119~20.04.2).
gnupg is already the newest version (2.2.19-3ubuntu2.1).
wget is already the newest version (1.20.3-1ubuntu2).
The following package was automatically installed and is no longer required:
  libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@ubuntu:/# wget -qO - https://as-repository.openvpn.net/as-repo-public.gpg | apt-key add -
OK
root@ubuntu:/# echo "deb http://as-repository.openvpn.net/as/debian focal main">/etc/apt/sources.list.d/openvpn-as-repo.list
root@ubuntu:/# apt update && apt -y install openvpn-as
Hit:1 http://as-repository.openvpn.net/as/debian focal InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://as-repository.openvpn.net/as/debian focal InRelease' doesn't support architecture 'armhf'
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openvpn-as
The commands I copied from the website to install the package is for Ubuntu 20 [arm64]. Here it is:

Code: Select all

apt update && apt -y install ca-certificates wget net-tools gnupg
wget -qO - https://as-repository.openvpn.net/as-repo-public.gpg | apt-key add -
echo "deb http://as-repository.openvpn.net/as/debian focal main">/etc/apt/sources.list.d/openvpn-as-repo.list
apt update && apt -y install openvpn-as
The installation instructions I followed are from the following website:
https://ubuntu.com/tutorials/how-to-ins ... 1-overview

Any help will be appreciated.

Regards

Re: Error installing openvpn-as package on Ubuntu 20

Posted: Wed Mar 16, 2022 12:10 pm
by Pippin
Hi,

Do you want the open source or commercial version of OpenVPN?

Re: Error installing openvpn-as package on Ubuntu 20

Posted: Wed Mar 16, 2022 12:41 pm
by JohanvdMerwe
Hi

I am hoping to install the opensource version, not the commercial.

Re: Error installing openvpn-as package on Ubuntu 20

Posted: Wed Mar 16, 2022 1:09 pm
by Pippin
You can remove the openvpn-as repo, which is OpenVPN Access Server.
OpenVPN open source is in Ubuntu`s standard repo.