「Kali Linux」- 使用旧源

  CREATED BY JENKINSBOT

较新版本的Kali Linux Rolling中已经移除了某些包,比如php5。

如果我们要安装旧版本的包,可以添加old.kali.org源:

#!/bin/bash

echo 'deb http://old.kali.org/kali sana main non-free contrib' >> /etc/apt/sources.list

然后执行:

#!/bin/bash

apt-get update

安装php5:

#!/bin/bash

apt-cache search php5

最后,从/etc/apt/sources.list中移除旧源:

#!/bin/bash

sed -i '/deb http:\/\/old.kali.org\/kali sana main non-free contrib/d' /etc/apt/sources.list

再次执行:

#!/bin/bash

apt-get update

参考文献

Kali sources.list Repositories