Protostar,linux 无法解析 'ftp.au.debian.org'
Protostar, linux Could not resolve 'ftp.au.debian.org'
我想在 https://exploit-exercises.lains.space/
中进行 Protostar 漏洞利用练习
我想安装 Python 3 版本,为此我需要 运行 sudo apt-get update 命令。但它似乎失败了,问题出在 dns 上。但不幸的是我无法修复它。
这是我运行命令时的输出。
root@protostar:/etc# sudo apt-get update
sudo: unable to resolve host protostar
Err http://security.debian.org squeeze/updates Release.gpg
Could not resolve 'security.debian.org'
Err http://security.debian.org/ squeeze/updates/main Translation-en
Could not resolve 'security.debian.org'
Err http://security.debian.org/ squeeze/updates/main Translation-en_US
Could not resolve 'security.debian.org'
Err http://www.remastersys.com squeeze/ Release.gpg
Could not resolve 'www.remastersys.com'
Err http://www.remastersys.com/repository/ squeeze/ Translation-en
Could not resolve 'www.remastersys.com'
Err http://www.remastersys.com/repository/ squeeze/ Translation-en_US
Could not resolve 'www.remastersys.com'
Err http://ftp.au.debian.org squeeze Release.gpg
Could not resolve 'ftp.au.debian.org'
Err http://ftp.au.debian.org/debian/ squeeze/main Translation-en
Could not resolve 'ftp.au.debian.org'
Err http://ftp.au.debian.org/debian/ squeeze/main Translation-en_US
Could not resolve 'ftp.au.debian.org'
Err http://ftp.au.debian.org squeeze-updates Release.gpg
Could not resolve 'ftp.au.debian.org'
Err http://ftp.au.debian.org/debian/ squeeze-updates/main Translation-en
Could not resolve 'ftp.au.debian.org'
Err http://ftp.au.debian.org/debian/ squeeze-updates/main Translation-en_US
Could not resolve 'ftp.au.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze/Release.gpg Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze/main/i18n/Translation-en.bz2 Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze/main/i18n/Translation-en_US.bz2 Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/Release.gpg Could not resolve 'security.debian.org'
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/i18n/Translation-en.bz2 Could not resolve 'security.debian.org'
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/i18n/Translation-en_US.bz2 Could not resolve 'security.debian.org'
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze-updates/Release.gpg Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en.bz2 Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en_US.bz2 Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://www.remastersys.com/repository/squeeze/Release.gpg Could not resolve 'www.remastersys.com'
W: Failed to fetch http://www.remastersys.com/repository/squeeze/en.bz2 Could not resolve 'www.remastersys.com'
W: Failed to fetch http://www.remastersys.com/repository/squeeze/en_US.bz2 Could not resolve 'www.remastersys.com'
W: Some index files failed to download, they have been ignored, or old ones used instead.
如何将其修复为 运行 sudo apt-get update ?
所以要解决并在 Protostar 上下载 python 3.6 :
(显然由于 virtualbox 中的 Host-only 适配器,主机上没有互联网连接)
使用 wget 下载 python:
wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz
然后我使用 scp ( ssh ) 传输它(你可以将它移动到 /tmp 然后再到 /usr/sbin 如果它说没有权限)
scp Python-3.6.9.tgz root@192.168.56.102:/usr/sbin
导出并安装 python
tar xvf Python-3.6.9.tgzls
./configure
sudo make install
最后:
alias python=/usr/sbin/Python-3.6.9/python
我想在 https://exploit-exercises.lains.space/
中进行 Protostar 漏洞利用练习我想安装 Python 3 版本,为此我需要 运行 sudo apt-get update 命令。但它似乎失败了,问题出在 dns 上。但不幸的是我无法修复它。
这是我运行命令时的输出。
root@protostar:/etc# sudo apt-get update
sudo: unable to resolve host protostar
Err http://security.debian.org squeeze/updates Release.gpg
Could not resolve 'security.debian.org'
Err http://security.debian.org/ squeeze/updates/main Translation-en
Could not resolve 'security.debian.org'
Err http://security.debian.org/ squeeze/updates/main Translation-en_US
Could not resolve 'security.debian.org'
Err http://www.remastersys.com squeeze/ Release.gpg
Could not resolve 'www.remastersys.com'
Err http://www.remastersys.com/repository/ squeeze/ Translation-en
Could not resolve 'www.remastersys.com'
Err http://www.remastersys.com/repository/ squeeze/ Translation-en_US
Could not resolve 'www.remastersys.com'
Err http://ftp.au.debian.org squeeze Release.gpg
Could not resolve 'ftp.au.debian.org'
Err http://ftp.au.debian.org/debian/ squeeze/main Translation-en
Could not resolve 'ftp.au.debian.org'
Err http://ftp.au.debian.org/debian/ squeeze/main Translation-en_US
Could not resolve 'ftp.au.debian.org'
Err http://ftp.au.debian.org squeeze-updates Release.gpg
Could not resolve 'ftp.au.debian.org'
Err http://ftp.au.debian.org/debian/ squeeze-updates/main Translation-en
Could not resolve 'ftp.au.debian.org'
Err http://ftp.au.debian.org/debian/ squeeze-updates/main Translation-en_US
Could not resolve 'ftp.au.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze/Release.gpg Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze/main/i18n/Translation-en.bz2 Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze/main/i18n/Translation-en_US.bz2 Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/Release.gpg Could not resolve 'security.debian.org'
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/i18n/Translation-en.bz2 Could not resolve 'security.debian.org'
W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/i18n/Translation-en_US.bz2 Could not resolve 'security.debian.org'
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze-updates/Release.gpg Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en.bz2 Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://ftp.au.debian.org/debian/dists/squeeze-updates/main/i18n/Translation-en_US.bz2 Could not resolve 'ftp.au.debian.org'
W: Failed to fetch http://www.remastersys.com/repository/squeeze/Release.gpg Could not resolve 'www.remastersys.com'
W: Failed to fetch http://www.remastersys.com/repository/squeeze/en.bz2 Could not resolve 'www.remastersys.com'
W: Failed to fetch http://www.remastersys.com/repository/squeeze/en_US.bz2 Could not resolve 'www.remastersys.com'
W: Some index files failed to download, they have been ignored, or old ones used instead.
如何将其修复为 运行 sudo apt-get update ?
所以要解决并在 Protostar 上下载 python 3.6 :
(显然由于 virtualbox 中的 Host-only 适配器,主机上没有互联网连接)
使用 wget 下载 python:
wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz
然后我使用 scp ( ssh ) 传输它(你可以将它移动到 /tmp 然后再到 /usr/sbin 如果它说没有权限)
scp Python-3.6.9.tgz root@192.168.56.102:/usr/sbin
导出并安装 python
tar xvf Python-3.6.9.tgzls
./configure
sudo make install
最后:
alias python=/usr/sbin/Python-3.6.9/python