dependências não satisfeitas após o apt-get dist-upgrade 12.04 a 14.04.1

0

Não consigo corrigir o problema que aconteceu quando atualizei o Ubuntu 12.04 para o 14.04.1 (apt-get dist-upgrade). Estou ficando louco.

Copiar do log:

>Start-Date: 2014-12-17  18:39:01 
>Commandline: apt-get dist-upgrade 
>Install: [..] libboost-graph-dev:amd64 (1.48.0.2), klogd:amd64 (1.5-6ubuntu1)
>Error: Sub-process /usr/bin/dpkg returned an error code (1)
>End-Date: 2014-12-17  18:40:19


Start-Date: 2014-12-17  18:41:51
Commandline: apt-get -f install
Upgrade: glib-networking-common:amd64 (2.32.1-1ubuntu2, 2.40.0-1), gvfs-common:amd64 (1.12.1-0ubuntu1.2, 1.20.1-1ubuntu1), libc6-dev:amd64 (2.15-0ubuntu15~ppa1, 2.19-0ubuntu6.4), gvfs:i386 (1.12.1-0ubuntu1.2, 1.20.1-1ubuntu1), libc-dev-bin:amd64 (2.15-0ubuntu15~ppa1, 2.19-0ubuntu6.4), glib-networking-services:amd64 (2.32.1-1ubuntu2, 2.40.0-1), libc6:amd64 (2.15-0ubuntu15~ppa1, 2.19-0ubuntu6.4), libc6:i386 (2.15-0ubuntu15~ppa1, 2.19-0ubuntu6.4), gvfs-daemons:amd64 (1.12.1-0ubuntu1.2, 1.20.1-1ubuntu1)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2014-12-17  18:41:55

Na verdade, não posso atualizar ou instalar ou remover sem esses erros:

~# 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:
 glib-networking:i386 : Depends: glib-networking-services:i386 (>= 2.40.0-1)
                    Depends: glib-networking-common:i386 (= 2.40.0-1)
 gvfs:i386 : Depends: gvfs-libs:i386 (= 1.12.1-0ubuntu1.2) but 1.20.1-1ubuntu1 is installed
 gvfs-daemons : Depends: gvfs-libs (= 1.12.1-0ubuntu1.2) but 1.20.1-1ubuntu1 is installed
            Recommends: policykit-1-gnome but it is not installed
            Recommends: gvfs but it is not installed
 gvfs-libs : Depends: gvfs-common (= 1.20.1-1ubuntu1) but 1.12.1-0ubuntu1.2 is installed
 gvfs-libs:i386 : Depends: gvfs-common:i386 (= 1.20.1-1ubuntu1)
 libc-dev-bin : Depends: libc6 (> 2.19) but 2.15-0ubuntu15~ppa1 is installed
 libc6-dev : Depends: libc6 (= 2.19-0ubuntu6.4) but 2.15-0ubuntu15~ppa1 is installed
 libglib2.0-0 : Depends: libc6 (>= 2.17) but 2.15-0ubuntu15~ppa1 is installed
 libglib2.0-0:i386 : Depends: libc6:i386 (>= 2.17) but 2.15-0ubuntu15~ppa1 is installed
 libudev1 : Depends: libc6 (>= 2.17) but 2.15-0ubuntu15~ppa1 is installed
 libudev1:i386 : Depends: libc6:i386 (>= 2.17) but 2.15-0ubuntu15~ppa1 is installed
E: Unmet dependencies. Try using -f.

Adicionando -f, estas são as únicas diferenças em relação ao erro anterior:

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

Eu descobri que havia o PPA antigo e atualizei:

deb http://it.archive.ubuntu.com/ubuntu/ utopic main
deb-src http://it.archive.ubuntu.com/ubuntu/ utopic main

deb http://security.ubuntu.com/ubuntu utopic-security main
deb-src http://security.ubuntu.com/ubuntu utopic-security main

#deb http://it.archive.ubuntu.com/ubuntu/ utopic-updates main universe restricted multiverse
#deb-src http://it.archive.ubuntu.com/ubuntu/ utopic-updates main universe restricted multiverse

Então eu usei o seguinte comando para cada pacote que estava gerando um erro de acordo com o dpkg --configure -a:

echo "libc6-dev hold" | dpkg --set-selections

e este é o resultado:

# dpkg --get-selections | grep hold
desktop-file-utils                              hold
glib-networking:i386                            hold
gvfs-libs                                       hold
gvfs-libs:i386                                  hold
libc-dev-bin                                    hold
libc6-dev                                       hold
libgcrypt11-dev                                 hold
libglib2.0-0                                    hold
libglib2.0-0:i386                               hold
libglib2.0-bin                                  hold
libglib2.0-dev                                  hold
libgnutls-dev                                   hold
libpcre3-dev                                    hold
libpolkit-agent-1-0                             hold
libpolkit-gobject-1-0                           hold
libsecret-1-0                                   hold
libsecret-1-0:i386                              hold
libudev1                                        hold
libudev1:i386                                   hold
libudisks2-0                                    hold
udisks2                                         hold

Mas, novamente, tenho alguns problemas com atualização, instalação e remoção. Esta é a única saída "estranha" que encontrei:

