Problemas durante a atualização relacionada a repositórios de terceiros no Ubuntu 14.04

0

Esta é a imagem que estou recebendo depois de tentar instalar as novas atualizações. Eu quero ir para 14.04 a partir de 16.04, mas nada está acontecendo depois disso. Eu sou novo no Ubuntu e não faço ideia do que fazer a seguir.

Eutenteiosseguintescomandos:

sudoapt-getupdatesudoapt-getupgradesudoapt-getinstall-f

Istoéoqueeuestourecebendonofinaldepoisdeusarostrêscódigos:

sparsh@sparsh-Inspiron-3558:~$ sudo apt-get update
[sudo] password for sparsh: 
Ign http://dl.google.com stable InRelease
Ign http://oem.archive.canonical.com trusty-oem InRelease                      
Hit http://dl.google.com stable Release.gpg                                    
Ign http://archive.ubuntu.com trusty InRelease                                 
Hit http://oem.archive.canonical.com trusty-oem Release.gpg                    
Hit http://oem.archive.canonical.com trusty-oem Release                        
Hit http://dl.google.com stable Release                                        
Hit http://archive.ubuntu.com trusty-updates InRelease                         
Hit http://oem.archive.canonical.com trusty-oem/public Sources                 
Hit http://dl.google.com stable/main amd64 Packages                            
Hit http://archive.ubuntu.com trusty-backports InRelease                       
Hit http://oem.archive.canonical.com trusty-oem/public amd64 Packages          
Hit http://oem.archive.canonical.com trusty-oem/public i386 Packages           
Hit http://archive.ubuntu.com trusty Release.gpg                               
Hit http://archive.ubuntu.com trusty-updates/restricted Sources                
Hit http://archive.ubuntu.com trusty-updates/main Sources                      
Hit http://archive.ubuntu.com trusty-updates/universe Sources                  
Hit http://archive.ubuntu.com trusty-updates/multiverse Sources                
Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages         
Ign http://oem.archive.canonical.com trusty-oem/public Translation-en_IN       
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages               
Ign http://oem.archive.canonical.com trusty-oem/public Translation-en          
Ign http://dl.google.com stable/main Translation-en_IN                         
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages           
Hit http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages         
Ign http://dl.google.com stable/main Translation-en                            
Hit http://archive.ubuntu.com trusty-updates/restricted i386 Packages          
Hit http://archive.ubuntu.com trusty-updates/main i386 Packages                
Hit http://archive.ubuntu.com trusty-updates/universe i386 Packages            
Hit http://archive.ubuntu.com trusty-updates/multiverse i386 Packages          
Hit http://archive.ubuntu.com trusty-updates/main Translation-en               
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en         
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en         
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en           
Hit http://archive.ubuntu.com trusty-backports/restricted Sources              
Hit http://archive.ubuntu.com trusty-backports/universe Sources                
Hit http://archive.ubuntu.com trusty-backports/multiverse Sources              
Hit http://archive.ubuntu.com trusty-backports/main Sources                    
Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages       
Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages         
Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages       
Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages             
Hit http://archive.ubuntu.com trusty-backports/restricted i386 Packages        
Hit http://archive.ubuntu.com trusty-backports/universe i386 Packages          
Hit http://archive.ubuntu.com trusty-backports/multiverse i386 Packages        
Hit http://archive.ubuntu.com trusty-backports/main i386 Packages              
Ign http://archive.canonical.com trusty InRelease                              
Hit http://archive.canonical.com trusty Release.gpg                            
Hit http://archive.ubuntu.com trusty-backports/main Translation-en             
Hit http://archive.canonical.com trusty Release                                
Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en       
Hit http://archive.canonical.com trusty/partner Sources                        
Hit http://archive.canonical.com trusty/partner amd64 Packages                 
Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en       
Hit http://archive.canonical.com trusty/partner i386 Packages                  
Hit http://archive.canonical.com trusty/partner Translation-en                 
Hit http://archive.ubuntu.com trusty-backports/universe Translation-en         
Hit http://archive.ubuntu.com trusty Release                                   
Hit http://archive.ubuntu.com trusty/restricted Sources                        
Hit http://archive.ubuntu.com trusty/main Sources                              
Hit http://archive.ubuntu.com trusty/universe Sources                          
Hit http://archive.ubuntu.com trusty/multiverse Sources                        
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages                 
Hit http://archive.ubuntu.com trusty/main amd64 Packages                       
Hit http://archive.ubuntu.com trusty/universe amd64 Packages                   
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages                 
Hit http://archive.ubuntu.com trusty/restricted i386 Packages                  
Hit http://archive.ubuntu.com trusty/main i386 Packages                        
Hit http://security.ubuntu.com trusty-security InRelease                       
Hit http://security.ubuntu.com trusty-security/restricted Sources              
Hit http://archive.ubuntu.com trusty/universe i386 Packages                    
Hit http://security.ubuntu.com trusty-security/main Sources                    
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages                  
Hit http://security.ubuntu.com trusty-security/universe Sources                
Hit http://security.ubuntu.com trusty-security/multiverse Sources              
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages       
Hit http://archive.ubuntu.com trusty/main Translation-en                       
Hit http://security.ubuntu.com trusty-security/main amd64 Packages             
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages         
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages       
Hit http://archive.ubuntu.com trusty/multiverse Translation-en                 
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages        
Hit http://security.ubuntu.com trusty-security/main i386 Packages              
Hit http://security.ubuntu.com trusty-security/universe i386 Packages          
Hit http://archive.ubuntu.com trusty/restricted Translation-en                 
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages        
Hit http://security.ubuntu.com trusty-security/main Translation-en             
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en       
Hit http://security.ubuntu.com trusty-security/restricted Translation-en       
Hit http://security.ubuntu.com trusty-security/universe Translation-en         
Hit http://archive.ubuntu.com trusty/universe Translation-en                   
Ign http://archive.ubuntu.com trusty/main Translation-en_IN                    
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_IN              
Ign http://archive.ubuntu.com trusty/restricted Translation-en_IN              
Ign http://archive.ubuntu.com trusty/universe Translation-en_IN                
Ign http://dell.archive.canonical.com trusty-dell InRelease                    
Hit http://dell.archive.canonical.com trusty-dell Release.gpg                  
Hit http://dell.archive.canonical.com trusty-dell Release                      
Hit http://dell.archive.canonical.com trusty-dell/public Sources               
Hit http://dell.archive.canonical.com trusty-dell/public amd64 Packages        
Hit http://dell.archive.canonical.com trusty-dell/public i386 Packages         
Ign http://dell.archive.canonical.com trusty-dell/public Translation-en_IN     
Ign http://dell.archive.canonical.com trusty-dell/public Translation-en        
Reading package lists... Done                                                  
sparsh@sparsh-Inspiron-3558:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 initramfs-tools : Depends: initramfs-tools-bin (>= 0.103ubuntu4.3) but 0.103ubuntu4 is installed
E: Unmet dependencies. Try using -f.
sparsh@sparsh-Inspiron-3558:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  initramfs-tools-bin
The following packages will be upgraded:
  initramfs-tools-bin
