Closed daixiang0 closed 7 years ago
See "Unable to create or edit a L2TP VPN connection" on :
i.e. you are using a GNOME based connection editor but didn't install network-manager-l2tp-gnome.
Now i find below issue and can not install network-manager-l2tp-gnome:
W: The repository 'http://ppa.launchpad.net/seriy-pr/network-manager-l2tp/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/seriy-pr/network-manager-l2tp/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
daixiang@localhost:~$ sudo apt-get install network-manager-l2tp-gnome
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package network-manager-l2tp-gnome is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
network-manager-l2tp
E: Package 'network-manager-l2tp-gnome' has no installation candidate
Then i try to build with code:
daixiang@localhost:~/network-manager-l2tp$ make
make all-recursive
make[1]: Entering directory '/home/daixiang/network-manager-l2tp'
Making all in shared
make[2]: Entering directory '/home/daixiang/network-manager-l2tp/shared'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/daixiang/network-manager-l2tp/shared'
Making all in properties
make[2]: Entering directory '/home/daixiang/network-manager-l2tp/properties'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/daixiang/network-manager-l2tp/properties'
Making all in src
make[2]: Entering directory '/home/daixiang/network-manager-l2tp/src'
GEN nm-l2tp-pppd-service-dbus.h
Traceback (most recent call last):
File "/home/daixiang/anaconda2/bin/gdbus-codegen", line 37, in <module>
from codegen import codegen_main
ImportError: cannot import name codegen_main
Makefile:901: recipe for target 'nm-l2tp-pppd-service-dbus.h' failed
make[2]: *** [nm-l2tp-pppd-service-dbus.h] Error 1
make[2]: Leaving directory '/home/daixiang/network-manager-l2tp/src'
Makefile:567: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/daixiang/network-manager-l2tp'
Makefile:436: recipe for target 'all' failed
make: *** [all] Error 2
daixiang@localhost:~/network-manager-l2tp$ pip install codegen_main
Collecting codegen_main
Could not find a version that satisfies the requirement codegen_main (from versions: )
No matching distribution found for codegen_main
http://ppa.launchpad.net/seriy-pr/network-manager-l2tp is a different older repository that hasn't released anything since 2014, for the correct PPA repository see here:
For build instructions see here:
I directly add ppa and install network-manager-l2tp, then want to create l2tp connect in the system configure, but below issue occur:
It seems lack lib file but i do not know how to install it.