# apt-get remove libc6-dev
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:
 build-essential : Depends: libc6-dev but it is not going to be installed or
                            libc-dev
 comerr-dev : Depends: libc6-dev but it is not going to be installed or
                       libc-dev
 e2fslibs-dev : Depends: libc6-dev but it is not going to be installed or
                         libc-dev
 glib-networking:i386 : Depends: glib-networking-services:i386 (>= 2.40.0-1)
                        Depends: glib-networking-common:i386 (= 2.40.0-1)
 gvfs:i386 : Depends: gvfs-libs:i386 (= 1.12.1-0ubuntu1.2) but 1.20.1-1ubuntu1 is to be installed
 gvfs-daemons : Depends: gvfs-libs (= 1.12.1-0ubuntu1.2) but 1.20.1-1ubuntu1 is to be installed
                Recommends: policykit-1-gnome but it is not going to be installed
                Recommends: gvfs but it is not going to be installed
 gvfs-libs : Depends: gvfs-common (= 1.20.1-1ubuntu1) but 1.12.1-0ubuntu1.2 is to be installed
 gvfs-libs:i386 : Depends: gvfs-common:i386 (= 1.20.1-1ubuntu1)
 libblkid-dev : Depends: libc6-dev but it is not going to be installed or
                         libc-dev
 libbz2-dev : Depends: libc6-dev but it is not going to be installed or
                       libc-dev
 libc-dev-bin : Depends: libc6 (> 2.19) but 2.15-0ubuntu15~ppa1 is to be installed
 libcurl4-gnutls-dev : Depends: libc6-dev but it is not going to be installed or
                                libc-dev
 libexif-dev : Depends: libc6-dev but it is not going to be installed
 libexpat1-dev : Depends: libc6-dev but it is not going to be installed or
                          libc-dev
 libfreetype6-dev : Depends: libc6-dev but it is not going to be installed or
                             libc-dev
 libgcrypt11-dev : Depends: libc6-dev but it is not going to be installed or
                            libc-dev
 libglib2.0-0 : Depends: libc6 (>= 2.17) but 2.15-0ubuntu15~ppa1 is to be installed
 libglib2.0-0:i386 : Depends: libc6:i386 (>= 2.17) but 2.15-0ubuntu15~ppa1 is to be installed
 libgnutls-dev : Depends: libc6-dev but it is not going to be installed or
                          libc-dev
 libicu-dev : Depends: libc6-dev but it is not going to be installed or
                       libc-dev
 libjpeg-turbo8-dev : Depends: libc-dev
 libpcre3-dev : Depends: libc6-dev but it is not going to be installed
 libsasl2-dev : Depends: libc6-dev but it is not going to be installed
 libstdc++6-4.6-dev : Depends: libc6-dev (>= 2.13-0ubuntu6) but it is not going to be installed
 libtiff4-dev : Depends: libc6-dev but it is not going to be installed or
                         libc-dev
 libtool : Depends: libc6-dev but it is not going to be installed or
                    libc-dev
 libudev1 : Depends: libc6 (>= 2.17) but 2.15-0ubuntu15~ppa1 is to be installed
 libudev1:i386 : Depends: libc6:i386 (>= 2.17) but 2.15-0ubuntu15~ppa1 is to be installed
 libxft-dev : Depends: libc6-dev but it is not going to be installed or
                       libc-dev
 uuid-dev : Depends: libc6-dev but it is not going to be installed or
                     libc-dev
 zlib1g-dev : Depends: libc6-dev but it is not going to be installed or
                       libc-dev
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Espero que alguém possa me ajudar, não quero formatar: / Felicidades

    
por Mirko Torrisi 15.01.2015 / 18:19

3 respostas

1

Você parece ter libc6, udev etc do ppas. Você? Estes são apenas fundamentais demais para vir de fora do Ubuntu.

Espero que você tenha que se livrar desses ppas [de sources.list etc] e tente novamente

    
por Rusi 15.01.2015 / 18:46
0

você tentou

  • limpe o cache do apt apt-get clean
  • limpe as mensagens de erro
  • edite seu arquivo de lista de fontes. %código%

Depois que o arquivo da lista de origem foi alterado, execute

apt-get update 

tente atualizar / instalar pacotes

    
por Evan O' Keeffe 15.01.2015 / 20:32
0

Mais uma coisa para tentar é atualizar os pacotes principais conflitantes. Isso é tentar

$ sudo apt-get upgrade libc6 libc6-dev libc-dev udev

Isso provavelmente fornecerá uma lista de pacotes que serão removidos. É importante que esta lista contenha pacotes que vieram do ppas e não de pacotes principais como os acima

[BTW Ajudará se você tiver synaptic e / ou aptitude instalado. Se não sei como instalar agora em um estado quebrado :-(]

Atualizar

Apenas descoberto aqui que você poderia tentar este comando awk para listar seus pacotes obsoletos / locais

awk '/^Package: / {print $2}' /var/lib/dpkg/status | sort |
(awk '/^Package: / {print $2}' /var/lib/apt/lists/*_Packages | sort |
 comm -23 --nocheck-order /dev/fd/3 -) 3<&0 

A lista que você recebe é provavelmente a lista de pacotes ofensivos

    
por Rusi 16.01.2015 / 03:42