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

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:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Where did you get the deb from, please?

Revision history for this message
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!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

What is the output of:

lsb_release -a

Thanks

Revision history for this message
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:~#

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#5

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.

Revision history for this message
Neha Kumari (nkumari) said :
#6

Thanks for your support. Got your Point.

Revision history for this message
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