1 upgraded, 0 newly installed, 0 to remove and 264 not upgraded.
6 not fully installed or removed.
Need to get 0 B/9,172 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Invalid archive signature
E: Internal error, could not locate member control.tar.{gzbz2xzlzma}
E: Prior errors apply to /var/cache/apt/archives/initramfs-tools-bin_0.103ubuntu4.3_amd64.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: '/var/cache/apt/archives/initramfs-tools-bin_0.103ubuntu4.3_amd64.deb' is not a debian format archive
dpkg: error processing archive /var/cache/apt/archives/initramfs-tools-bin_0.103ubuntu4.3_amd64.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/initramfs-tools-bin_0.103ubuntu4.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
sparsh@sparsh-Inspiron-3558:~$ 

Enquanto eu tentei o seguinte comando

sudo apt-get install synaptic

eu tenho o seguinte resultado sobre as dependências não satisfeitas e initramfs

sparsh@sparsh-Inspiron-3558:~$ sudo apt-get install synaptic
[sudo] password for sparsh: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 initramfs-tools : Depends: initramfs-tools-bin (>= 0.103ubuntu4.3) but 0.103ubuntu4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
sparsh@sparsh-Inspiron-3558:~$ sudo apt-get -f install synaptic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 initramfs-tools : Depends: initramfs-tools-bin (>= 0.103ubuntu4.3) but 0.103ubuntu4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
sparsh@sparsh-Inspiron-3558:~$ 

