libqtgui4 (4:4.8.7+dfsg-5ubuntu2) depends on libqt4-declarative_4.8.7+dfsg-5ubuntu2_amd64.deb and libqt4-declarative_4.8.7+dfsg-5ubuntu2_amd64.deb depends on libqt4gui. How to configure these two

Asked by Neha Kumari on 2020-06-17

I am trying to install libqtgui4_4.8.7+dfsg-5ubuntu2_amd64.deb but libqtgui4_4.8.7+dfsg-5ubuntu2_amd64.deb depends on libqt4-declarative_4.8.7+dfsg-5ubuntu2_amd64.deb and in return libqt4-declarative_4.8.7+dfsg-5ubuntu2_amd64.deb depends on libqtgui4_4.8.7+dfsg-5ubuntu2_amd64.deb. How to resolve this infinite loop? Below is the out from my Virtual Machine:

root@vm-2-1:~# dpkg -i libqtgui4_4.8.7+dfsg-5ubuntu2_amd64.deb
(Reading database ... 30959 files and directories currently installed.)
Preparing to unpack libqtgui4_4.8.7+dfsg-5ubuntu2_amd64.deb ...
Unpacking libqtgui4:amd64 (4:4.8.7+dfsg-5ubuntu2) over (4:4.8.7+dfsg-5ubuntu2) ...
dpkg: dependency problems prevent configuration of libqtgui4:amd64:
 libqtgui4:amd64 depends on libqt4-declarative (= 4:4.8.7+dfsg-5ubuntu2); however:
  Package libqt4-declarative:amd64 is not configured yet.

dpkg: error processing package libqtgui4:amd64 (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Errors were encountered while processing:
 libqtgui4:amd64
root@vm-2-1:~# dpkg -i libqt4-declarative_4.8.7+dfsg-5ubuntu2_amd64.deb
(Reading database ... 30959 files and directories currently installed.)
Preparing to unpack libqt4-declarative_4.8.7+dfsg-5ubuntu2_amd64.deb ...
Unpacking libqt4-declarative:amd64 (4:4.8.7+dfsg-5ubuntu2) over (4:4.8.7+dfsg-5ubuntu2) ...
dpkg: dependency problems prevent configuration of libqt4-declarative:amd64:
 libqt4-declarative:amd64 depends on libqtgui4 (= 4:4.8.7+dfsg-5ubuntu2); however:
  Package libqtgui4:amd64 is not configured yet.

dpkg: error processing package libqt4-declarative:amd64 (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Errors were encountered while processing:
 libqt4-declarative:amd64

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu qt4-x11 Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2020-06-18
Last query:
2020-06-18
Last reply:
2020-06-18

Where did you get the deb from, please?

Neha Kumari (nkumari) said : #2

I used the below two link to download the deb files:

https://packages.ubuntu.com/xenial/libqt4-declarative
and
https://packages.ubuntu.com/xenial/libqtgui4

Thanks!

What is the output of:

lsb_release -a

Thanks

Neha Kumari (nkumari) said : #4

root@vm-2-1:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.12 (stretch)
Release: 9.12
Codename: stretch
root@vm-2-1:~#

Then you want the Debian forum here:
http://forums.debian.net/

Debian and Ubuntu packages have different dependencies and you will get a big mess if you mix packages between them. The Debian guys can advise. This is Ubuntu support only.

Neha Kumari (nkumari) said : #6

Thanks for your support. Got your Point.

Manfred Hampl (m-hampl) said : #7

Hint: You have to provide both package names in one command

dpkg -i libqtgui4_4.8.7+dfsg-5ubuntu2_amd64.deb libqt4-declarative_4.8.7+dfsg-5ubuntu2_amd64.deb