Conflict between libqt4-dev and libqt4-opengl-dev

Bug #228148 reported by Brian Rogers
52
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Now that the 4.4.0 backport is available in Hardy, I get the following error when trying to install libqt4-opengl-dev:

E: /var/cache/apt/archives/libqt4-opengl-dev_4.4.0-1ubuntu1~hardy1_amd64.deb: trying to overwrite `/usr/lib/pkgconfig/QtOpenGL.pc', which is also in package libqt4-dev

Revision history for this message
jespa (josemiguel-espadero) wrote :

The same problem happens on i386 architecture, making impossible to develop using qt4 with openGL support:

 $ sudo apt-get install libqt4-opengl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libqt4-opengl-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/57.1kB of archives.
After this operation, 311kB of additional disk space will be used.
(Reading database ... 235153 files and directories currently installed.)
Unpacking libqt4-opengl-dev (from .../libqt4-opengl-dev_4.4.0-1ubuntu1~hardy1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libqt4-opengl-dev_4.4.0-1ubuntu1~hardy1_i386.deb (--unpack):
 trying to overwrite `/usr/lib/pkgconfig/QtOpenGL.pc', which is also in package libqt4-dev

Changed in qt4-x11:
status: New → Confirmed
Revision history for this message
tripiana (tripiana) wrote :

I had the same error

Revision history for this message
dotx (setcode) wrote :

I have the same error too...
I'm on hardy 32 bits

Revision history for this message
Paul Bransford (draeath) wrote :

Same error, x86_64

My solution was to force dpkg to overwrite it, but I don't know 100% if there is actually any difference between those files. I will look into that...

Revision history for this message
Paul Bransford (draeath) wrote :

The files are 100% the same. Both have an MD5 of 2260f4c6f8867919d3f337684448aa8e on the amd64 arch. Forcing the install will not harm anything, but this package weirdness needs a fix...

Revision history for this message
Konrad Materka (kmaterka) wrote :

This package is essential for developers whose use OpenGl, like me ;)
Forcing install helps of course:

sudo dpkg --force-all -i /var/cache/apt/archives/libqt4-opengl-dev_4.4.0-1ubuntu1~hardy1_i386.deb

Revision history for this message
Paul Bransford (draeath) wrote : Re: [Bug 228148] Re: Conflict between libqt4-dev and libqt4-opengl-dev

Rather than --force-all, what works and is safer is --force-overwrite.

Revision history for this message
Paul Bransford (draeath) wrote :

Latest update fixed this on amd64 arch, can anyone confirm on i386?

Revision history for this message
Tom Axel (tom-bobach) wrote :

confirmed for i386

Revision history for this message
Paul Bransford (draeath) wrote :

Issue has been corrected in an update, as it is a packaging bug no patches etc. are required. Closing bug...

Changed in qt4-x11:
status: Confirmed → Fix Released
Revision history for this message
Brian Rogers (brian-rogers) wrote :

This hasn't been fixed. Run 'sudo apt-get remove libqt4-dev libqt4-opengl-dev' followed by 'sudo apt-get install libqt4-dev libqt4-opengl-dev':
Unpacking libqt4-dev (from .../libqt4-dev_4.4.0-1ubuntu3~hardy1_amd64.deb) ...
Unpacking libqt4-opengl-dev (from .../libqt4-opengl-dev_4.4.0-1ubuntu3~hardy1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libqt4-opengl-dev_4.4.0-1ubuntu3~hardy1_amd64.deb (--unpack):
 trying to overwrite `/usr/lib/pkgconfig/QtOpenGL.pc', which is also in package libqt4-dev
Errors were encountered while processing:
 /var/cache/apt/archives/libqt4-opengl-dev_4.4.0-1ubuntu3~hardy1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

It appears that if you've done a --force-overwrite, the conflicting file will be "disowned" from libqt4-dev, and later installs of libqt4-opengl-dev will go fine until you reinstall libqt4-dev.

Changed in qt4-x11:
status: Fix Released → Confirmed
Revision history for this message
nexus (bugie) wrote :

I can confirm this - problem's still there.

Revision history for this message
tdi_k (tdik123) wrote :

Bug is still there when re-installed both packages

Revision history for this message
Konrad Materka (kmaterka) wrote :

Quite irritating... After todays upgrade bug still exist...

Revision history for this message
Paul Bransford (draeath) wrote :

If I knew how to fix it I would - but it's an automated build so I'd
rather not put a wrench in the works. But your right... this is a bit
long to fix such a bug.

Revision history for this message
Konrad Materka (kmaterka) wrote :

Sorry to be rude. Sometimes I'm just impatient...

Revision history for this message
Seth Jackson (seth-a-jackson) wrote :

So is anything happening here? My lab has a set of development computers relying on this package, and they are all stopped. Why is there no importance assigned to the bug?

Revision history for this message
Tremaine Lea (tremaine) wrote :

Same error here

E: /var/cache/apt/archives/libqt4-dev_4.4.0-1ubuntu4~hardy1_amd64.deb: trying to overwrite `/usr/lib/pkgconfig/QtOpenGL.pc', which is also in package libqt4-opengl-dev

Revision history for this message
Paul Bransford (draeath) wrote :

This needs to getr fixed. Its an easy fix for the maintainer - not
something we can patch. this should have a high severity.

Revision history for this message
Dave H (zulunix) wrote :

Any news on when this will get fixed? Is there a way around this or a fix out there instead of waiting for an updated package? This ones frustrating..

Revision history for this message
Johannes Simon (johannes-simon) wrote :

Work-around:
sudo dpkg --force-overwrite -i /var/cache/apt/archives/libqt4-opengl-dev_4.4.0-1ubuntu4~hardy1_i386.deb

This is a really annoying bug. Please do fix it.

Revision history for this message
Dave H (zulunix) wrote :

Thanks for that, seems to be working for the time being.

Revision history for this message
Terence Simpson (tsimpson) wrote :

qt4-x11 (4.4.0-1ubuntu5~hardy1) hardy-backports; urgency=low

  * Automated backport upload; no source changes.

 -- Ubuntu Archive Auto-Backport <email address hidden> Mon, 19 May 2008 14:16:12 +0100

qt4-x11 (4.4.0-1ubuntu5) intrepid; urgency=low

  * Remove pkgconfig directory from libqt4-dev.install, it installed
    files that were in other packages

 -- Jonathan Riddell <email address hidden> Mon, 19 May 2008 12:52:59 +0100

Changed in qt4-x11:
status: Confirmed → Fix Released
Revision history for this message
EAB (adair-boder) wrote :

I am having the same issue with this package.
Is there a fix yet?

Revision history for this message
jespa (josemiguel-espadero) wrote :

I used --force to force to install both packages. There is a file that
will be overwritten, but the content of the file is the same in both
packages.

On Mon, Oct 13, 2008 at 4:09 AM, Zeth <email address hidden> wrote:
> I am having the same issue with this package.
> Is there a fix yet?
>
> --
> Conflict between libqt4-dev and libqt4-opengl-dev
> https://bugs.launchpad.net/bugs/228148
> You received this bug notification because you are a direct subscriber
> of the bug.
>
>

Revision history for this message
Paul Bransford (draeath) wrote :

After doing this, note that you may lose this file if you remove one of
the packages. Reinstalling the one you wish to keep would then restore
the file.

On Mon, 13 Oct 2008 4:35 am, jespa wrote:
> I used --force to force to install both packages. There is a file that
> will be overwritten, but the content of the file is the same in both
> packages.
>
>
> On Mon, Oct 13, 2008 at 4:09 AM, Zeth <email address hidden> wrote:
>> I am having the same issue with this package.
>> Is there a fix yet?
>>
>> --
>> Conflict between libqt4-dev and libqt4-opengl-dev
>> https://bugs.launchpad.net/bugs/228148
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>>
>>
>
> --
> Conflict between libqt4-dev and libqt4-opengl-dev
> https://bugs.launchpad.net/bugs/228148
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “qt4-x11” source package in Ubuntu: Fix Released
>
> Bug description:
> Now that the 4.4.0 backport is available in Hardy, I get the following
> error when trying to install libqt4-opengl-dev:
>
> E:
> /var/cache/apt/archives/libqt4-opengl-dev_4.4.0-1ubuntu1~hardy1_amd64.deb:
> trying to overwrite `/usr/lib/pkgconfig/QtOpenGL.pc', which is also in
> package libqt4-dev

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.