Debian (OSMC) Install Issue

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
salawinder
OpenVpn Newbie
Posts: 2
Joined: Wed Oct 19, 2022 10:24 pm

Debian (OSMC) Install Issue

Post by salawinder » Wed Oct 19, 2022 10:31 pm

Hi,

Very new to this, and very inexperienced in Linux, so go easy!

I have a Linksys WRT3200ACM router which has an OpenVPN server which has stopped working due to the certificate expiring. I am not hopeful of a solution to that, so I am looking for another solution.

I have a Raspberry Pi I use as a media centre with OSMC, so have decided to use this as my access server. I followed the instructions for installing for Debian, but the install fails. From the site it says:

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 bullseye main">/etc/apt/sources.list.d/openvpn-as-repo.list
apt update && apt -y install openvpn-as
But the install fails at the

Code: Select all

wget -qO - https://as-repository.openvpn.net/as-repo-public.gpg | apt-key add -
line, as it reports that apt-key is depreciated.

I looked for solutions but I know little about Linux and don't want to mess up the set up I have or make it insecure.

As this is going to affect any new users that want to install with Debian, is there a way to get OpenVPN to update the instructions?

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: Debian (OSMC) Install Issue

Post by openvpn_inc » Thu Oct 20, 2022 9:39 am

Hello salawinder,

If you're referring to this warning message:
> Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

That's fine, it's just a warning, you can continue the installation just fine. This is not a FAILURE, this is a WARNING. A failure is when things stop working. A warning just means, hey, I'll continue, but you're doing something that I don't really like.

We are aware, and we are going to make the switch to loading the key in a different way, so that this warning message won't show anymore.

Kind regards,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

salawinder
OpenVpn Newbie
Posts: 2
Joined: Wed Oct 19, 2022 10:24 pm

Re: Debian (OSMC) Install Issue

Post by salawinder » Thu Oct 20, 2022 10:34 pm

Johan,

The error I am getting is:

Code: Select all

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
It does say warning rather than failure as you say, but (from my limited understanding) the installation does not work.

When I enter the next line it appears to do nothing (not sure if that is correct), then when I enter the last line I get the error:

Code: Select all

E: Unable to locate package openvpn-as
the full output of the last command is:

Code: Select all

Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org bullseye-security InRelease
Hit:4 http://as-repository.openvpn.net/as/debian bullseye InRelease
Hit:6 https://build.openvpn.net/debian/openvpn/stable bullseye InRelease
Hit:5 http://ftp.fau.de/osmc/osmc/apt bullseye InRelease
Reading package lists... Done
W: http://deb.debian.org/debian/dists/bullseye/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/example.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://deb.debian.org/debian/dists/bullseye-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/example.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://security.debian.org/dists/bullseye-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/example.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://as-repository.openvpn.net/as/debian/dists/bullseye/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/example.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://as-repository.openvpn.net/as/debian bullseye InRelease' doesn't support architecture 'armhf'
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://as-repository.openvpn.net/as/debian bullseye InRelease' doesn't support architecture 'arm64'
W: http://apt.osmc.tv/dists/bullseye/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/example.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package openvpn-as
Sorry for the long post, I didn't know what is needed.

Salawinder.

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: Debian (OSMC) Install Issue

Post by openvpn_inc » Fri Oct 21, 2022 9:41 am

Hello Salawinder,

The real problem is this:
repository 'http://as-repository.openvpn.net/as/debian bullseye InRelease' doesn't support architecture 'armhf'
repository 'http://as-repository.openvpn.net/as/debian bullseye InRelease' doesn't support architecture 'arm64'

You are running Debian 11 Bullseye on an ARM 32bit or ARM 64 bit platform. We don't build Access Server for ARM platform on Debian. For Debian we build it only for x86_64 platform (AMD64 architecture). If you want to run Access Server on an ARM device, it has to be an ARM64 device with Ubuntu 20.04 or Ubuntu 22.04, as we do build on ARM64 platform for those operating systems.

Sorry to disappoint you. You won't be able to run Access Server on your current hardware+software combination.

Kind regards,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

Post Reply