error when installing libqt0-ruby1.8-qt4 and libqt4-ruby at the same time

Bug #125865 reported by Adna rim
4
Affects Status Importance Assigned to Milestone
libqt4-ruby (Ubuntu)
Invalid
Medium
Unassigned
Feisty
Invalid
Undecided
Unassigned
qt4-qtruby (Ubuntu)
Fix Released
Undecided
Unassigned
Feisty
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: libqt4-ruby

Hi,
something wents wrong with installing the packages libqt0-ruby1.8-qt4 and libqt4-ruby at the same time. libqt0-ruby1.8-qt4 is needed for rbuic to convert QT *.ui files to ruby-rescoure files and libqt4-ruby is needed for using Qt4 inside ruby. But you can't install both from apt-get.

I'm getting these errors when installing:

$ sudo apt-get install libqt4-ruby
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Reading state information... Fertig
Die folgenden NEUEN Pakete werden installiert:
libqt4-ruby
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.
Es müssen 3344B Archive geholt werden.
Nach dem Auspacken werden 53,2kB Plattenplatz zusätzlich benutzt.
Hole:1 http://de.archive.ubuntu.com feisty/universe libqt4-ruby 1.4.6-2 [3344B]
Es wurden 3344B in 0s geholt (17,9kB/s)
Wähle vormals abgewähltes Paket libqt4-ruby.
(Lese Datenbank ... 212399 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke libqt4-ruby (aus .../libqt4-ruby_1.4.6-2_all.deb) ...
Richte libqt4-ruby ein (1.4.6-2) ...
$ sudo apt-get install libqt0-ruby1.8-qt4
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Reading state information... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
libsmokeqt1-qt4
Die folgenden NEUEN Pakete werden installiert:
libqt0-ruby1.8-qt4 libsmokeqt1-qt4
0 aktualisiert, 2 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.
Es müssen 1807kB Archive geholt werden.
Nach dem Auspacken werden 6668kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren [J/n]? j
Hole:1 http://de.archive.ubuntu.com feisty/universe libsmokeqt1-qt4 1.4.6-0ubuntu1 [1152kB]
Hole:2 http://de.archive.ubuntu.com feisty/universe libqt0-ruby1.8-qt4 1.4.6-0ubuntu1 [655kB]
Es wurden 1807kB in 5s geholt (328kB/s)
Wähle vormals abgewähltes Paket libsmokeqt1-qt4.
(Lese Datenbank ... 212405 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke libsmokeqt1-qt4 (aus .../libsmokeqt1-qt4_1.4.6-0ubuntu1_i386.deb) ...
Entpacke libqt0-ruby1.8-qt4 (aus .../libqt0-ruby1.8-qt4_1.4.6-0ubuntu1_i386.deb) ...
dpkg: Fehler beim Bearbeiten von /var/cache/apt/archives/libqt0-ruby1.8-qt4_1.4.6-0ubuntu1_i386.deb (--unpack):
Versuche, »/usr/bin/rbqtapi« zu überschreiben, welches auch in Paket libqt4-ruby1.8 ist
dpkg-deb: Unterprozess paste mit Signal (Broken pipe) getötet
Fehler traten auf beim Bearbeiten von:
/var/cache/apt/archives/libqt0-ruby1.8-qt4_1.4.6-0ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$

I can install libqt4-ruby or the other package from apt-get but not both which is needed. Someone knows a workaround for this?

Revision history for this message
Scott Kitterman (kitterman) wrote :

If you would translate:

dpkg: Fehler beim Bearbeiten von /var/cache/apt/archives/libqt0-ruby1.8-qt4_1.4.6-0ubuntu1_i386.deb (--unpack):
Versuche, »/usr/bin/rbqtapi« zu überschreiben, welches auch in Paket libqt4-ruby1.8 ist
dpkg-deb: Unterprozess paste mit Signal (Broken pipe) getötet
Fehler traten auf beim Bearbeiten von:

to english, I may be able to help.

Revision history for this message
Adna rim (adnarim) wrote :

hi, thats the translation:

dpkg: Error while processing of /var/cache/apt/archives/libqt0-ruby1.8-qt4_1.4.6-0ubuntu1_i386.deb (--unpack):
Try to overwrite »/usr/bin/rbqtapi«, which is also in the packet libqt4-ruby1.8
dpkg-deb: subprocess paste killed with signal (broken pipe)
error happend while processing:

Revision history for this message
Scott Kitterman (kitterman) wrote :

This is definitely a bug then.

The work around is to decide which package's version of /usr/bin/rbqtapi you want to keep (it may not matter), install the package that has the one you don't want, then sudo rm /usr/bin/rbqtapi, and install the second. That should work.

What Ubuntu version are you using?

Changed in libqt4-ruby:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Adna rim (adnarim) wrote :

I'm using the newest Ubuntu Feisty Fawn

Revision history for this message
Adna rim (adnarim) wrote :

Hi thanks for your help but your workaround doesn't work :( I deleted /usr/bin/rbqtapi but the error is exactly the same. But the folder is defenitly deleted!!

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 125865] Re: error when installing libqt0-ruby1.8-qt4 and libqt4-ruby at the same time

Sorry about that. I should have time to investigate further in the next
day.

Revision history for this message
Adna rim (adnarim) wrote :

Hi,
I found out that the debian packages seemed to have the same problem but fixed it some months ago in libqt4-ruby (1.4.7-3):
http://packages.debian.org/changelogs/pool/main/libq/libqt4-ruby/libqt4-ruby_1.4.9-1/changelog

 * Add diversions of usr/bin/rbqtapi and usr/share/man/man1/rbqtapi.1.gz
     to really remove the conflict with libqt0-ruby1.8
 * Renamed qtrubyinit to qt4rubyinit to avoid conflict with libqt0-ruby1.8

but I still couldn't find any workaround yet..

Revision history for this message
Scott Kitterman (kitterman) wrote :

Well you should have that change already since the current Gutsy version is 1.4.7-4. Are you using Ubuntu packages for this?

Revision history for this message
Adna rim (adnarim) wrote :

huh sorry I don't exaclty understand what you mean? I'm using the normal Ubuntu Feisty Fawn repos (universe) to install these packages. Here you can watch the repos online:

http://packages.ubuntu.com/feisty/interpreters/libqt4-ruby
---> libqt4-ruby (1.4.6-2)
http://packages.ubuntu.com/feisty/interpreters/libqt0-ruby1.8-qt4
---> libqt0-ruby1.8-qt4 (1.4.6-0ubuntu1)

where should I get this updated version from?

greets

Revision history for this message
Scott Kitterman (kitterman) wrote :

Odd. When I looked it up in Launchpad, the Feisty packages don't show:

https://launchpad.net/ubuntu/+source/libqt4-ruby

OK. Well I think I know how to fix this then. Thanks for all the input.

Changed in libqt4-ruby:
assignee: nobody → kitterman
status: Confirmed → In Progress
Revision history for this message
Scott Kitterman (kitterman) wrote :

Already fixed in Gutsy

Changed in libqt4-ruby:
status: New → Invalid
Changed in qt4-qtruby:
assignee: nobody → kitterman
importance: Undecided → Medium
status: New → In Progress
Changed in libqt4-ruby:
assignee: kitterman → nobody
status: In Progress → Invalid
Revision history for this message
Adna rim (adnarim) wrote :

what does this now exaclty mean? Can I install the gutsy packets on feisty fawn or will the feisty packets be fixed anyway?

Revision history for this message
Scott Kitterman (kitterman) wrote :

It means that from a development perspective the bug is fixed as the Gutsy versions have the fixed versions from Debian. From your perspective in Feisty there is a broken package that needs to get fixed. I'm preparing an updated package that will hopefully fix it, but it will take some time to get it tested and published.

Revision history for this message
Adna rim (adnarim) wrote :

I would be glad to test it for you, if you updated the package !

Revision history for this message
Scott Kitterman (kitterman) wrote :

Well I thought I understood how to fix this one, but I'm not stumped. In addition to working around the actual conflict in qt4-qt-ruby, it's necessary to remove a conflicts in libqt-ruby-qt4 and I can't get that to build without crashing. I do hope someone else takes a stab at this, but I'm afraid it turns out to be beyond me.

Changed in qt4-qtruby:
assignee: kitterman → nobody
status: In Progress → Triaged
Revision history for this message
Adna rim (adnarim) wrote :

k thanks nevertheless maybe someone else can handle this

Revision history for this message
Adna rim (adnarim) wrote :

still unfixed :(

Daniel T Chen (crimsun)
Changed in qt4-qtruby:
status: Triaged → Confirmed
Revision history for this message
Daniel T Chen (crimsun) wrote :

EOL for feisty support.

Changed in qt4-qtruby:
status: Confirmed → Won't Fix
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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