PPTP VPN connection
我想在 Linux中设置kali
。我需要安装此包:network-manager-pptp-gnome
。我只是尝试了这个:
apt-get 更新
apt-get 安装网络管理器-pptp-gnome
但我收到了这个错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
network-manager-pptp
The following NEW packages will be installed:
network-manager-pptp network-manager-pptp-gnome
0 upgraded, 2 newly installed, 0 to remove and 2067 not upgraded.
Need to get 141 kB of archives.
After this operation, 806 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://http.kali.org/kali kali-rolling/main amd64 network-manager-pptp amd64 1.2.4-5
404 Not Found
Err:2 http://http.kali.org/kali kali-rolling/main amd64 network-manager-pptp-gnome amd64 1.2.4-5
404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/n/network-manager-pptp/network-manager-pptp_1.2.4-5_amd64.deb 404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/n/network-manager-pptp/network-manager-pptp-gnome_1.2.4-5_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
另一方面,此包在存储库中可用:
root@kali:~# apt-cache policy 网络管理器-pptp 网络管理器-pptp-gnome
network-manager-pptp:
Installed: (none)
Candidate: 1.2.4-5
Version table:
1.2.4-5 500
500 http://http.kali.org/kali kali-rolling/main amd64 Packages
network-manager-pptp-gnome:
Installed: (none)
Candidate: 1.2.4-5
Version table:
1.2.4-5 500
500 http://http.kali.org/kali kali-rolling/main amd64 Packages
我也尝试过编辑/etc/apt/sources.list
,但并没有解决我的问题。那么,我该如何解决这个烦人的问题呢?
答案1
如果您的 Apt 索引非常旧,它将尝试获取服务器上不再存在的文件,因为它们已被新版本取代。apt-get update -y
运行前请先尝试apt-get install
。
答案2
我碰巧在 Windows 子系统中的 Kali Linux 上遇到了这个问题。
以下内容对我有用并允许我获得更新;按照https://www.kali.org/news/kali-linux-repository-https-support/:
### Copied from kali Support -
root@kali:~# apt install apt-transport-https
root@kali:~# cat /etc/apt/sources.list
deb https://http.kali.org/kali kali-rolling main non-free contrib
# deb-src https://http.kali.org/kali kali-rolling main non-free contrib
root@kali:~#
我曾经vi
编辑源文件并在其中添加https镜像。
现在,对我们的镜像执行的任何更新或升级操作都将启用 HTTPS:
root@kali:~# apt update
Hit:1 https://archive-3.kali.org/kali kali-rolling InRelease
Reading package lists... Done
root@kali:~#