Tentando atualizar para corrigir o CVE 2016-2017 e obtendo erros de dependência

0

Estou tentando atualizar e corrigir o CVE 2016-2017 e, ao fazer isso, estou recebendo um erro sobre dependências. Eu tentei resolvê-los, mas sou um pouco novato e quando tento corrigir o problema de dependência, recebo dependências adicionais. Estou tentando fazer isso com base em vários guias que li.

Se eu correr

sudo apt-get install --only-upgrade libssl1.0.0 openssl

Eu obtenho

Reading package lists... Done
Building dependency tree       
Reading state information... Done
openssl is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 grub-pc : Depends: grub2-common (= 1.99-21ubuntu3.18)
           Depends: grub-pc-bin (= 1.99-21ubuntu3.18)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Espero que alguém possa ajudar com o que preciso para resolver isso.

Obrigado!

UPDATE 1 - Eu corri o apt-get -f install e recebo o seguinte

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libjson-c2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  grub-pc
The following packages will be upgraded:
  grub-pc
1 upgraded, 0 newly installed, 0 to remove and 100 not upgraded.
1 not fully installed or removed.
Need to get 0 B/140 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of grub-pc:
 grub-pc depends on grub2-common (= 1.99-21ubuntu3.18); however:
  Version of grub2-common on system is 1.99-21ubuntu3.20.
 grub-pc depends on grub-pc-bin (= 1.99-21ubuntu3.18); however:
  Version of grub-pc-bin on system is 1.99-21ubuntu3.20.
dpkg: error processing grub-pc (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)

UPDATE 2 Eu também corri sudo apt-get update

