Как я могу установить пакет iftop?

Я установил Ubuntu 12.04, и он не обновляется, когда я пытаюсь. Я изменил адрес сервера для Ubuntu и DNS, но он все еще не работает. Я пытаюсь установить iotop, но это не так. Я уже изменил расположение своего сервера Ubuntu и изменил DNS на сервер Google по умолчанию. Я уже правильно установил Zental, но iotop не появляется, как я могу установить его?

Здесь журнал ошибок:

 root@ubuntu:~# sudo apt-get update
Ign http://archive.zentyal.org 3.0 InRelease                                                                                                 
Err http://archive.zentyal.org 3.0 Release.gpg                                                                                               
  Unable to connect to archive.zentyal.org:http:
Ign http://archive.zentyal.org 3.0 Release                                                                                                   
Ign http://archive.zentyal.org 3.0/extra TranslationIndex                                                                                    
Ign http://archive.zentyal.org 3.0/main TranslationIndex                                                                                     
Err http://archive.zentyal.org 3.0/main i386 Packages                                                                                        
  Unable to connect to archive.zentyal.org:http:
Err http://archive.zentyal.org 3.0/extra i386 Packages                                                                                       
  Unable to connect to archive.zentyal.org:http:
Err http://archive.zentyal.org 3.0/extra Translation-en_US                                                                                   
  Unable to connect to archive.zentyal.org:http:
Err http://archive.zentyal.org 3.0/extra Translation-en                                                                                      
  Unable to connect to archive.zentyal.org:http:
Err http://archive.zentyal.org 3.0/main Translation-en_US                                                                                    
  Unable to connect to archive.zentyal.org:http:
Err http://archive.zentyal.org 3.0/main Translation-en                                                                                       
  Unable to connect to archive.zentyal.org:http:
Ign http://ppa.launchpad.net precise InRelease                                                                                               
Err http://ppa.launchpad.net precise Release.gpg                                                                                             
  Unable to connect to ppa.launchpad.net:http:
Ign http://ppa.launchpad.net precise Release                                                                                                 
Ign http://ppa.launchpad.net precise/main TranslationIndex                                                                                   
Err http://ppa.launchpad.net precise/main Sources                                                                                            
  Unable to connect to ppa.launchpad.net:http:
Err http://ppa.launchpad.net precise/main i386 Packages                                                                                      
  Unable to connect to ppa.launchpad.net:http:
Err http://ppa.launchpad.net precise/main Translation-en_US                                                                                  
  Unable to connect to ppa.launchpad.net:http:
Err http://ppa.launchpad.net precise/main Translation-en                                                                                     
  Unable to connect to ppa.launchpad.net:http:
Ign http://archive.canonical.com precise InRelease                                                                                           
Err http://archive.canonical.com precise Release.gpg                                                                                         
  Unable to connect to archive.canonical.com:http: [IP: 91.189.92.191 80]
Ign http://archive.canonical.com precise Release                                                                                             
Ign http://archive.canonical.com precise/partner TranslationIndex                                                                            
Err http://archive.canonical.com precise/partner Sources                                                                                     
  Unable to connect to archive.canonical.com:http: [IP: 91.189.92.191 80]
Err http://archive.canonical.com precise/partner i386 Packages                                                                               
  Unable to connect to archive.canonical.com:http: [IP: 91.189.92.191 80]
Err http://archive.canonical.com precise/partner Translation-en_US                                                                           
  Unable to connect to archive.canonical.com:http: [IP: 91.189.92.191 80]
Err http://archive.canonical.com precise/partner Translation-en                                                                              
  Unable to connect to archive.canonical.com:http: [IP: 91.189.92.191 80]
