我查看了有关如何在 kali 上安装 VPN 的问题,但我仍然无法让它工作。我使用以下命令开始获取 VPN。我知道还有更多命令,但我甚至无法让第一个命令工作。以下是命令及其输出:
# apt-get update
Reading package lists... Done
# apt-get install network-manager-pptp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package network-manager-pptp 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
E: Package 'network-manager-pptp' has no installation candidate
任何帮助都非常感谢!如果这是新手的问题,那么我很抱歉,因为我是 Linux 新手。
答案1
打开终端并在下面输入这些文本
nano /etc/apt/sources.list
之后,清除文本文件粘贴
#deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20141002-11:29]/ kali contrib main non-free
#deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20141002-11:29]/ kali contrib main non-free
deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib
## Security updates
deb http://security.kali.org/kali-security kali/updates main contrib non-free
之后保存文件并退出。
然后在终端输入
apt-get 更新 && apt-get 升级
如果失败,请尝试两三次。之后,您就可以安装网络包了。
答案2
如果你想在 Kali2 上离线安装 VPN,需要下载并公开分享必要的 .deb 文件:
https://drive.google.com/file/d/0BzVw5nmVUkkyWUxoMXpYWUgwS1E/view?usp=sharing
下载.tar.gz 文件然后解压:
tar -xvzf vpn.tar.gz
Go to the directory "vpn/3" and install all packages in it:
dpkg --install *.deb
至少运行上述命令 2 次,因为其中一些命令与其他命令有依赖关系,并且首先必须安装依赖项。