Many broken packages, and missing depends.

Asked by michael

A few weeks ago there was a problem, I was troubleshooting, and made a big mistake. Don't know what I did, but it really messed up my computer. Many broken packages, and missing depends. Says it all! I did not check all programs to be auto-removed. Will never do that again. Most programs that have anything to do with KDE, are gone, or missing depends. I have tried to chase down missing depends, only to find more. The game Klickety can't be installed. Error: "Could not apply changes! Fix broken packages first". However Klickety can be installed from Ubuntu Software by using Source: dl.flathub.org. No idea what or where to find broken packages. From other programs I need to install, when I find the packages, all the error will say is: "Could not apply changes! Fix broken packages first". Have tried many solutions from Launchpad and Google, I have gotten a few working, most still do not. This problem is not just with KDE packages. Bibletime will not load. Probably more. Using Gnome. Ubuntu 18.04 completely updated. Any help is greatly appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output that you receive for the following commands:

uname -a
lsb_release -crid
sudo dpkg --configure -a
sudo dpkg --audit
apt --simulate install -f

Revision history for this message
michael (yellupcm-gmail) said :
#2

michael@michael-Inspiron-531:~$ uname -a
Linux michael-Inspiron-531 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
michael@michael-Inspiron-531:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
michael@michael-Inspiron-531:~$ sudo dpkg --configure -a
[sudo] password for michael:
michael@michael-Inspiron-531:~$ sudo dpkg --audit
michael@michael-Inspiron-531:~$ apt --simulate install -f
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libattica0.4 libgpgme++2v5 libkcmutils4 libkde3support4 libkdeclarative5 libkdesu5 libkdeui5
  libkdewebkit5 libkdnssd4 libkemoticons4 libkf5waylandclient5 libkfile4 libkhtml5 libkio5
  libkjsapi4 libkjsembed4 libkmediaplayer4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkparts4
  libkpty4 libkrosscore4 libktexteditor4 libkxmlrpcclient4 libnl-route-3-200 libntrack-qt4-1
  libntrack0 libphonon4 libplasma3 libpolkit-qt-1-1 libqca2 libqca2-plugins libqtwebkit4 libsolid4
  libstreamanalyzer0v5 libstreams0v5 libthreadweaver4 libutempter0 ntrack-module-libnl-0
  oxygen-icon-theme phonon phonon-backend-gstreamer phonon-backend-gstreamer-common
  plasma-scriptengine-javascript
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
michael@michael-Inspiron-531:~$

I will check all of 'apt autoremove' before removal.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

The system does not show any broken package or missing dependency.

What output do you receive for

sudo apt install klickety
and
sudo apt install bibletime

Revision history for this message
michael (yellupcm-gmail) said :
#4

michael@michael-Inspiron-531:~$ sudo apt install klickety
[sudo] password for michael:
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:
 klickety : Depends: kio but it is not going to be installed
            Depends: libkf5configwidgets5 (>= 4.96.0) but it is not going to be installed
            Depends: libkf5i18n5 (>= 4.97.0) but it is not going to be installed
            Depends: libkf5kdegames7 (>= 4:14.12.50) but it is not going to be installed
            Depends: libkf5kiowidgets5 (>= 4.96.0) but it is not going to be installed
            Depends: libkf5xmlgui-bin but it is not going to be installed
            Depends: libkf5xmlgui5 (>= 4.98.0) but it is not going to be installed
            Recommends: khelpcenter but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
