В качестве пользователя root введите команду apt-get update и получите эти сообщения об ошибках.

> Err http://security.debian.org lenny/updates Release.gpg                                                                                     
  Could not resolve 'security.debian.org'
Err http://security.debian.org lenny/updates/main Translation-en_US                                                                          
  Could not resolve 'security.debian.org'
Err http://security.debian.org lenny/updates/contrib Translation-en_US                                                                       
  Could not resolve 'security.debian.org'
Err http://security.debian.org lenny/updates/non-free Translation-en_US                                                                      
  Could not resolve 'security.debian.org'
Err http://www.backports.org lenny-backports Release.gpg                                                                                     
  Could not resolve 'www.backports.org'
Err http://www.backports.org lenny-backports/main Translation-en_US                                      
  Could not resolve 'www.backports.org'
Err http://www.backports.org lenny-backports/contrib Translation-en_US                                   
  Could not resolve 'www.backports.org'
Err http://www.backports.org lenny-backports/non-free Translation-en_US                                  
  Could not resolve 'www.backports.org'
Err http://ftp.us.debian.org lenny Release.gpg                                                           
  Could not resolve 'ftp.us.debian.org'
Err http://ftp.us.debian.org lenny/main Translation-en_US              
  Could not resolve 'ftp.us.debian.org'
Err http://ftp.us.debian.org lenny/contrib Translation-en_US           
  Could not resolve 'ftp.us.debian.org'
Err http://ftp.us.debian.org lenny/non-free Translation-en_US          
  Could not resolve 'ftp.us.debian.org'
Err http://http.us.debian.org stable Release.gpg                       
  Could not resolve 'http.us.debian.org'
Err http://http.us.debian.org stable/main Translation-en_US            
  Could not resolve 'http.us.debian.org'
Err http://http.us.debian.org stable/contrib Translation-en_US         
  Could not resolve 'http.us.debian.org'
Err http://http.us.debian.org stable/non-free Translation-en_US        
  Could not resolve 'http.us.debian.org'
Reading package lists... Done                                          
W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/Release.gpg  Could not resolve 'ftp.us.debian.org'

W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/main/i18n/Translation-en_US.gz  Could not resolve 'ftp.us.debian.org'

W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/contrib/i18n/Translation-en_US.gz  Could not resolve 'ftp.us.debian.org'

W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/non-free/i18n/Translation-en_US.gz  Could not resolve 'ftp.us.debian.org'

W: Failed to fetch http://http.us.debian.org/debian/dists/stable/Release.gpg  Could not resolve 'http.us.debian.org'

W: Failed to fetch http://http.us.debian.org/debian/dists/stable/main/i18n/Translation-en_US.gz  Could not resolve 'http.us.debian.org'

W: Failed to fetch http://http.us.debian.org/debian/dists/stable/contrib/i18n/Translation-en_US.gz  Could not resolve 'http.us.debian.org'

W: Failed to fetch http://http.us.debian.org/debian/dists/stable/non-free/i18n/Translation-en_US.gz  Could not resolve 'http.us.debian.org'

W: Failed to fetch http://security.debian.org/dists/lenny/updates/Release.gpg  Could not resolve 'security.debian.org'

W: Failed to fetch http://security.debian.org/dists/lenny/updates/main/i18n/Translation-en_US.gz  Could not resolve 'security.debian.org'

W: Failed to fetch http://security.debian.org/dists/lenny/updates/contrib/i18n/Translation-en_US.gz  Could not resolve 'security.debian.org'

W: Failed to fetch http://security.debian.org/dists/lenny/updates/non-free/i18n/Translation-en_US.gz  Could not resolve 'security.debian.org'

W: Failed to fetch http://www.backports.org/debian/dists/lenny-backports/Release.gpg  Could not resolve 'www.backports.org'

W: Failed to fetch http://www.backports.org/debian/dists/lenny-backports/main/i18n/Translation-en_US.gz  Could not resolve 'www.backports.org'

W: Failed to fetch http://www.backports.org/debian/dists/lenny-backports/contrib/i18n/Translation-en_US.gz  Could not resolve 'www.backports.org'

W: Failed to fetch http://www.backports.org/debian/dists/lenny-backports/non-free/i18n/Translation-en_US.gz  Could not resolve 'www.backports.org'

W: Some index files failed to download, they have been ignored, or old ones used instead.
W: You may want to run apt-get update to correct these problems

Это на dreamplug Linux-сервере. Настроен так, чтобы моя сеть запускалась 192.168.1.2, а мой маршрутизатор перенаправлял порт ssh на сервер 192.168.1.6.

3 ответа3

2

Кажется, проблема с вашим DNS-распознавателем.

Could not resolve 'security.debian.org'
Could not resolve 'ftp.us.debian.org'

и т. д.

0

Я должен был сделать много поисков вокруг этого.

Похоже, что у HTTP есть решение проблем, но нет FTP. Я попытался вставить FTP:// вместо HTTP:// и это сработало.

Редактировать:

/etc/apt/sources.list
deb-src ftp://ftp.uk.debian.org/debian/ wheezy main
deb ftp://ftp.uk.debian.org/debian/ wheezy main
0

Может быть полезно добавить больше деталей.

Какие проблемы вы пытались устранить?

Работало ли обновление apt-get раньше, а недавно перестало работать?

Можете ли вы пропинговать любой из сайтов, перечисленных в сообщении об ошибке?

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .