[solved]unable to install kcachegrind, unmet dependencies

Archived topics about LMDE 1 and LMDE 2
santiagorf

[solved]unable to install kcachegrind, unmet dependencies

Post by santiagorf »

Hi all,
When I tried to install kcachegrind, I get the following message:

Code: Select all

sudo apt-get install kcachegrind
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:
 kcachegrind : Depends: kde-runtime (> 4:4.10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried running

Code: Select all

sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade
to no avail.

Code: Select all

cat /etc/apt/sources.list.d/official-package-repositories.list 
deb http://mint-packages.c3sl.ufpr.br debian main upstream import 

deb http://debian.linuxmint.com/latest/ testing main contrib non-free
deb http://debian.linuxmint.com/latest/security testing/updates main contrib non-free
deb http://debian.linuxmint.com/latest/multimedia testing main non-free

deb http://extra.linuxmint.com debian main
I'm running LMDE with cinnamon.
any help would be much appreciated!!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
kurotsugi

Re: unable to install kcachegrind, unmet dependencies:

Post by kurotsugi »

Code: Select all

apt-cache policy kde-runtime
aptitude -s install kde-runtime
please let us know the result
santiagorf

Re: unable to install kcachegrind, unmet dependencies:

Post by santiagorf »

thanks This is what I get:

Code: Select all

apt-cache policy kde-runtime
kde-runtime:
  Installed: (none)
  Candidate: 4:4.11.3-1
  Version table:
     4:4.11.3-1 0
        500 http://debian.linuxmint.com/latest/ testing/main amd64 Packages

Code: Select all

aptitude -s install kde-runtime
The following NEW packages will be installed:
  katepart{a} kde-runtime kdelibs-bin{a} kdelibs5-plugins{a} kdoctools{a} libkactivities-bin{a} libkactivities-models1{a} libkactivities6{a} 
  libkatepartinterfaces4{a} libkcmutils4{a} libkde3support4{a} libkdeclarative5{a} libkdecore5{a} libkdesu5{a} libkdeui5{a} libkdewebkit5{a} 
  libkdnssd4{a} libkemoticons4{a} libkfile4{a} libkhtml5{a} libkidletime4{a} libkio5{a} libkjsapi4{a} libkjsembed4{a} libkmediaplayer4{a} 
  libknewstuff3-4{a} libknotifyconfig4{a} libkntlm4{a} libkparts4{a} libkpty4{a} libkrosscore4{a} libktexteditor4{a} libkxmlrpcclient4{a} libnepomuk4{a} 
  libnepomukcore4{a} libnepomukquery4a{a} libnepomukutils4{a} libplasma3{a} libvlccore7{ab} nepomuk-core-runtime{a} phonon{a} phonon-backend-vlc{a} 
  plasma-scriptengine-javascript{a} 
0 packages upgraded, 43 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,255 kB/14.7 MB of archives. After unpacking 63.6 MB will be used.
The following packages have unmet dependencies:
 libvlccore7 : Depends: vlc-data (= 2.1.1-1) but 1:2.0.8-dmo2 is installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     kde-runtime [Not Installed]                        
2)     libvlccore7 [Not Installed]                        
3)     phonon [Not Installed]                             
4)     phonon-backend-vlc [Not Installed]                 

     Leave the following dependencies unresolved:         
5)     kdelibs5-plugins recommends kde-runtime            


Accept this solution? [Y/n/q/?] y
The following packages will be REMOVED:
  kate-data{u} kde-runtime-data{u} libattica0.4{u} libdbusmenu-qt2{u} libdlrestrictions1{u} libepub0{u} libfam0{u} libiodbc2{u} libntrack-qt4-1{u} 
  libntrack0{u} libpolkit-qt-1-1{u} libpoppler-qt4-3{u} libproxy-tools{u} libqca2{u} libsolid4{u} libsoprano4{u} libssh-4{u} libstreamanalyzer0{u} 
  libstreams0{u} libthreadweaver4{u} libvirtodbc0{u} nepomuk-core-data{u} ntrack-module-libnl-0{u} oxygen-icon-theme{u} shared-desktop-ontologies{u} 
  soprano-daemon{u} virtuoso-minimal{u} virtuoso-opensource-6.1-bin{u} virtuoso-opensource-6.1-common{u} 
