This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Broken Dependencies when upgrading

Tags: None
(comma "," separated)
stevemcqueen
Registered Member
Posts
3
Karma
0

Broken Dependencies when upgrading

Fri Jul 21, 2017 8:16 pm
I've suddenly started getting a bunch of error messages about broken package dependencies when upgrading KDE Neon.

output from a sudo apt-get dist-upgrade:
Code: Select all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) libharfbuzz-icu0 [ amd64 ] < 1.0.1-1ubuntu0.1 -> 1.4.6-0neon+16.04+xenial+build2 > ( libs )
Broken libharfbuzz-icu0:amd64 Depends on libharfbuzz0b [ amd64 ] < 1.0.1-1ubuntu0.1 -> 1.4.6-0neon+16.04+xenial+build2 > ( libs ) (>= 1.4.6)
  Considering libharfbuzz0b:amd64 225 as a solution to libharfbuzz-icu0:amd64 20
  Holding Back libharfbuzz-icu0:amd64 rather than change libharfbuzz0b:amd64
Investigating (0) libqt5webenginecore5 [ amd64 ] < 5.9.0+dfsg-0neon+16.04+xenial+build31 -> 5.9.1+dfsg-1+16.04+xenial+build32 > ( libs )
Broken libqt5webenginecore5:amd64 Depends on libharfbuzz-icu0 [ amd64 ] < 1.0.1-1ubuntu0.1 -> 1.4.6-0neon+16.04+xenial+build2 > ( libs ) (>= 1.4)
  Considering libharfbuzz-icu0:amd64 20 as a solution to libqt5webenginecore5:amd64 2
  Removing libqt5webenginecore5:amd64 rather than change libharfbuzz-icu0:amd64
 Try to Re-Instate (1) libharfbuzz-icu0:amd64
Investigating (1) libqt5webenginewidgets5 [ amd64 ] < 5.9.0+dfsg-0neon+16.04+xenial+build31 -> 5.9.1+dfsg-1+16.04+xenial+build32 > ( libs )
Broken libqt5webenginewidgets5:amd64 Depends on libqt5webenginecore5 [ amd64 ] < 5.9.0+dfsg-0neon+16.04+xenial+build31 -> 5.9.1+dfsg-1+16.04+xenial+build32 > ( libs )
  Considering libqt5webenginecore5:amd64 2 as a solution to libqt5webenginewidgets5:amd64 5
  Added libqt5webenginecore5:amd64 to the remove list
  Fixing libqt5webenginewidgets5:amd64 via keep of libqt5webenginecore5:amd64
 Try to Re-Instate (1) libqt5webenginecore5:amd64
Investigating (1) libqt5webenginecore5 [ amd64 ] < 5.9.0+dfsg-0neon+16.04+xenial+build31 -> 5.9.1+dfsg-1+16.04+xenial+build32 > ( libs )
Broken libqt5webenginecore5:amd64 Depends on libqt5webengine-data [ amd64 ] < 5.9.0+dfsg-0neon+16.04+xenial+build31 -> 5.9.1+dfsg-1+16.04+xenial+build32 > ( libs ) (= 5.9.0+dfsg-0neon+16.04+xenial+build31)
  Considering libqt5webengine-data:amd64 4 as a solution to libqt5webenginecore5:amd64 2
  Removing libqt5webenginecore5:amd64 rather than change libqt5webengine-data:amd64
Investigating (2) libqt5webenginewidgets5 [ amd64 ] < 5.9.0+dfsg-0neon+16.04+xenial+build31 -> 5.9.1+dfsg-1+16.04+xenial+build32 > ( libs )
Broken libqt5webenginewidgets5:amd64 Depends on libqt5webenginecore5 [ amd64 ] < 5.9.0+dfsg-0neon+16.04+xenial+build31 -> 5.9.1+dfsg-1+16.04+xenial+build32 > ( libs )
  Considering libqt5webenginecore5:amd64 2 as a solution to libqt5webenginewidgets5:amd64 5
  Added libqt5webenginecore5:amd64 to the remove list
  Fixing libqt5webenginewidgets5:amd64 via keep of libqt5webenginecore5:amd64
Investigating (2) libqt5webenginecore5 [ amd64 ] < 5.9.0+dfsg-0neon+16.04+xenial+build31 -> 5.9.1+dfsg-1+16.04+xenial+build32 > ( libs )
Broken libqt5webenginecore5:amd64 Depends on libqt5webengine-data [ amd64 ] < 5.9.0+dfsg-0neon+16.04+xenial+build31 -> 5.9.1+dfsg-1+16.04+xenial+build32 > ( libs ) (= 5.9.0+dfsg-0neon+16.04+xenial+build31)
  Considering libqt5webengine-data:amd64 4 as a solution to libqt5webenginecore5:amd64 5
  Added libqt5webengine-data:amd64 to the remove list
  Fixing libqt5webenginecore5:amd64 via keep of libqt5webengine-data:amd64
Investigating (3) libqt5webenginewidgets5 [ amd64 ] < 5.9.0+dfsg-0neon+16.04+xenial+build31 -> 5.9.1+dfsg-1+16.04+xenial+build32 > ( libs )
Broken libqt5webenginewidgets5:amd64 Depends on libqt5webengine-data [ amd64 ] < 5.9.0+dfsg-0neon+16.04+xenial+build31 -> 5.9.1+dfsg-1+16.04+xenial+build32 > ( libs ) (= 5.9.1+dfsg-1+16.04+xenial+build32)
  Considering libqt5webengine-data:amd64 5 as a solution to libqt5webenginewidgets5:amd64 5
  Holding Back libqt5webenginewidgets5:amd64 rather than change libqt5webengine-data:amd64
 Try to Re-Instate (3) libqt5webengine-data:amd64
 Try to Re-Instate (4) libqt5webenginewidgets5:amd64
