Page 1 of 1

Can't install openvpn-as

Posted: Thu May 06, 2021 12:18 pm
by MirkoD2
Hello from Italy,
I was trying to install openvpn-as in my Ubuntu machine (VPS), but I encountered these errors:

Code: Select all

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openvpn-as : Depends: libffi7 (>= 3.3~20180313) but it is not installable
              Depends: python-netaddr but it is not installable
E: Unable to correct problems, you have held broken packages.
Image

Just openvpn works normally, but I would like to use the web GUI :P .

Thanks in advance
Mirko

Re: Can't install openvpn-as

Posted: Thu May 06, 2021 9:25 pm
by openvpn_inc
Hi There,

Which Ubuntu version you are using for this Access Server installation?
Can you confirm, then select and use the correct installation method and AS repository below.

Ubuntu 20:

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
Ubuntu 18:

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 bionic main">/etc/apt/sources.list.d/openvpn-as-repo.list

apt update && apt -y install openvpn-as
Ubuntu 16:

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 [arch=amd64] http://as-repository.openvpn.net/as/debian xenial main">/etc/apt/sources.list.d/openvpn-as-repo.list

apt update && apt -y install openvpn-as
MirkoD2 wrote:
Thu May 06, 2021 12:18 pm
Hello from Italy,
I was trying to install openvpn-as in my Ubuntu machine (VPS), but I encountered these errors:

Code: Select all

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openvpn-as : Depends: libffi7 (>= 3.3~20180313) but it is not installable
              Depends: python-netaddr but it is not installable
E: Unable to correct problems, you have held broken packages.
Image

Just openvpn works normally, but I would like to use the web GUI :P .

Thanks in advance
Mirko
Regards,
Crowley

Re: Can't install openvpn-as

Posted: Wed Mar 23, 2022 5:19 am
by toxemic
It's worth noting that although I am technically running Ubuntu 18.04.6 LTS and followed the instructions to the letter, I STILL had the same issue as the OP.
Although i think i know why that is, I have upgraded this system multiple times without reinstalling using Ubuntu's "upgrade" python script. I've had this server running for so many years now i couldn't even guess which version i started with. But eventually I upgraded to 16.04, then i upgraded to 18.04 a couple years ago now... But for some reason I still needed the older style of entry for apt's sources list.

Anyway, i thought it might be worth noting for others who come across this that if you have upgraded Ubuntu via their graphical upgrade tool or the python script as i have you might still need to use the instructions for version 16.04.

PS And it might be worth noting this in your instructions somewhere IMO.