Ubuntu – unmet dependencies after apt-get dist-upgrade 12.04 to 14.04.1

12.0414.04aptdependenciesupgrade

I can't fix the problem that happened when I have upgraded from Ubuntu 12.04 to 14.04.1 (apt-get dist-upgrade). I'm becoming crazy.

Copy from 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

Actually I can not upgrade or install or remove without have these errors:

~# 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.

Adding -f, these are the only differences from the previous error:

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

I had found that there were the older PPA and I updated it:

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

So I used the following command for each packet that was generating an error according to dpkg –configure -a:

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

and this is the result:

# 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

But, again, I have the some problems with upgrade, install and remove.
This is the only "strange" output that I have found:

# 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).

I hope that some one can help me, I don't want to format :/
Cheers

Best Answer

You seem to have libc6, udev etc from ppas. Do you? These are just too fundamental for coming from outside ubuntu.

I expect you will have to get rid of these ppas [from sources.list etc] and try again

Related Question