Dependências não atendidas ao tentar construir o navegador do cromo no Ubuntu 14.04

1

Estou tentando instalar as dependências necessárias para criar o Chromium no Ubuntu 14.04 e estou enfrentando a seguinte mensagem:

The following packages have unmet dependencies:
 g++-4.8-multilib : Depends: gcc-4.8-multilib (= 4.8.2-19ubuntu1) but it is not going to be installed
                    Depends: lib32stdc++-4.8-dev (= 4.8.2-19ubuntu1) but it is not going to be installed
                    Depends: libx32stdc++-4.8-dev (= 4.8.2-19ubuntu1) but it is not going to be installed
 lib32gcc1 : Depends: gcc-4.9-base (= 4.9-20140406-0ubuntu1) but 4.9.1-0ubuntu1 is to be installed
 libbluetooth-dev : Depends: libbluetooth3 (= 4.101-0ubuntu13) but 4.101-0ubuntu13.1 is to be installed
 libcairo2-dbg : Depends: libcairo2 (= 1.13.0~20140204-0ubuntu1) but 1.13.0~20140204-0ubuntu1.1 is to be installed
 libcairo2-dev : Depends: libcairo2 (= 1.13.0~20140204-0ubuntu1) but 1.13.0~20140204-0ubuntu1.1 is to be installed
                 Depends: libcairo-gobject2 (= 1.13.0~20140204-0ubuntu1) but 1.13.0~20140204-0ubuntu1.1 is to be installed
                 Depends: libfontconfig1-dev (>= 2.2.95) but it is not going to be installed
 libfontconfig1-dbg : Depends: libfontconfig1 (= 2.11.0-0ubuntu4) but 2.11.0-0ubuntu4.1 is to be installed
 libgbm-dev : Depends: libgbm1 (= 10.1.0-4ubuntu5)
 libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 10.1.0-4ubuntu5)
                        Recommends: libgl1-mesa-dri:i386 (>= 7.2)
                        Conflicts: libgl1
 libgl1-mesa-glx-lts-utopic : Conflicts: libgl1:i386
                              Conflicts: libgl1-mesa-glx:i386
 libglib2.0-0-dbg : Depends: libglib2.0-0 (= 2.40.0-2) but 2.40.2-0ubuntu1 is to be installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.40.0-2) but 2.40.2-0ubuntu1 is to be installed
                  Depends: libglib2.0-bin (= 2.40.0-2)
 libgtk2.0-dev : Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
 libpango1.0-0-dbg : Depends: libpango-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed or
                              libpangocairo-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed or
                              libpangoft2-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed or
                              libpangoxft-1.0-0 (= 1.36.3-1ubuntu1) but 1.36.3-1ubuntu1.1 is to be installed
 libpulse-dev : Depends: libpulse0 (= 1:4.0-0ubuntu11) but 1:4.0-0ubuntu11.1 is to be installed
                Depends: libpulse-mainloop-glib0 (= 1:4.0-0ubuntu11) but 1:4.0-0ubuntu11.1 is to be installed
 libstdc++6-4.6-dbg : Depends: libgcc1-dbg but it is not going to be installed
 libudev-dev : Depends: libudev1 (= 204-5ubuntu20) but 204-5ubuntu20.11 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

You will have to install the above packages yourself.

Ele diz que tenho que instalar esses pacotes sozinho, mas como fazer isso?

Quando estou tentando sudo apt-get install <some_package> , ele me diz (exemplo para gcc-4.8-multilib):

gcc-4.8-multilib : Depends: lib32gcc-4.8-dev (= 4.8.2-19ubuntu1) but it is not going to be installed
                    Depends: libx32gcc-4.8-dev (= 4.8.2-19ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Alguém pode me ajudar a resolver todos esses pacotes de instalação?

UPDATE 1:

para sudo apt-get install lib32gcc-4.8-dev , obtenho:

lib32gcc-4.8-dev : Depends: lib32gcc1 (>= 1:4.8.2-19ubuntu1) but it is not going to be installed
                    Depends: libx32gcc1 (>= 1:4.8.2-19ubuntu1) but it is not going to be installed
                    Depends: lib32asan0 (>= 4.8.2-19ubuntu1) but it is not going to be installed
                    Depends: libx32asan0 (>= 4.8.2-19ubuntu1) but it is not going to be installed

e para apt-cache policy lib32gcc-4.8-dev eu recebo:

lib32gcc-4.8-dev:
  Installed: (none)
  Candidate: 4.8.2-19ubuntu1
  Version table:
     4.8.2-19ubuntu1 0
        500 http://ro.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

UPDATE 2:

para sudo apt-get install lib32gcc1 , obtenho:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 lib32gcc1 : Depends: gcc-4.9-base (= 4.9-20140406-0ubuntu1) but 4.9.1-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

e para apt-cache policy lib32gcc1 eu recebo:

 Installed: (none)
  Candidate: 1:4.9-20140406-0ubuntu1
  Version table:
     1:4.9-20140406-0ubuntu1 0
        500 http://ro.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
     1:4.6.3-1ubuntu5 0
        500 mirror://mirrors.ubuntu.com/mirrors.txt/ precise/main amd64 Packages

Para apt-cache policy lib32gcc-4.8-dev lib32gcc1 libx32gcc1 lib32asan0 libx32asan0 , obtenho:

lib32gcc-4.8-dev:
  Installed: (none)
  Candidate: 4.8.2-19ubuntu1
  Version table:
     4.8.2-19ubuntu1 0
        500 http://ro.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
lib32gcc1:
  Installed: (none)
  Candidate: 1:4.9-20140406-0ubuntu1
  Version table:
     1:4.9-20140406-0ubuntu1 0
        500 http://ro.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
     1:4.6.3-1ubuntu5 0
        500 mirror://mirrors.ubuntu.com/mirrors.txt/ precise/main amd64 Packages
libx32gcc1:
  Installed: (none)
  Candidate: 1:4.9-20140406-0ubuntu1
  Version table:
     1:4.9-20140406-0ubuntu1 0
        500 http://ro.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
lib32asan0:
  Installed: (none)
  Candidate: 4.8.2-19ubuntu1
  Version table:
     4.8.2-19ubuntu1 0
        500 http://ro.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
libx32asan0:
  Installed: (none)
  Candidate: 4.8.2-19ubuntu1
  Version table:
     4.8.2-19ubuntu1 0
        500 http://ro.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

UPDATE 3:

Para apt-cache policy gcc-4.9-base , obtenho:

gcc-4.9-base:
  Installed: 4.9.1-0ubuntu1
  Candidate: 4.9.1-0ubuntu1
  Version table:
 *** 4.9.1-0ubuntu1 0
        100 /var/lib/dpkg/status
     4.9-20140406-0ubuntu1 0
        500 http://ro.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Quando tento fazer sudo apt-get purge gcc-4.9-base , estou recebendo:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgcc1 : Depends: gcc-4.9-base (= 4.9.1-0ubuntu1) but it is not going to be installed
 libudev1 : Depends: libcgmanager0 but it is not going to be installed
            Depends: libnih-dbus1 (>= 1.0.0) but it is not going to be installed
            Depends: libnih1 (>= 1.0.0) but it is not going to be installed
 libxcb1 : Depends: libxau6 but it is not going to be installed
           Depends: libxdmcp6 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
    
por Cajuu' 13.05.2015 / 10:51

3 respostas

1

abra seu terminal e digite como

sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get dist-upgrade

sudo apt-get autoclean limpa o repositório local de recuperados arquivos de pacote no /var/cache/apt/archives . A diferença é que ele apenas remove os arquivos do pacote que não podem mais ser baixados, e são em grande parte inúteis.

sudo apt-get autoremove usado para remover pacotes que foram automaticamente instalados para satisfazer as dependências de outros pacotes e agora não são mais necessários.

autoclean e autoremove usados para garantir que não haja pacotes desnecessários que possam afetar seu sistema.

sudo apt-get update atualiza a lista de fontes e ressincroniza os arquivos de índice de pacotes de suas origens.

sudo apt-get dist-upgrade dist-upgrade, além de executar a função de atualização, também lida de forma inteligente com dependências variáveis de pacotes

    
por 13.05.2015 / 20:29
1

Pelo menos alguns dos seus pacotes gcc são manualmente instalados e correspondem a uma versão mais recente que a do Ubuntu 14.04. Para instalar o g++-multilib e suas dependências, você precisará fazer o downgrade desses pacotes para as versões nos arquivos.

Comece executando

sudo apt-get install gcc-4.9-base=4.9-20140406-0ubuntu1

e trabalhe o seu caminho a partir daí ... Isso deve lhe dar um monte de erros que lhe dirão quais outros pacotes você precisa fazer o downgrade.

Para fazer o downgrade dos pacotes, você precisa executar apt-cache policy em cada um para determinar qual versão está no arquivo (essa é a versão com trusty URL) e adicioná-la à linha sudo apt-get install acima; então você acabaria com

sudo apt-get install gcc-4.9-base=4.9-20140406-0ubuntu1 package1=version1 package2=version2 ...

Alternativamente, você poderia apenas remover gcc e todos os pacotes relacionados e reinstalá-los.

Você tem outras bibliotecas com versões instaladas manualmente, portanto, pode ser necessário um pouco de trabalho para restaurar o sistema para corresponder aos arquivos.

    
por 13.05.2015 / 11:20
0

Minha solução: no software e na atualização do ubuntu, localize o painel "atualizações", selecione Atualização de segurança importante e Atualizações recomendadas, então funciona bem, espero que ajude!

    
por 09.08.2016 / 10:23