Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Dependency problems with kde upgrading to stretch

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
doctordruidphd
Posts: 22
Joined: 2007-05-28 01:39
Location: Pacific Northwest, USA
Contact:

[Solved] Dependency problems with kde upgrading to stretch

#1 Post by doctordruidphd »

Running into dependency problems with kde packages when trying to upgrade from Jessie to Stretch. I did
the "partial" upgrade first, but now it's stuck.
sources.list file:

Code: Select all

root@Crynfyd:/etc/apt# cat sources.list
# 

deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free

# stretch-backports, previously on backports.debian.org
#deb http://ftp.us.debian.org/debian/ stretch-backports main contrib non-free
#deb-src http://ftp.us.debian.org/debian/ stretch-backports main contrib non-free
Then apt-get update, then:

Code: Select all

root@Crynfyd:/etc/apt# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... 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:
 kde-cli-tools-data : Breaks: kde-l10n-engb (< 4:4.14.0-2) but 4:4.14.0-1 is to be installed
 kdeplasma-addons-data : Breaks: kde-l10n-engb (< 4:4.14.0-2) but 4:4.14.0-1 is to be installed
 khotkeys-data : Breaks: kde-l10n-engb (< 4:4.14.0-2) but 4:4.14.0-1 is to be installed
 kio-extras-data : Breaks: kde-l10n-engb (< 4:4.14.0-2) but 4:4.14.0-1 is to be installed
 ksysguard-data : Breaks: kde-l10n-engb (< 4:4.14.0-2) but 4:4.14.0-1 is to be installed
 libkf5filemetadata-data : Breaks: kde-l10n-engb (< 4:4.14.0-2) but 4:4.14.0-1 is to be installed
 libkf5screen-bin : Breaks: kscreen (< 4:5.8) but 1.0.2.1-1 is to be installed
 libkf5screen7 : Breaks: kscreen (< 4:5.8) but 1.0.2.1-1 is to be installed
 libkf5sysguard-data : Breaks: kde-l10n-engb (< 4:4.14.0-2) but 4:4.14.0-1 is to be installed
 libkompareinterface5 : Recommends: kpart5-kompare but it is not going to be installed
                        Breaks: kompare (< 4:14.12.3+git20150408) but 4:4.14.0-1 is to be installed
 liboxygenstyleconfig5-5 : Breaks: kde-l10n-engb (< 4:4.14.0-2) but 4:4.14.0-1 is to be installed
 plasma-desktop-data : Recommends: plasma-framework (> 5.22) but it is not going to be installed
                       Recommends: plasma-workspace but it is not going to be installed
                       Recommends: qml-module-org-kde-kwindowsystem but it is not going to be installed
                       Breaks: kde-l10n-engb (< 4:4.14.0-4~) but 4:4.14.0-1 is to be installed
 powerdevil-data : Breaks: kde-l10n-engb (< 4:4.14.0-2) but 4:4.14.0-1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
There are no held packages, according to dpkg --get-selections | grep hold
Strange, it is claiming that:
Breaks: kde-l10n-engb (< 4:4.14.0-2) but 4:4.14.0-1 is to be installed

but:

Code: Select all

root@Crynfyd:/etc/apt# apt-cache policy kde-l10n-engb
kde-l10n-engb:
  Installed: 4:4.14.0-1
  Candidate: 4:16.04.3-1
  Version table:
     4:16.04.3-1 0
        500 http://ftp.us.debian.org/debian/ stretch/main amd64 Packages
 *** 4:4.14.0-1 0
        100 /var/lib/dpkg/status
So this isn't making any sense.
Last edited by doctordruidphd on 2017-06-26 21:01, edited 1 time in total.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Dependency problems with kde upgrading to stretch

#2 Post by phenest »

You can add KDE to the subject title, but there are already plenty of recently opened threads on this issue. Please search the forum first and follow the existing threads before making new posts.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

doctordruidphd
Posts: 22
Joined: 2007-05-28 01:39
Location: Pacific Northwest, USA
Contact:

Re: Dependency problems with kde upgrading to stretch

#3 Post by doctordruidphd »

I tired searching and came up with nothing relevant. Any pointers would be appreciated.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Dependency problems with kde upgrading to stretch

#4 Post by stevepusser »

Since it's that one package that's jamming up the upgrade, can you trying removing it and then reinstalling it afterwards?
MX Linux packager and developer

doctordruidphd
Posts: 22
Joined: 2007-05-28 01:39
Location: Pacific Northwest, USA
Contact:

