libqt5sql5 is not installed

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
tsepati
Level 1
Level 1
Posts: 17
Joined: Fri Jul 24, 2020 8:13 pm

libqt5sql5 is not installed

Post by tsepati »

Dear helpful community,

I am very excited about the new 1.0 version of Straweberry, but was unable to install it on Linux Mint.
I followed the instructions here: https://www.strawberrymusicplayer.org/#download

After adding the repository:

Code: Select all

add-apt-repository ppa:jonaski/strawberry
and updating apt, I try

Code: Select all

apt-get install strawberry
and I get:

Code: Select all

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:
 strawberry : Depends: libqt5sql5 (>= 5.0.2) but it is not going to be installed
              Depends: libqt5sql5-sqlite but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
My config:

Code: Select all

System:    Kernel: 5.4.0-88-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 5.0.5 
           wm: muffin dm: LightDM Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 

Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
           1: deb http: //repository.spotify.com stable non-free
           2: deb [arch=amd64] https: //repo.skype.com/deb stable main
           No active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           Active apt repos in: /etc/apt/sources.list.d/jonaski-strawberry-focal.list 
           1: deb http: //ppa.launchpad.net/jonaski/strawberry/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/obsproject-obs-studio-focal.list 
           1: deb http: //ppa.launchpad.net/obsproject/obs-studio/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //mirror.ufscar.br/mint-archive uma main upstream import backport
           2: deb http: //mirror.ufscar.br/ubuntu focal main restricted universe multiverse
           3: deb http: //mirror.ufscar.br/ubuntu focal-updates main restricted universe multiverse
           4: deb http: //mirror.ufscar.br/ubuntu focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/zotero.list 
           1: deb https: //github.com/retorquere/zotero-deb/releases/download/apt-get/ ./
I have tried to install libqt5sql5 with apt-get install separately, without success:

Code: Select all

sudo apt-get install libqt5sql5
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:
 libqt5sql5 : Depends: qtbase-abi-5-12-8
              Recommends: libqt5sql5-sqlite but it is not going to be installed or
                          libqt5sql5-mysql but it is not going to be installed or
                          libqt5sql5-odbc but it is not going to be installed or
                          libqt5sql5-psql but it is not going to be installed or
                          libqt5sql5-tds but it is not going to be installed or
                          libqt5sql5-ibase but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Strawberry's developer recommend that I ask here.
I have seen viewtopic.php?f=47&t=351775&p=2031418 this page, but I do not think that this situation is transferrable, there is only one current distribution of Strawberry; I would rather understand how to install these qt-sql-5-libraries.

Any ideas? Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
RIH
Level 9
Level 9
Posts: 2858
Joined: Sat Aug 22, 2015 3:47 am

Re: libqt5sql5 is not installed

Post by RIH »

Why don't you just install the .deb that is available from your link.
straw.png
It will take care of the (4) currently unloaded dependencies automatically..

If you want to do it manually, then load the dependencies first through the Synaptic Package Manager, but that seems like a lot of effort for little reason..
Image
tsepati
Level 1
Level 1
Posts: 17
Joined: Fri Jul 24, 2020 8:13 pm

Re: libqt5sql5 is not installed

Post by tsepati »

Thanks a lot for the quick reply!

Trying that deb-package for Ubuntu was in fact the first thing I did. I get the same error messages. Here are some screenshots (I do not know how to directly embed them; pCloud does not give me a direct URL it seems):

This is the choice to download and install: https://e.pcloud.link/publink/show?code ... Hdxus8NACy

Then I get this Message that the program would be available in "a Software Channel" -- but I cannot find it in Synaptics and I do not know which other software channel they might be referring to. https://e.pcloud.link/publink/show?code ... CsJ4wW3dx7

So I proceed and click "Install Package" here: https://e.pcloud.link/publink/show?code ... OA5SOmXAPX.

Result: I get an error report with basically the same messages (in a very unpractical window which does not allow to expand the system error messages):
https://e.pcloud.link/publink/show?code ... EaIu8DuOPV

There is not enough information for my level of understanding to grasp what I should be doing in order to overcome this problem.
This is what happens when I try to install the libqt5sql5 package:

Code: Select all

...:~$ sudo apt-get install libqt5sql5
[sudo] password for sebastian:              
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libqt5sql5 : Depends: qtbase-abi-5-12-8
              Recommends: libqt5sql5-sqlite but it is not going to be installed or
                          libqt5sql5-mysql but it is not going to be installed or
                          libqt5sql5-odbc but it is not going to be installed or
                          libqt5sql5-psql but it is not going to be installed or
                          libqt5sql5-tds but it is not going to be installed or
                          libqt5sql5-ibase but it is not going to be installed
 strawberry : Depends: libqt5sql5-sqlite but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

...:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  strawberry
0 upgraded, 0 newly installed, 1 to remove and 53 not upgraded.
1 not fully installed or removed.
After this operation, 15,2 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 614446 files and directories currently installed.)
Removing strawberry (1.0-focal) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24+linuxmint1) ...
So basically, apt fix-broken uninstalls Strawberry, and everything is as it was, apparently.

Thanks again for looking into this! I am intrigued to read what you have to suggest.
RIH
Level 9
Level 9
Posts: 2858
Joined: Sat Aug 22, 2015 3:47 am

Re: libqt5sql5 is not installed

Post by RIH »

Ah, where we differ on installing the .deb file is right at the start.
In the past I have had issues with attempting to install .deb packages by agreeing to open with the GDebi installer right out of Firefox. Consequently, I always opt to download the package & then install from the downloaded .deb file.
This method has never failed me.
In the case of Strawberry, the installer warns me that there are 4 additional packages to install as well.
sraw 1.png

When clicking on Install Package, they are listed..
sraw 2.png
Clicking on Continue completes the installation..

You might want to run.

Code: Select all

sudo apt-get autoclean && sudo apt-get autoremove
in a terminal before you start, just to make sure all the old attempts are completely cleared away...
Image
tsepati
Level 1
Level 1
Posts: 17
Joined: Fri Jul 24, 2020 8:13 pm

Re: libqt5sql5 is not installed

Post by tsepati »

Thanks again, RIH!, sincerely,

but that did not work either, unfortunately.

If I download the package strawberry_1.0-focal_amd64.deb and try to install it manually with the GDeb installer, I get exactly the same messages as if I do that directly from Firefox/PaleMoon. The messages are:

Code: Select all

Selecting previously unselected package strawberry.
(Reading database ... 
[...]
(Reading database ... 100%%
(Reading database ... 614587 files and directories currently installed.)
Preparing to unpack .../strawberry_1.0-focal_amd64.deb ...
Unpacking strawberry (1.0-focal) ...
dpkg: dependency problems prevent configuration of strawberry:
 strawberry depends on libqt5sql5 (>= 5.0.2); however:
  Package libqt5sql5 is not installed.
 strawberry depends on libqt5sql5-sqlite; however:
  Package libqt5sql5-sqlite is not installed.

dpkg: error processing package strawberry (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24+linuxmint1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 strawberry
The same happens if I use the Synaptic Package Manager.
In Synaptics, I check for broken packages, before trying to install Strawberry, and Synaptic does not find any:
Picture no broken packages in Synaptic

Then I find Strawberry 1.0 in the repositories and mark it for installation:
Synaptic: found Strawberry, marked for installation

When I try to install, I get an unspecific error message window:
Synaptic error message when trying to install Synaptics

When I now try to fix broken packages, I get this window:
Synaptic, result: Fix broken packages

I unselect/unmark Strawberry and repeat the process of fixing broken packages, and Synaptic does not find anything:
Synaptic: no broken packages if Strawberry unmarked

So there is something in the installation of Stawberry, apparently involving libqt5sql5, which does not permit the installation, neither via DGebi nor Synaptic.

Strawberry developer says this appears to be a Linux/Mint problem, the package installs fine elsewhere.

So I am still stuck.
RIH
Level 9
Level 9
Posts: 2858
Joined: Sat Aug 22, 2015 3:47 am

Re: libqt5sql5 is not installed

Post by RIH »

tsepati, how are you installing via GDebi?
You seem to have some terminal output but are you getting the screen I showed above with GDebi noting & adding the 4 additional packages?

I have just uninstalled Strawberry, cleaned up my system with sudo apt-get autoclean && sudo apt-get autoremove & re-installed it with GDebi.
All worked perfectly & Strawberry is working fine, so it is not a standard install of Mint 20.2 that is the issue either.
Image
RIH
Level 9
Level 9
Posts: 2858
Joined: Sat Aug 22, 2015 3:47 am

Re: libqt5sql5 is not installed

Post by RIH »

Strawberry is not in the Mint repositories, so Synaptic will only find it if you already have it installed.

I think that you should search for it in Synaptic.
If it appears then you should right mouse click on it & select Mark for compete removal.
Left mouse click on the Apply (Gear) Icon to remove it.
Close Synaptic
Open a terminal & enter

Code: Select all

sudo apt-get autoclean && sudo apt-get autoremove
Enter Y when questioned if to continue.
Close Terminal.
Find downloaded .deb file in Nemo & right mouse click on it select Open with GDebi Package Installer.
Left Mouse Click Install
Left Mouse Click Continue when 4 additional packages appear.
Close GDebi..
Image
Locked

Return to “Software & Applications”