eu não sei como resolver esses problemas initramfs

Depois de aplicar os comandos, recebo algum tipo de erro no final

    insserv: warning: script 'K02delllctservice' missing LSB tags and overrides
insserv: Service mountdevsubfs has to be enabled to start service hwclock
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package util-linux (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)

COMO RESOLVO ESTE ERRO?

    
por Sparsh Kansal 10.07.2016 / 20:59

1 resposta

1

AVISO: faça um backup de todos os seus dados antes de continuar.

O problema é, quase indubitavelmente, que você está usando repositórios de terceiros ao tentar atualizar. Cada distro linux parece quebrar ao fazer isso. Portanto, a solução é desabilitar esses repositórios, remover todo o software, atualizar e, em seguida, adicionar novamente todos os repositórios e softwares desejados. Dependendo de como as coisas estão quebradas, você pode precisar fazer backup de todos os seus dados e fazer uma nova instalação. Já lidei com isso muitas vezes e geralmente se resume a este último. O seguinte é um conselho para tentar consertar as coisas e atualizar, em vez de fazer uma instalação limpa. YMMV.

Primeiramente, vou direcioná-lo para ler essas informações, para que você entenda melhor o problema. Por favor, sinta-se livre para fazer o que eles dizem, antes de tentar o resto do que está neste post. link link

Agora, vamos ao que interessa.

Desative todos os repositórios personalizados. Em um terminal, digite isto:

sudo mv /etc/apt/sources.list.d /etc/apt/sources.list.d.old
sudo mkdir /etc/apt/sources.list.d

Também pode haver repositórios personalizados em /etc/apt/sources.list. Então, vamos fazer o backup do antigo e criar um novo.

sudo mv /etc/apt/sources.list /etc/apt/sources.list.old
sudo gedit /etc/apt/sources.list

Agora você deve ter um documento em branco na tela. O que você coloca aí? Para responder a essa pergunta, vá para o link e selecione o seu país e a versão do Ubuntu. Em seguida, selecione o seguinte:

Observação: os repositórios de origem são opcionais, portanto, se você não planeja compilar ou programar nada, pode ignorá-los.

Ramos do Ubuntu: todos eles.

Atualizações do Ubuntu: segurança e atualizações somente.

Ubuntu Partner Repos: estes fornecem software proprietário que pode ser ativado ou desativado quando você instala o Ubuntu; habilitá-los somente se você quiser.

Ubuntu Extras Repos: nenhum desses.

Terceiros Repos: Não, não, não! Não habilite QUALQUER destas.

Vá até o final da página e clique em "Gerar lista". Copie e cole o material na primeira pequena janela no documento de texto em branco e salve-o. Deve ser algo como isto, com fontes e parceiros repos incluídos:

#------------------------------------------------------------------------------#
#                            OFFICIAL UBUNTU REPOS                             #
#------------------------------------------------------------------------------#


###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

Limpe o cache local:

sudo apt-get clean

Atualize o cache local:

sudo apt-get update

Estamos prestes a fazer o downgrade e remover as coisas que não deveriam estar lá. Isso pode quebrar seu sistema ou exigir algum reparo verdadeiramente profundo. Se você ainda não salvou tudo, faça agora.

Instale o aptitude e remova pacotes locais / obsoletos (não mais no repositório)

sudo apt-get install aptitude
sudo aptitude remove ?obsolete

Corrija todas as dependências que estão faltando:

sudo apt-get install -f

Verifique se você ainda tem uma instalação do Ubuntu em funcionamento:

sudo apt-get install ubuntu-desktop

Instale e use o deborphan para remover pacotes órfãos.

sudo apt-get install deborphan
sudo deborphan | xargs sudo apt-get remove

Novamente, corrija todas as dependências que estão faltando:

sudo apt-get install -f

Novamente, verifique se você ainda tem uma instalação do Ubuntu em funcionamento:

sudo apt-get install ubuntu-desktop

Livre-se de qualquer coisa que esteja lá sem motivo:

sudo apt-get autoremove

Agora, tente atualizar novamente. Encontre e adicione novamente os repositórios extras e seu software, APENAS se for absolutamente necessário.

Boa sorte!

    
por DaneM 10.07.2016 / 22:44