michael@michael-Inspiron-531:~$ sudo apt install bibletime
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:
 bibletime : Depends: libqt5webenginewidgets5 (>= 5.7.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
michael@michael-Inspiron-531:~$

Revision history for this message
michael (yellupcm-gmail) said :
#5

This is what I get, each broken package, has other broken packages.

michael@michael-Inspiron-531:~$ sudo apt-get install libqt5webenginewidgets5
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:
 libqt5webenginewidgets5 : Depends: libqt5webenginecore5 (>= 5.9.5+dfsg-0ubuntu2) but it is not going to be installed
                           Depends: qtbase-abi-5-9-5
E: Unable to correct problems, you have held broken packages.
michael@michael-Inspiron-531:~$

Revision history for this message
michael (yellupcm-gmail) said :
#6

Depends: qtbase-abi-5-9-5

michael@michael-Inspiron-531:~$ sudo apt-get install qtbase-abi-5-9-5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package qtbase-abi-5-9-5 is a virtual package provided by:
  libqt5core5a 5.9.5+dfsg-0ubuntu2.1 [Not candidate version]
  libqt5core5a 5.9.5+dfsg-0ubuntu2.3 [Not candidate version]
  libqt5core5a 5.9.5+dfsg-0ubuntu1 [Not candidate version]

E: Package 'qtbase-abi-5-9-5' has no installation candidate
michael@michael-Inspiron-531:~$

This happens over and over, with depends or broken packages.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Maybe a PPA is interfering.

What is the output of

sudo apt update
apt-cache policy libqt5webenginewidgets5 libqt5core5a
grep '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d/*.list

Revision history for this message
michael (yellupcm-gmail) said :
#8

michael@michael-Inspiron-531:~$ sudo apt update
[sudo] password for michael:
Get:1 file:/var/cache/apt-build/repository apt-build InRelease
Ign:1 file:/var/cache/apt-build/repository apt-build InRelease
Get:2 file:/var/cache/apt-build/repository apt-build Release [1,530 B]
Get:2 file:/var/cache/apt-build/repository apt-build Release [1,530 B]
Get:3 file:/var/cache/apt-build/repository apt-build Release.gpg
Ign:3 file:/var/cache/apt-build/repository apt-build Release.gpg
Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://dl.google.com/linux/chrome/deb stable Release
Hit:7 http://ppa.launchpad.net/mc3man/bionic-media/ubuntu bionic InRelease
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:9 http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu bionic InRelease [15.4 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:11 http://ppa.launchpad.net/panfaust/qt2/ubuntu bionic InRelease
Hit:13 http://ppa.launchpad.net/tomtomtom/youtube-dl/ubuntu bionic InRelease
Get:14 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:15 http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu bionic/main i386 Packages [3,432 B]
Get:16 http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu bionic/main amd64 Packages [3,428 B]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [294 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [73.8 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [143 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 128x128 Icons [355 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [253 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [200 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [436 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 128x128 Icons [932 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:26 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7,916 B]
Get:27 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38.5 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [17.6 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41.5 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-security/main DEP-11 128x128 Icons [108 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42.2 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [111 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 128x128 Icons [181 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Fetched 3,516 kB in 14s (255 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'file:/var/cache/apt-build/repository apt-build InRelease' doesn't support architecture 'i386'
michael@michael-Inspiron-531:~$ apt-cache policy libqt5webenginewidgets5 libqt5core5a
libqt5webenginewidgets5:
  Installed: (none)
  Candidate: 5.9.5+dfsg-0ubuntu2
  Version table:
     5.9.5+dfsg-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
libqt5core5a:
  Installed: 5.11.1+dfsg-7ubuntu1~0~ubuntu18.04~ppa1
  Candidate: 5.11.1+dfsg-7ubuntu1~0~ubuntu18.04~ppa1
  Version table:
 *** 5.11.1+dfsg-7ubuntu1~0~ubuntu18.04~ppa1 500
        500 http://ppa.launchpad.net/panfaust/qt2/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
     5.9.5+dfsg-0ubuntu2.3 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
     5.9.5+dfsg-0ubuntu2.1 500
        500 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
     5.9.5+dfsg-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
michael@michael-Inspiron-531:~$ grep '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-updates universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-updates multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-security main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-security universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-security multiverse
/etc/apt/sources.list.d/apt-build.list:deb [trusted=yes] file:/var/cache/apt-build/repository apt-build 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/mc3man-ubuntu-bionic-media-bionic.list:deb http://ppa.launchpad.net/mc3man/bionic-media/ubuntu bionic main
/etc/apt/sources.list.d/mc3man-ubuntu-mpv-tests-bionic.list:deb http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu bionic main
/etc/apt/sources.list.d/panfaust-ubuntu-qt2-bionic.list:deb http://ppa.launchpad.net/panfaust/qt2/ubuntu bionic main
/etc/apt/sources.list.d/tomtomtom-ubuntu-youtube-dl-bionic.list:deb http://ppa.launchpad.net/tomtomtom/youtube-dl/ubuntu bionic main
michael@michael-Inspiron-531:~$

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#9

I have expected something like this.

You have enabled the PPA ppa:panfaust/qt2
This PPA contains a version of libqt5core5a which provides qtbase-abi-5-11-0, but not qtbase-abi-5-9-5 as needed by libqt5webenginewidgets5 which in turn is needed by bibletime.

You have to decide:
Either continue using ppa:panfaust/qt2 (for whatever reason you have enabled that one),
or get rid of that PPA, and the dependency problem for bibletime should be resolved.

The case for klickety and the KDE libs will probably be similar.

Revision history for this message
michael (yellupcm-gmail) said :
#10

Manfred
Please see question 681154. I had noticed Minitube 3.2 was now on my computer, and working well. I do not remember installing the PPA. I assumed that, Minitube had been updated, and was working. Now I will decide on which way to go. Many thanks!!!

Revision history for this message
michael (yellupcm-gmail) said :
#11

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

Summing up:
minitube 3.* and bibletime 2.11.1 apparently cannot be installed on Ubuntu bionic at the same time.

What you could try is manually installing bibletime (and bibletime-data) version 2.11.2-11 for disco. Its dependencies should match with the versions that you have installed from the PPA.
Maybe also the version of bibletime from ppa:jonathonf/bibletime might work on your system.

Revision history for this message
michael (yellupcm-gmail) said :
#13

Thanks Manfred.
Am researching further.