Como reparar meu apt-get

0

Estou usando o Ubuntu 14.04 com a pilha HWE (kernel 3.16) em um Dell Inspiron 15-5547, o AMD Radeon HD R7 M265.

Eu tenho tentado instalar os drivers proprietários do fglrx para poder alternar entre as minhas placas gráficas. Depois de alguns testes eu encontrei este este bug. Sem, realmente pensando nisso, eu segui a sugestão do comentário 24 e corri

sudo apt-get install xserver-xorg-core

A instalação não foi concluída, mas retornou em

Extracting templates from packages: 100%
(Reading database ... 773072 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_10.1.3-0ubuntu0.4_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (10.1.3-0ubuntu0.4) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_10.1.3-0ubuntu0.4_amd64.deb (--unpack):
 trying to overwrite shared '/etc/drirc', which is different from other instances of package libgl1-mesa-dri:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libgl1-mesa-dri_10.1.3-0ubuntu0.4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Agora, quero reverter essa alteração. Eu tentei sudo apt-get remove xserver-xorg-core , sudo apt-get -f install , sudo apt-get autoremove , sudo apt-get clean , sudo apt-get autoclean mas o que obtenho é:

bruni@bruni-Inspiron-5547:~$ sudo apt-get autoremove
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:
 libegl1-mesa-drivers : Depends: libgl1-mesa-dri
 libgbm1 : Depends: libgl1-mesa-dri
 libgl1-mesa-dri-lts-quantal : Depends: libgl1-mesa-dri
 qtdeclarative5-qtquick2-plugin : Depends: libgl1-mesa-dri
 xorg : Depends: xserver-xorg (>= 1:7.7+1ubuntu8.1) orN
                 xserver-xorg-renamed
        Depends: libgl1-mesa-dri
 xserver-xorg-lts-quantal : Depends: xserver-xorg
 xserver-xorg-video-all-lts-utopic : Depends: xserver-xorg-video-ati-lts-topic but it is not installed
                                     Depends: xserver-xorg-video-cirrus-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-fbdev-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-intel-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-mga-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-modesetting-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-neomagic-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-nouveau-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-openchrome-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-savage-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-siliconmotion-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-sisusb-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-tdfx-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-trident-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-vesa-lts-utopic but it is not installed
                                     Depends: xserver-xorg-video-vmware-lts-utopic but it is not installed
E: Unmet dependencies. Try using -f.

Alguma sugestão, como limpar essa bagunça?

sudo apt update ou sudo apt-get update funcionam normalmente.

Ign http://gr.archive.ubuntu.com trusty InRelease
Ign http://gr.archive.ubuntu.com trusty-security InRelease                     
Hit http://gr.archive.ubuntu.com trusty Release.gpg                            
Hit http://gr.archive.ubuntu.com trusty-security Release.gpg                   
Hit http://gr.archive.ubuntu.com trusty Release                                
Hit http://repo.steampowered.com precise InRelease                             
Hit http://gr.archive.ubuntu.com trusty-security Release                       
Hit http://gr.archive.ubuntu.com trusty/main Sources                           
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://gr.archive.ubuntu.com trusty/restricted Sources                     
Hit http://gr.archive.ubuntu.com trusty/universe Sources                       
Hit http://gr.archive.ubuntu.com trusty/multiverse Sources                     
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://gr.archive.ubuntu.com trusty/main amd64 Packages                    
Hit http://gr.archive.ubuntu.com trusty/restricted amd64 Packages              
Hit http://repository.spotify.com stable InRelease                             
Hit http://gr.archive.ubuntu.com trusty/universe amd64 Packages                
Hit http://gr.archive.ubuntu.com trusty/multiverse amd64 Packages              
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://gr.archive.ubuntu.com trusty/main i386 Packages                     
Hit http://gr.archive.ubuntu.com trusty/restricted i386 Packages               
Hit http://gr.archive.ubuntu.com trusty/universe i386 Packages                 
Hit http://repository.spotify.com stable/non-free amd64 Packages               
Hit http://gr.archive.ubuntu.com trusty/multiverse i386 Packages               
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://repository.spotify.com stable/non-free i386 Packages                
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://gr.archive.ubuntu.com trusty/main Translation-en                    
Hit http://gr.archive.ubuntu.com trusty/multiverse Translation-en              
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://gr.archive.ubuntu.com trusty/restricted Translation-en              
Hit http://gr.archive.ubuntu.com trusty/universe Translation-en                
Hit http://gr.archive.ubuntu.com trusty-security/main Sources                  
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://gr.archive.ubuntu.com trusty-security/restricted Sources            
Hit http://gr.archive.ubuntu.com trusty-security/universe Sources              
Hit http://gr.archive.ubuntu.com trusty-security/multiverse Sources            
Hit http://gr.archive.ubuntu.com trusty-security/main amd64 Packages           
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://gr.archive.ubuntu.com trusty-security/restricted amd64 Packages     
Hit http://gr.archive.ubuntu.com trusty-security/universe amd64 Packages       
Hit http://gr.archive.ubuntu.com trusty-security/multiverse amd64 Packages     
Hit http://gr.archive.ubuntu.com trusty-security/main i386 Packages            
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://gr.archive.ubuntu.com trusty-security/restricted i386 Packages      
Hit http://gr.archive.ubuntu.com trusty-security/universe i386 Packages        
Hit http://repo.steampowered.com precise/steam Sources                         
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://gr.archive.ubuntu.com trusty-security/multiverse i386 Packages      
Hit http://gr.archive.ubuntu.com trusty-security/main Translation-en           
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://gr.archive.ubuntu.com trusty-security/multiverse Translation-en     
Hit http://gr.archive.ubuntu.com trusty-security/restricted Translation-en     
Hit http://gr.archive.ubuntu.com trusty-security/universe Translation-en       
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Ign http://gr.archive.ubuntu.com trusty/main Translation-en_US                 
Ign http://gr.archive.ubuntu.com trusty/multiverse Translation-en_US           
Ign http://gr.archive.ubuntu.com trusty/restricted Translation-en_US           
Ign http://repository.spotify.com stable/non-free Translation-en_US            
Ign http://gr.archive.ubuntu.com trusty/universe Translation-en_US             
Hit http://repo.steampowered.com precise/steam amd64 Packages                  
Ign http://repository.spotify.com stable/non-free Translation-en               
Hit http://ppa.launchpad.net trusty/main amd64 Packages            
Hit http://ppa.launchpad.net trusty/main i386 Packages             
Hit http://ppa.launchpad.net trusty/main Translation-en            
Hit http://ppa.launchpad.net trusty/main amd64 Packages            
Hit http://ppa.launchpad.net trusty/main i386 Packages             
Hit http://repo.steampowered.com precise/steam i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Ign http://ppa.launchpad.net trusty/main Translation-en_US               
Ign http://ppa.launchpad.net trusty/main Translation-en                 
Ign http://repo.steampowered.com precise/steam Translation-en_US               
Ign http://repo.steampowered.com precise/steam Translation-en                  
Reading package lists... Done  

ls /etc/apt/sources.list.d No entanto, note que estes são na sua maioria desativados e não devem ser o problema.

ian-berke-ppa-drawers-trusty.list       libreoffice-ppa-trusty.list  spotify.list.save  ultradvorka-ppa-trusty.list       vikoadi-ppa-trusty.list
ian-berke-ppa-drawers-trusty.list.save  spotify.list                 steam.list         ultradvorka-ppa-trusty.list.save  vikoadi-ppa-trusty.list.save
    
por Bruni 22.05.2015 / 13:55

1 resposta

2

É uma bagunça, como você diz, isso deve ser devido a problemas em seu repositório & amp; Fontes de PPA

Eu sugiro limpar a bagunça primeiro: começar com

sudo apt-get install gksu
sudo apt-get install gedit

Então gksudo gedit /etc/apt/sources.list

Lá, no arquivo que é aberto, você substitui tudo com as sources.list apropriadas geradas lá: link (marque todos, MAS NÃO FAZER verifique "proposto".)

você fecha o arquivo ao salvá-lo. Então

sudo apt-get autoclean
sudo apt-get clean

Verifique: ls /etc/apt/sources.list.d

Também se livre do precisas dell PPA.

Em seguida, tente

sudo apt update
sudo apt-get install -f
sudo apt full-upgrade

Se ainda estiver bloqueado, talvez seja necessário se livrar do pacote de bloqueio primeiro:

sudo dpkg -r --force-remove-reinstreq 'TheBlockingPackage'
    
por nam1962 22.05.2015 / 14:50