Trouble installing L2TP vpn protocol on Elementary

elementary OS Asked on December 25, 2021

I’ve been trying to install l2tp on my Elementary OS Hera machine. I haven’t found any guide for this that is specific to Elementary, and while the related packages appear in my apt search, the option to use l2tp is not appearing in my network manager.

This is the command I entered after adding the ppa:

sudo apt-get install network-manager-l2tp network-manager-l2tp-gnome 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:
 network-manager-l2tp : Depends: xl2tpd but it is not installable
                        Depends: strongswan but it is not installable or
                                 libreswan but it is not installable
E: Unable to correct problems, you have held broken packages.

I’m not sure if these dependency issues can be resolved – is l2tp simply not compatible with Elementary? Help would be appreciated!

One Answer

You need to install xl2tpd package. Here are the commands I use on Elementary OS Hera:

sudo apt-add-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt update
sudo apt install xl2tpd network-manager-l2tp network-manager-l2tp-gnome

After that you can add new VPN from Network settings. And now you can see new L2TP on dropdown menu.

Elementary OS Network Settings - Add L2TP VPN

Answered by mul14 on December 25, 2021

Add your own answers!

Related Questions

Can i add multiple docks?

1  Asked on August 28, 2021


Validity Fingerprint 138a:0090 reader

3  Asked on August 28, 2021 by jason-murphy


Select muliple files does not function

1  Asked on August 28, 2021 by josepablo


How to enable manual login?

1  Asked on August 28, 2021 by cng


What happened to the Applications Menu?

3  Asked on August 28, 2021 by christopher-collins


Lenovo touchpad does not work

1  Asked on February 25, 2021 by amir-2mi


Install hangs with gray rectangle accross screen

1  Asked on February 22, 2021 by user2777128


root login from GUI

2  Asked on February 15, 2021 by jung


elementary OS hangs a lot

0  Asked on February 12, 2021 by awais-mirza


Thunderbird update not available

0  Asked on February 10, 2021 by bigera


Can i install elementary OS without grub bootloader?

0  Asked on February 6, 2021 by quark405


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP