Error installing openvpn-as package on Ubuntu 20

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
JohanvdMerwe
OpenVpn Newbie
Posts: 2
Joined: Wed Mar 16, 2022 10:47 am

Error installing openvpn-as package on Ubuntu 20

Post by JohanvdMerwe » Wed Mar 16, 2022 11:13 am

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

User avatar
Pippin
Forum Team
Posts: 1200
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: Error installing openvpn-as package on Ubuntu 20

Post by Pippin » Wed Mar 16, 2022 12:10 pm

Hi,

Do you want the open source or commercial version of OpenVPN?
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

JohanvdMerwe
OpenVpn Newbie
Posts: 2
Joined: Wed Mar 16, 2022 10:47 am

Re: Error installing openvpn-as package on Ubuntu 20

Post by JohanvdMerwe » Wed Mar 16, 2022 12:41 pm

Hi

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

User avatar
Pippin
Forum Team
Posts: 1200
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: Error installing openvpn-as package on Ubuntu 20

Post by Pippin » Wed Mar 16, 2022 1:09 pm

You can remove the openvpn-as repo, which is OpenVPN Access Server.
OpenVPN open source is in Ubuntu`s standard repo.
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Post Reply