Done
Calculating upgrade... Done
The following packages have been kept back:
  libharfbuzz-icu0 libharfbuzz0b libqt5webengine-data libqt5webenginecore5 libqt5webenginewidgets5
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.


And my package source list, if that helps:
Code: Select all
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu xenial-security multiverse
/etc/apt/sources.list.d/neon.list:deb http://archive.neon.kde.org/user xenial main
/etc/apt/sources.list.d/atlassian-hipchat4.list:deb https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial main
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/webupd8team-ubuntu-java-xenial.list:deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main


Any ideas what's wrong here and what I can do to fix it?
stevemcqueen
Registered Member
Posts
3
Karma
0
I'm still having this issue, and I have no idea how to fix it.

Any ideas?
NoNameNoBlame
Karma
0
Try:

$ aptitude why …

and:

$ aptitude why-not …
stevemcqueen
Registered Member
Posts
3
Karma
0
Thanks for the reply! That definitely helped, and I think it's resolved!

I had this output for libharfbuzz-icu0:
Code: Select all
#libharfbuzz-icu0
#why
i   libreoffice      Depends libreoffice-core (= 1:5.1.6~rc2-0ubuntu1~xenial2)
i A libreoffice-core Depends libharfbuzz-icu0 (>= 0.9.18)                     
#why-not
i   xorg                      Depends  xterm | x-terminal-emulator           
p   guake                     Provides x-terminal-emulator                   
p   guake                     Depends  notification-daemon                   
p   python-jarabe             Provides notification-daemon                   
p   python-jarabe             Depends  metacity                             
p   metacity                  Depends  zenity                               
p   zenity:i386               Provides zenity                               
p   zenity:i386               Depends  libwebkit2gtk-4.0-37:i386 (>= 2.5.3) 
p   libwebkit2gtk-4.0-37:i386 Depends  libharfbuzz-icu0:i386 (>= 0.9.18)     
p   libharfbuzz-icu0:i386     Breaks   libharfbuzz-icu0 (!= 1.0.1-1ubuntu0.1)


The i386 threw me. But libreoffice isn't critical, so I tried uninstalling it. apt-get remove libreoffice, then apt-get autoremove for all the leftover junk.

Then I tried reinstalling it. After a big pile of output, this was at the bottom:
Code: Select all
The following packages have unmet dependencies:
 libreoffice : Depends: libreoffice-base but it is not going to be installed
               Depends: libreoffice-calc but it is not going to be installed
               Depends: libreoffice-core (= 1:5.1.6~rc2-0ubuntu1~xenial2) but it is not going to be installed
               Depends: libreoffice-draw but it is not going to be installed
               Depends: libreoffice-impress but it is not going to be installed
               Depends: libreoffice-math but it is not going to be installed
               Depends: libreoffice-report-builder-bin but it is not going to be installed
               Depends: libreoffice-writer but it is not going to be installed
               Depends: libreoffice-avmedia-backend-gstreamer but it is not going to be installed
               Depends: python3-uno (>= 4.4.0~beta2) but it is not going to be installed
               Recommends: libreoffice-gnome but it is not going to be installed or
                           libreoffice-kde but it is not going to be installed


So something was blocking the install, but after some investigation I could now remove libharfbuzz-icu0 directly (without uninstalling all of KDE like some of the other broken ones tried). With that, and an autoremove I got rid of ton of i386 libraries:
Code: Select all
The following packages were automatically installed and are no longer required:
  gcc-5-base:i386 libasyncns0:i386 libatk1.0-0:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libbsd0:i386
  libcairo2:i386 libcups2:i386 libdbus-1-3:i386 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386
  libedit2:i386 libelf1:i386 libexpat1:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386 libgdk-pixbuf2.0-0:i386 libgif7:i386
  libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libglapi-mesa:i386 libgmp10:i386 libgnutls30:i386 libgraphite2-3:i386 libgssapi-krb5-2:i386
  libhogweed4:i386 libidn11:i386 libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 libjson-c2:i386 libk5crypto3:i386 libkeyutils1:i386
  libkrb5-3:i386 libkrb5support0:i386 liblcms2-2:i386 libllvm4.0:i386 libnettle6:i386 libnspr4:i386 libnss3:i386 libogg0:i386
  libp11-kit0:i386 libpciaccess0:i386 libpcsclite1:i386 libpixman-1-0:i386 libpng12-0:i386 libpulse0:i386 libsensors4:i386 libsndfile1:i386
  libsqlite3-0:i386 libstdc++6:i386 libtasn1-6:i386 libtiff5:i386 libtxc-dxtn-s2tc0:i386 libvorbis0a:i386 libvorbisenc2:i386 libwrap0:i386
  libx11-xcb1:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-render0:i386 libxcb-shm0:i386
  libxcb-sync1:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxfixes3:i386 libxft2:i386 libxi6:i386 libxinerama1:i386
  libxrandr2:i386 libxrender1:i386 libxshmfence1:i386 libxxf86vm1:i386 openjdk-8-jre-headless:i386

That openjdk-8-jre-headless:i386 finally jogged my memory. I had some corporate pile of **** software (webex or vpn or some such) way back when that required the i386 version of java and some other stuff to run.

So I autoremoved all of that. Then installed libreoffice again. It works this time! Do a dist-upgrade, and all of the rest resolves itself!

All back to normal! So thanks again for your help! :D


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft