解决更新源强制使用https但出现apt-transport-https not found

今天在服务器上测试了这个脚本,服务器是ovz架构的debian8,内核2.6.8

Debian使用parrot源

选择的选项1,只改变core

脚本跑完之后想安装sqlmap但是报错

After this operation, 20.2 MB of additional disk space will be used.
Do you want to continue? [Y/n]
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?

提示缺少一个包:apt-transport-https

emm大概是为了安全起见吧

然后试了试apt install apt-transport-https

显然还是不行。。。

然后执行命令:

cd /usr/lib/apt/methods
ln -s http https

来骗一下apt,让它把http当成https。。。

然后apt install sqlmap安装成功


服务器资源由ZeptoVM赞助

Partners Wiki Discord