Como posso instalar o pacote iftop?

0

Eu instalei o Ubuntu 12.04 e ele não está atualizando quando eu tento. Eu mudei o endereço do servidor para Ubuntu e DNS, mas ainda não está funcionando. Estou tentando instalar o iotop, mas isso não acontece. Eu já mudei a minha localização do servidor Ubuntu e mudei o DNS para o servidor padrão do Google. Eu já instalei o Zental corretamente, mas o iotop não aparece, como posso instalá-lo?

Aqui, o log de erros:

 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

erro:

root@ubuntu:~# sudo apt-get install iftop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package iftop
    
por sumit 01.09.2013 / 06:05

1 resposta

7

Do seu comentário, parece que você está tentando instalar o iftop , mas está dizendo que não está lá.

iftop está no repositório Universe, então você precisa ativá-lo. Visite esta pergunta: Como eu habilito o repositório "Universe"? para habilitá-lo. Ao ativá-lo, primeiro faça apt-get update e, em seguida, tente apt-get install iftop .

O comando correto para atualizar sua lista de pacotes é:

sudo apt-get update

Em seguida, o comando para atualizar seu Ubuntu (ou seja, baixar e instalar as versões mais recentes dos pacotes) é:

sudo apt-get upgrade
% bl0ck_qu0te%

O comando para instalar pacotes (ou "aplicativos") é:

sudo apt-get install <packagename>

Onde <packagename> é o nome do aplicativo. Por exemplo, skype , vlc e assim por diante.

O comando que você executou, apt-get install update está dizendo ao Ubuntu para instalar um pacote chamado update , que não existe.

    
por Alaa Ali 02.09.2013 / 19:14