0 packages upgraded, 0 newly installed, 29 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 78.4 MB will be freed.
Do you want to continue? [Y/n/?] y
Would download/install/remove packages.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: unable to install kcachegrind, unmet dependencies:

Post by Monsta »

santiagorf wrote:I tried running

Code: Select all

sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade
to no avail.
Never use apt-get upgrade. Use apt-get dist-upgrade.
santiagorf wrote:

Code: Select all

The following packages have unmet dependencies:
 libvlccore7 : Depends: vlc-data (= 2.1.1-1) but 1:2.0.8-dmo2 is installed.
Here's a great example of not fully upgraded system because the user mistakenly used apt-get upgrade instead of apt-get dist-upgrade.
Fix it first before trying anything else:

Code: Select all

apt update && apt dist-upgrade
kurotsugi

Re: unable to install kcachegrind, unmet dependencies:

Post by kurotsugi »

assuming you have cinnamon run 'sudo gedit /etc/apt/conf.d/debmulti.list' then add this line

Code: Select all

deb http://www.deb-multimedia.org testing main non-free
run 'sudo apt-get update' followed by 'aptitude -s install kcachegrind'.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: unable to install kcachegrind, unmet dependencies:

Post by Monsta »

This is not needed, kcachegrind is installable without adding any external repos. I already described what the problem is.
Sometimes it really helps to read all the recent posts before posting anything.
santiagorf

Re: unable to install kcachegrind, unmet dependencies:

Post by santiagorf »

thanks for the help. I run
sudo apt update && sudo apt dist-upgrade
, but it didn't install (or remove) any package.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: unable to install kcachegrind, unmet dependencies:

Post by Monsta »

The "apt" script does not need sudo, it already uses it internally.
Post the output of:

Code: Select all

apt policy libvlccore7 vlc-data
santiagorf

Re: unable to install kcachegrind, unmet dependencies:

Post by santiagorf »

Code: Select all

apt policy libvlccore7 vlc-data
libvlccore7:
  Installed: (none)
  Candidate: 2.1.1-1
  Version table:
     1:2.1.1-dmo1 0
         10 http://debian.linuxmint.com/latest/multimedia/ testing/main amd64 Packages
     2.1.1-1 0
        500 http://debian.linuxmint.com/latest/ testing/main amd64 Packages
vlc-data:
  Installed: 1:2.0.8-dmo2
  Candidate: 1:2.0.8-dmo2
  Version table:
     1:2.1.1-dmo1 0
         10 http://debian.linuxmint.com/latest/multimedia/ testing/main amd64 Packages
 *** 1:2.0.8-dmo2 0
        100 /var/lib/dpkg/status
     2.1.1-1 0
        500 http://debian.linuxmint.com/latest/ testing/main amd64 Packages
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: unable to install kcachegrind, unmet dependencies:

Post by Monsta »

santiagorf wrote:

Code: Select all

         10 http://debian.linuxmint.com/latest/multimedia/ testing/main amd64 Packages
:D Obviously, some malicious person wanted to bork your system and had set the priority of this repo to 10. No wonder you get the conflicts.
Post the output of:

Code: Select all

cat /etc/apt/preferences
santiagorf

Re: unable to install kcachegrind, unmet dependencies:

Post by santiagorf »

Obviously, some malicious person wanted to bork your system and had set the priority of this repo to 10. No wonder you get the conflicts.
I'm the only user of this computer. How come something like this might have happened?


Code: Select all

 cat /etc/apt/preferences
Package: *
Pin: release o=linuxmint
Pin-Priority: 700

Package: *
Pin: origin packages.linuxmint.com
Pin-Priority: 700

Package: *
Pin: release o=Debian
Pin-Priority: 500
kurotsugi

Re: unable to install kcachegrind, unmet dependencies:

Post by kurotsugi »

Code: Select all

