Protostar, linux Не удалось разрешить 'ftp.au.debian.org' - PullRequest
0 голосов
/ 11 апреля 2020

Я хочу выполнить эксплойт Protostar в https://exploit-exercises.lains.space/

Я хотел установить версию Python 3 и для этого мне нужно запустить sudo apt-get обновить команду. Но кажется, что это не удается, и проблема с 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?

1 Ответ

0 голосов
/ 11 апреля 2020

Итак, чтобы решить и загрузить python 3.6 на Protostar:

(по-видимому, на хосте не было соединения inte rnet из-за адаптера Host-only в virtualbox)

скачал python используя wget:

wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz

Затем я перенес его с помощью scp (s sh) (вы можете переместите его в / 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

и, наконец,

псевдоним python = / usr / sbin / Python -3.6.9 / python

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...