Re: Dependency problems with kde upgrading to stretch

#5 Post by doctordruidphd »

Thanks for your response.

The first thing I tried was holding kscreen, kompare, and kde-l10n-engb. That pretty much held back most of the packages. Then I tried (but did not execute) removing them, and that would have removed most of KDE, rather than upgrading from KDE4 to plasma5. May wind up having to do it that way, if there is no other solution.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Dependency problems with kde upgrading to stretch

#6 Post by stevepusser »

I meant just the kde-l10n-engb package, since it looks like that's the one with the mistake in the Breaks field. That's just a localization package and should be fine to temporarily remove.
MX Linux packager and developer

doctordruidphd
Posts: 22
Joined: 2007-05-28 01:39
Location: Pacific Northwest, USA
Contact:

Re: Dependency problems with kde upgrading to stretch

#7 Post by doctordruidphd »

OK, after doing an update/upgrade today, I was able to remove both kde-l10n-engb and kompare. However, kscreen I cannot remove without taking out just about every application on the system. For some reason the upgrade is not handling this right.

It appears, barring input from anyone who has had/overcome this problem, that the best thing to do at this point may be to download the new version of kscreen from the debian/stretch repository, force install it (which will probably whack kde), then proceed with the upgrade and deal with the kde issues later. I haven't found any other solutions.

jmgibson1981
Posts: 296
Joined: 2015-06-07 14:38
Has thanked: 11 times
Been thanked: 32 times

Re: Dependency problems with kde upgrading to stretch

#8 Post by jmgibson1981 »

Not the same package issues but I upgraded from Jessie just the other day on my laptop with kde. Chromium was held back. I had to do an apt --purge autoremove before it would upgrade chromium. It also purged a few other things but I was able to reinstall them no problems. Never been happier with my laptop as I am with Debian & Plasma.

Also, you say its going to remove every application. Are you sure it's not just removing KDE 4 stuff?

TLDR - before forcing installations and likely breaking something try an apt --purge autoremove. Then reinstall whatever as needed.

Below is basically what I did.

Code: Select all

apt --purge autoremove
apt dist-upgrade
apt install $PURGEDPACKAGES

nickmdowson
Posts: 84
Joined: 2013-08-18 22:24

Re: Dependency problems with kde upgrading to stretch

#9 Post by nickmdowson »

Hi, I've been trying to upgrade to stretch as well and having a similar situation (I also use KDE).

every time I try and remove what seems to be the problematic packages, something else seems to appear in their place. Now it seems there's issues with the plasma-desktop one...which it has removed and won't let me reinstall.(perhaps these are packages from kde4 - but from what I can see some look pretty crucial). awkwardly, I have a nasty feeling i may also have uninstalled network functionality...

This is my sources list:

Code: Select all

deb http://ftp.uk.debian.org/debian/ stretch main contrib non-free 
deb-src http://ftp.uk.debian.org/debian/ stretch main contrib non-free 

deb http://security.debian.org/ stretch/updates main contrib non-free 
deb-src http://security.debian.org/ stretch/updates main contrib non-free 

#stretch-updates, previously known as 'volatile'
deb http://ftp.uk.debian.org/debian/ stretch-updates main contrib non-free 
deb-src http://ftp.uk.debian.org/debian/ stretch-updates main contrib non-free 

deb http://ftp.uk.debian.org/debian/ stretch-proposed-updates main non-free contrib 
deb-src http://ftp.uk.debian.org/debian/ stretch-proposed-updates main non-free contrib 

# backports
deb http://ftp.uk.debian.org/debian/ stretch-backports main contrib non-free 
deb-src http://ftp.uk.debian.org/debian/ stretch-backports main contrib non-free 
some examples of errors:

Code: Select all

  breeze : Breaks: plasma-desktop (< 4:5.8) but 4:4.11.13-2 is to be installed
 dolphin4 : Breaks: dolphin (< 4:15.08) but 4:4.14.2-1 is to be installed
 kactivitymanagerd : Breaks: plasma-desktop (< 4:5.8) but 4:4.11.13-2 is to be installed
 kde-cli-tools : Breaks: plasma-desktop (< 4:5.8) but 4:4.11.13-2 is to be installed
 libkworkspace5-5 : Breaks: plasma-desktop (< 4:5.8) but 4:4.11.13-2 is to be installed
 libtaskmanager6 : Breaks: plasma-desktop (< 4:5.8) but 4:4.11.13-2 is to be installed
 plasma-integration : Breaks: plasma-desktop (< 4:5.8) but 4:4.11.13-2 is to be installed
 plasma-workspace : Recommends: powerdevil but it is not going to be installed
                    Breaks: plasma-desktop (< 4:5.8) but 4:4.11.13-2 is to be installed
 polkit-kde-agent-1 : Breaks: plasma-desktop (< 4:5.8) but 4:4.11.13-2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I did have a couple of third-party repos, but i've disabled these, and to my knowledge uninstalled all packages from them. (The commands in the debian upgrade guide to check these either didn't work or came up with a long list including packages I know to be part of debian).