Hit http://mirror.rackspace.com precise Release.gpg
Hit http://mirror.rackspace.com precise-updates Release.gpg                                                                                               
Hit http://mirror.rackspace.com precise-backports Release.gpg                                                                                             
Hit http://mirror.rackspace.com precise-security Release.gpg                                                                                              
Hit http://mirror.rackspace.com precise Release                                                                                                           
Hit http://mirror.rackspace.com precise-updates Release                                                                                                   
Hit http://mirror.rackspace.com precise-backports Release                                                                                                 
Hit http://mirror.rackspace.com precise-security Release                                                                                                  
Hit http://mirror.rackspace.com precise/main Sources                                                                                                      
Hit http://mirror.rackspace.com precise/restricted Sources                                                                                                
Hit http://mirror.rackspace.com precise/universe Sources                                                                                                  
Get:1 http://stable.packages.cloudmonitoring.rackspace.com cloudmonitoring Release.gpg [490 B]                                                            
Hit http://mirror.rackspace.com precise/multiverse Sources                                                                                                
Hit http://mirror.rackspace.com precise/main amd64 Packages                                                                                               
Hit http://mirror.rackspace.com precise/restricted amd64 Packages                                                                                         
Hit http://mirror.rackspace.com precise/universe amd64 Packages                                                                                           
Hit http://mirror.rackspace.com precise/multiverse amd64 Packages                                                                                         
Hit http://mirror.rackspace.com precise/main i386 Packages                                                                                                
Hit http://mirror.rackspace.com precise/restricted i386 Packages                                                                                          
Hit http://mirror.rackspace.com precise/universe i386 Packages                                                                                            
Hit http://mirror.rackspace.com precise/multiverse i386 Packages                                                                                          
Hit http://mirror.rackspace.com precise/main TranslationIndex                                                                                             
Hit http://mirror.rackspace.com precise/multiverse TranslationIndex                                                                                       
Hit http://stable.packages.cloudmonitoring.rackspace.com cloudmonitoring Release                                                                          
Hit http://mirror.rackspace.com precise/restricted TranslationIndex                                                                                       
Ign http://stable.packages.cloudmonitoring.rackspace.com cloudmonitoring Release                                                                          
Hit http://mirror.rackspace.com precise/universe TranslationIndex                                                                                         
Hit http://mirror.rackspace.com precise-updates/main Sources                                                                                              
Hit http://mirror.rackspace.com precise-updates/restricted Sources                                                                                        
Hit http://mirror.rackspace.com precise-updates/universe Sources                                                                                          
Hit http://mirror.rackspace.com precise-updates/multiverse Sources                                                                                        
Hit http://mirror.rackspace.com precise-updates/main amd64 Packages                                                                                       
Hit http://mirror.rackspace.com precise-updates/restricted amd64 Packages                                                                                 
Hit http://mirror.rackspace.com precise-updates/universe amd64 Packages                                                                                   
Hit http://mirror.rackspace.com precise-updates/multiverse amd64 Packages                                                                                 
Hit http://mirror.rackspace.com precise-updates/main i386 Packages                                                                                        
Hit http://mirror.rackspace.com precise-updates/restricted i386 Packages                                                                                  
Hit http://mirror.rackspace.com precise-updates/universe i386 Packages                                                                                    
Hit http://mirror.rackspace.com precise-updates/multiverse i386 Packages                                                                                  
Hit http://mirror.rackspace.com precise-updates/main TranslationIndex                                                                                     
Hit http://mirror.rackspace.com precise-updates/multiverse TranslationIndex                                                                               
Hit http://archive.canonical.com precise Release.gpg                                                                                                      
Ign http://ppa.launchpad.net precise Release.gpg                                                                                                          
Get:2 http://security.ubuntu.com precise-security Release.gpg [198 B]                                                               
Hit http://mirror.rackspace.com precise-updates/restricted TranslationIndex                                                         
Hit http://archive.ubuntu.com precise Release.gpg                                                                                                         
Hit http://mirror.rackspace.com precise-updates/universe TranslationIndex                                                                                 
Hit http://mirror.rackspace.com precise-backports/main Sources                                                                                            
Hit http://mirror.rackspace.com precise-backports/restricted Sources                                                                                      
Hit http://mirror.rackspace.com precise-backports/universe Sources                                                                                        
Hit http://mirror.rackspace.com precise-backports/multiverse Sources                                                                                      
Hit http://mirror.rackspace.com precise-backports/main amd64 Packages                                                                                     
Ign http://stable.packages.cloudmonitoring.rackspace.com cloudmonitoring/main amd64 Packages/DiffIndex                                                    
Hit http://mirror.rackspace.com precise-backports/restricted amd64 Packages                                                                               
Hit http://mirror.rackspace.com precise-backports/universe amd64 Packages                                                                                 
Hit http://mirror.rackspace.com precise-backports/multiverse amd64 Packages                                                                               
Hit http://mirror.rackspace.com precise-backports/main i386 Packages                                                                                      
Hit http://mirror.rackspace.com precise-backports/restricted i386 Packages                                                                                
Hit http://mirror.rackspace.com precise-backports/universe i386 Packages                                                                                  
Hit http://mirror.rackspace.com precise-backports/multiverse i386 Packages                                                                                
Hit http://mirror.rackspace.com precise-backports/main TranslationIndex                                                                                   
Ign http://stable.packages.cloudmonitoring.rackspace.com cloudmonitoring/main i386 Packages/DiffIndex                                                     
Hit http://mirror.rackspace.com precise-backports/multiverse TranslationIndex                                                                             
Hit http://mirror.rackspace.com precise-backports/restricted TranslationIndex                                                                             
Hit http://mirror.rackspace.com precise-backports/universe TranslationIndex                                                                               
Hit http://mirror.rackspace.com precise-security/main Sources                                                                                             
Hit http://archive.canonical.com precise Release                                                                                                          
Hit http://mirror.rackspace.com precise-security/restricted Sources                                                                                       
Ign http://ppa.launchpad.net precise Release                                                                                                              
Get:3 http://security.ubuntu.com precise-security Release [55.5 kB]                                                                                       
Get:4 http://archive.ubuntu.com precise-updates Release.gpg [198 B]                                                                                       
Hit http://mirror.rackspace.com precise-security/universe Sources                                                                                         
Hit http://mirror.rackspace.com precise-security/multiverse Sources                                                                                       
Hit http://mirror.rackspace.com precise-security/main amd64 Packages                                                                                      
Hit http://mirror.rackspace.com precise-security/restricted amd64 Packages                                                                                
Ign http://stable.packages.cloudmonitoring.rackspace.com cloudmonitoring/main TranslationIndex                                                            
Hit http://mirror.rackspace.com precise-security/universe amd64 Packages                                                                                  
Hit http://mirror.rackspace.com precise-security/multiverse amd64 Packages                                                                                
Hit http://mirror.rackspace.com precise-security/main i386 Packages                                                                                       
Hit http://mirror.rackspace.com precise-security/restricted i386 Packages                                                                                 
Hit http://mirror.rackspace.com precise-security/universe i386 Packages                                                                                   
Hit http://mirror.rackspace.com precise-security/multiverse i386 Packages                                                                                 
Hit http://mirror.rackspace.com precise-security/main TranslationIndex                                                                                    
Hit http://mirror.rackspace.com precise-security/multiverse TranslationIndex                                                                              
Hit http://mirror.rackspace.com precise-security/restricted TranslationIndex                                                                              
Hit http://mirror.rackspace.com precise-security/universe TranslationIndex                                                                                
Hit http://mirror.rackspace.com precise/main Translation-en                                                                                               
Hit http://mirror.rackspace.com precise/multiverse Translation-en                                                                                         
Hit http://mirror.rackspace.com precise/restricted Translation-en                                                                                         
Hit http://mirror.rackspace.com precise/universe Translation-en                                                                                           
Hit http://mirror.rackspace.com precise-updates/main Translation-en                                                                                       
Hit http://mirror.rackspace.com precise-updates/multiverse Translation-en                                                                                 
Hit http://mirror.rackspace.com precise-updates/restricted Translation-en                                                                                 
Hit http://mirror.rackspace.com precise-updates/universe Translation-en                                                                                   
Hit http://mirror.rackspace.com precise-backports/main Translation-en                                                                                     
Hit http://archive.canonical.com precise/partner amd64 Packages                                                                                           
Hit http://archive.ubuntu.com precise Release                                                                                                             
Hit http://mirror.rackspace.com precise-backports/multiverse Translation-en                                                                               
Hit http://mirror.rackspace.com precise-backports/restricted Translation-en                                                                               
Hit http://mirror.rackspace.com precise-backports/universe Translation-en                                                                                 
Hit http://mirror.rackspace.com precise-security/main Translation-en                                                                                      
Hit http://mirror.rackspace.com precise-security/multiverse Translation-en                                                                                
Hit http://mirror.rackspace.com precise-security/restricted Translation-en                                                                                
Hit http://mirror.rackspace.com precise-security/universe Translation-en                                                                                  
Hit http://archive.canonical.com precise/partner i386 Packages                                                                                            
Get:5 http://archive.ubuntu.com precise-updates Release [55.4 kB]                                                                      
Hit http://archive.canonical.com precise/partner TranslationIndex                                                      
Get:6 http://security.ubuntu.com precise-security/multiverse amd64 Packages [3,363 B]                                  
Ign http://ppa.launchpad.net precise/main TranslationIndex                                                                                                
Hit http://archive.canonical.com precise/partner Translation-en                                                                               
Get:7 http://security.ubuntu.com precise-security/multiverse i386 Packages [3,542 B]                                                          
Hit http://archive.ubuntu.com precise/multiverse amd64 Packages                                                                                           
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex                                     
Hit http://archive.ubuntu.com precise/multiverse i386 Packages                                                  
Hit http://security.ubuntu.com precise-security/multiverse Translation-en                                       
Hit http://stable.packages.cloudmonitoring.rackspace.com cloudmonitoring/main amd64 Packages                    
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex                         
Hit http://stable.packages.cloudmonitoring.rackspace.com cloudmonitoring/main i386 Packages
Get:8 http://archive.ubuntu.com precise-updates/multiverse amd64 Packages [17.1 kB]      
Ign http://stable.packages.cloudmonitoring.rackspace.com cloudmonitoring/main Translation-en_US                 
Ign http://stable.packages.cloudmonitoring.rackspace.com cloudmonitoring/main Translation-en
Get:9 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [17.3 kB]
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex                 
Hit http://archive.ubuntu.com precise/multiverse Translation-en    
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Err http://ppa.launchpad.net precise/main Sources
  404  Not Found
Err http://ppa.launchpad.net precise/main amd64 Packages
  404  Not Found
Err http://ppa.launchpad.net precise/main i386 Packages
  404  Not Found
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Fetched 153 kB in 4s (36.0 kB/s)              
W: GPG error: http://stable.packages.cloudmonitoring.rackspace.com cloudmonitoring Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A086F077D05AB914
W: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/dists/precise/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ondrej/php5/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

ATUALIZAÇÃO FINAL

Com a ajuda do @ db429, consegui chegar à raiz do meu problema. Eu tinha alguns PPAs ruins que precisava remover. Uma vez feito isso, eu tive que remover o grub-pc, depois atualizar e reinstalar o grub.

Nesse momento, consegui fazer tudo funcionar conforme o esperado.

    
por Kirk 29.11.2016 / 16:57

1 resposta

1

Ok, isso é um canteiro de obras que você herdou.

Até agora, temos 4 questões a serem resolvidas: as dependências do grub não atendidas, um ppa inexistente em sua sources.list, a chave gpg ausente para o repositório rackspace e 100 atualizações em espera.

  • Primeiro de. O 404 de executar sudo apt-get update é devido a esse repositório não existir mais. Mais sobre repositórios, você pode encontrar aqui . Portanto, teremos que comentar nas listas de fontes. Abra o arquivo correspondente sudo nano /etc/apt/sources.list - você também pode usar o vim. Encontre as três linhas que começam com http://ppa.launchpad.net/ondrej/php5/... e adicione # na frente dele - salve o arquivo. Talvez seja um arquivo em /etc/apt/sources.list.d/ - não tenho certeza sobre isso, há 4 anos eu usei 12.04 - o procedimento permanece o mesmo.
  • Agora vamos adicionar o ppa atual pelo mesmo programador com sudo add-apt-repository ppa:ondrej/php (se o seu sistema estiver executando o php5.4 use sudo add-apt-repository ppa:ondrej/php5-oldstable - consulte aqui ). Isto irá atualizar os repositórios depois de adicionar a chave gpg e o repositório - se aparecer um W: GPG error: , vamos ignorá-lo por um momento.
  • Antes de podermos atualizar os 100 outros, primeiro temos que corrigir o problema do grub - portanto iremos desinstalar o sudo apt-get remove grub-common e reinstalá-lo sudo apt-get install grub-pc - a diferença nos pacotes é devido às dependências; Todos os pacotes do grub dependem do grub-common, enquanto o grub-pc os traz de volta.
  • Se até agora não encontramos novos problemas, vamos atualizar todos esses 100 pacotes. Vamos trabalhar com sudo apt-get dist-upgrade , usamos dist-upgrade em vez de upgrade, porque é mais inteligente;) - veja aqui . Pode ser necessário fazer isso várias vezes.

  • Para a chave pgp do repositório link , talvez seja melhor entrar em contato com eles, como eu fiz não encontrar sua chave em qualquer lugar nos servidores de chaves padrão. o procedimento para fazer seu sistema reconhecer a chave pode ser encontrado em aqui - até que um sudo apt-get upgrade --allow-unauthenticated possa resolver este último bastião.

por db429 29.11.2016 / 19:06