apt-cache policy |grep http://debian.linuxmint.com/latest/multimedia/
ls /etc/apt/preferences.d/

monsta is right. something is suspicious here.
santiagorf

Re: unable to install kcachegrind, unmet dependencies:

Post by santiagorf »

Code: Select all

apt-cache policy | grep http://debian.linuxmint.com/latest/multimedia/
  10 http://debian.linuxmint.com/latest/multimedia/ testing/non-free i386 Packages
  10 http://debian.linuxmint.com/latest/multimedia/ testing/main i386 Packages
  10 http://debian.linuxmint.com/latest/multimedia/ testing/non-free amd64 Packages
  10 http://debian.linuxmint.com/latest/multimedia/ testing/main amd64 Packages

Code: Select all

ls /etc/apt/preferences.d/
mate
kurotsugi

Re: unable to install kcachegrind, unmet dependencies:

Post by kurotsugi »

Code: Select all

cat /etc/apt/preferences.d/mate
let's check into that file
santiagorf

Re: unable to install kcachegrind, unmet dependencies:

Post by santiagorf »

Code: Select all

 cat /etc/apt/preferences.d/mate
Package: *
Pin: release a=testing
Pin-Priority: 10

Package: *
Pin: origin repo.mate-desktop.org
Pin-Priority: 900
kurotsugi

Re: unable to install kcachegrind, unmet dependencies:

Post by kurotsugi »

delete that file or move it into somewhere else. it should solve our problem here
santiagorf

Re: unable to install kcachegrind, unmet dependencies:

Post by santiagorf »

Thank you guys!!
Moving the mate file solved the issue!!
I didn't mention I had also installed MATE since I didn't remember it was there. :oops:

I have two questions though.
1) Since now /etc/apt/preferences.d/mate no longer exists, will I be able to keep MATE up to date?
2)Why mate was conflicting with KDE packages?
kurotsugi

Re: [solved]unable to install kcachegrind, unmet dependencie

Post by kurotsugi »

yes it will. but it might be better if we check your repository once more.

Code: Select all

inxi -r 
apt-cache policy mate-desktop
mate is not conflicting with KDE. it's just that you might have installed mate from outside mint/debian's repo and unconciously block the other repo.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: unable to install kcachegrind, unmet dependencies:

Post by Monsta »

santiagorf wrote:1) Since now /etc/apt/preferences.d/mate no longer exists, will I be able to keep MATE up to date?
2)Why mate was conflicting with KDE packages?
Looks like you still don't understand it. You're thinking in terms of some packages conflicting with each other, and at the same time you're toying with the repository priorities. This is not recommended for newbies and totally not recommended to do without thinking first.
santiagorf wrote:

Code: Select all

 cat /etc/apt/preferences.d/mate
Package: *
Pin: release a=testing
Pin-Priority: 10
This essentially sets a very low priority for any package coming from Debian Testing, including LMDE's Update Pack repos (because they are basically the frozen snapshots of Testing repos). This is the reason your system is not up-to-date - even dist-upgrade won't upgrade the packages because it complies with the repo priorities.

For now, remove that file and run

Code: Select all

apt update && apt dist-upgrade
to fully upgrade the system and don't touch the preferences files without a good reason.

For the future reading, if you'll want to know more about how the repo priorities/preferences work, carefully read this:

Code: Select all

man apt_preferences
and also LMDE FAQ, section "AptPinning".
santiagorf

Re: [solved]unable to install kcachegrind, unmet dependencie

Post by santiagorf »

Code: Select all

inxi -r 
Repos:     Active apt sources in file: /etc/apt/sources.list.d/google-talkplugin.list
           deb http://dl.google.com/linux/talkplugin/deb/ stable main
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://mint-packages.c3sl.ufpr.br debian main upstream import
           deb http://debian.linuxmint.com/latest/ testing main contrib non-free
           deb http://debian.linuxmint.com/latest/security testing/updates main contrib non-free
           deb http://debian.linuxmint.com/latest/multimedia testing main non-free
           deb http://extra.linuxmint.com debian main

Code: Select all



I'll have a look at the references you gave.
Locked

Return to “LMDE Archive”