apt-get upgrade (and dist-upgrade) gives:

Code: Select all

The following packages have unmet dependencies:
kde-config-touchpad: Depends: plasma-desktop but it is not installed
kde-plasma-desktop : depends: plasma-desktop (>= 4:4.11.3) but it is not installed
kde-workspace-bin: Depends: plasma-desktop (4:4.11.13-2 but .... or
                                                      plasma-netbook (=4:4.11.13-2) but it is not installable
E: Unmet dependencies. Try using -f

Apt-get -f install plasma-desktop gives a long list of depdnds: but is not going to be installed, including breeze, kded5, kio, plasma,-various, libkf5 lbiraries, powerdevil, user-manager, etc.

Any tips on saving this (possibly including a solution to the broken network problem? I've not enjoyed trying to sort that one from the command line in the past...)

Thanks!

doctordruidphd
Posts: 22
Joined: 2007-05-28 01:39
Location: Pacific Northwest, USA
Contact:

Re: Dependency problems with kde upgrading to stretch

#10 Post by doctordruidphd »

OK, here is what I did:
Erased the system I was working on and reloaded the Jessie system from backup.
Did the upgrade to the latest Jessie packages.
Made the necessary changes to sources.list, apt preferences, etc.
apt-get update
apt-get upgrade

Then apt-get dist-upgrade. This produced the same messages you got about plasma-desktop.
(Expect to do the remaining steps from the text console, as it will mess up kde temporarily.)
Then apt-get install --reinstall plasma-desktop
Before letting this go through, be sure to cut-and-paste the list of what will be removed for future reference.
This will replace most, but not all, of kde.
Now do the apt-get dist-upgrade, also being sure to make a copy of what will be removed.
You may also want, for example, to replace kdm with sddm
Also you can do apt-get install kde-standard or kde-full, which will bring in most (but not all) of the kde stuff that got whacked.
At this point you should be able to boot into a functional kde desktop. Be aware that a lot of KDE4 stuff no longer works in plasma5, especially plasmoids, widgets, etc.
Now you can go through the lists of what was removed and reinstall (forget about the lib stuff, it's the programs you are interested in mostly), providing that the stuff still exists in plasma5.
That's what I did, and it resolved the problem.

nickmdowson
Posts: 84
Joined: 2013-08-18 22:24

Re: [Solved] Dependency problems with kde upgrading to stret

#11 Post by nickmdowson »

Ok thanks. Good to know it's not just me then.
Unfortunately it turns out i've only got a backup of my home directory (stupid) so looks like I'm going to have to attempt it from here. but will try the rest of what you suggested. Thanks!

nickmdowson
Posts: 84
Joined: 2013-08-18 22:24

Re: [Solved] Dependency problems with kde upgrading to stret

#12 Post by nickmdowson »

Hi,
So my upgrade mostly worked after following what you suggested - I'm now on Debian Stretch.

Unfortunately having re-installed KDE using your commands, and then using Task Select as well, it still doesn't seem to be working. On power up I get an error:

X Session;
unable to launch "X Session ---"" not found; falling back to default session.

Then it falls back to an XFCE GUI which I had installed as an additional desktop.

Any pointers on how to sort this? Was this what you mean about installing the additional desktop manager?

nickmdowson
Posts: 84
Joined: 2013-08-18 22:24

Re: [Solved] Dependency problems with kde upgrading to stret

#13 Post by nickmdowson »

It turns I have that installed so maybe I just need to switch to it...what's the recommended way to do that?

nickmdowson
Posts: 84
Joined: 2013-08-18 22:24

Re: [Solved] Dependency problems with kde upgrading to stret

#14 Post by nickmdowson »

I'm assuming: sudo dpkg-reconfigure sddm
Will see if that works next time I switch on.

nickmdowson
Posts: 84
Joined: 2013-08-18 22:24

Re: [Solved] Dependency problems with kde upgrading to stret

#15 Post by nickmdowson »

Looking good so far so think that's sorted it

Post Reply