Ign http://us.archive.ubuntu.com precise InRelease                                                                                           
Ign http://us.archive.ubuntu.com precise-updates InRelease                                                                                   
Ign http://us.archive.ubuntu.com precise-backports InRelease                                              
Err http://us.archive.ubuntu.com precise Release.gpg                                                      
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates Release.gpg                                              
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports Release.gpg                                            
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Ign http://us.archive.ubuntu.com precise Release                                                          
Ign http://us.archive.ubuntu.com precise-updates Release                                                  
Ign http://us.archive.ubuntu.com precise-backports Release                                                
Ign http://us.archive.ubuntu.com precise/main TranslationIndex                                            
Ign http://us.archive.ubuntu.com precise/multiverse TranslationIndex                                      
Ign http://us.archive.ubuntu.com precise/universe TranslationIndex                                        
Ign http://us.archive.ubuntu.com precise-updates/main TranslationIndex                                    
Ign http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex                              
Ign http://us.archive.ubuntu.com precise-updates/universe TranslationIndex                                
Ign http://us.archive.ubuntu.com precise-backports/main TranslationIndex                                  
Ign http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex                            
Ign http://us.archive.ubuntu.com precise-backports/universe TranslationIndex                              
Err http://us.archive.ubuntu.com precise/main Sources                                                     
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise/universe Sources                                                 
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise/multiverse Sources                                               
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise/main i386 Packages                                               
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise/universe i386 Packages                                           
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise/multiverse i386 Packages                                         
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/main Sources                                             
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/universe Sources                                         
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/multiverse Sources                                       
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/main i386 Packages                                       
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/universe i386 Packages                                   
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages                                 
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/main Sources                                           
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/universe Sources                                       
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/multiverse Sources                                     
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/main i386 Packages                                     
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/universe i386 Packages                                                                    
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages                                                                  
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise/main Translation-en_US                                                                              
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise/main Translation-en                                              
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise/multiverse Translation-en_US                                     
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise/multiverse Translation-en                                                                           
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise/universe Translation-en_US                                                                          
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise/universe Translation-en                                                                             
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/main Translation-en_US                                                                      
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/main Translation-en                                      
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/multiverse Translation-en_US                             
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/multiverse Translation-en                                
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/universe Translation-en_US                                                                  
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-updates/universe Translation-en                                                                     
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/main Translation-en_US                                                                    
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/main Translation-en                                                                       
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/multiverse Translation-en_US                           
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/multiverse Translation-en                                                                 
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/universe Translation-en_US                                                                
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com precise-backports/universe Translation-en                                                                   
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.91.13 80]
23% [Connecting to security.ubuntu.com (91.189.91.14)] [Connecting to archive.ubuntu.com (91.189.92.202)]

ping:

root@ubuntu:~# ping -c4 google.com
PING google.com (202.166.193.187) 56(84) bytes of data.
64 bytes from 187.cache.google.com (202.166.193.187): icmp_req=1 ttl=62 time=3.08 ms
64 bytes from 187.cache.google.com (202.166.193.187): icmp_req=2 ttl=62 time=4.30 ms
64 bytes from 187.cache.google.com (202.166.193.187): icmp_req=3 ttl=62 time=3.50 ms
64 bytes from 187.cache.google.com (202.166.193.187): icmp_req=4 ttl=62 time=4.34 ms
[116 ] ошибка:

root@ubuntu:~# sudo apt-get install iftop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package iftop
0
задан 16.05.2020, 11:23

1 ответ

Из вашего комментария кажется, что вы пытаетесь установить iftop, но он говорит вам, что его там нет.

iftop находится в репозитории Universe, поэтому вам необходимо включить его. Посетите этот вопрос: Как включить & quot; Вселенную & quot; хранилище? , чтобы включить его. Когда вы включите его, сначала выполните apt-get update, затем попробуйте apt-get install iftop.


Правильная команда для обновления списка пакетов:

sudo apt-get update

Затем, команда для фактического обновления вашей Ubuntu (то есть загрузки и установки более новых версий пакетов):

sudo apt-get upgrade

См. Мой ответ на этот вопрос: https://askubuntu.com/a/344363/52726 , чтобы немного больше объяснить разницу между apt-get update и [ 118].

Команда для установки пакетов (или «приложений»):

sudo apt-get install <packagename>

Где <packagename> - имя приложения. Например, skype, vlc и т. Д.

Команда, которую вы запустили, apt-get install update говорит Ubuntu установить пакет с именем update, который не существует.

7
ответ дан 16.05.2020, 11:24

Теги

Похожие вопросы