realXtend/naali — Issue #353: Build-ubuntu-deps.bash cannot decide which libraries are needed to apt-get.
Author: juj
Created: 2012-02-10 16:37:27+00:00
State: open
Labels: Bug

Reinstalled a fresh Ubuntu 11.10 in a VM, and ran build-ubuntu-deps.bash for the first time, and it installed several packages.

However, immediately after that running the second time gives the following output:

+ sudo aptitude -y install git-core python-dev libogg-dev libvorbis-dev build-essential g++ libogre-dev libboost-all-dev ccache libqt4-dev python-dev freeglut3-dev libxml2-dev cmake libalut-dev libtheora-dev liboil0.3-dev mercurial unzip xsltproc libqtscript4-qtbindings
[sudo] password for ubuntu:
The following packages will be upgraded:
libqt4-dbus libqt4-declarative libqt4-designer libqt4-dev libqt4-help
libqt4-network libqt4-opengl libqt4-opengl-dev libqt4-qt3support
libqt4-script libqt4-scripttools libqt4-sql libqt4-svg libqt4-test
libqt4-xml libqt4-xmlpatterns libqtcore4 libqtgui4 libxml2 libxml2-dev
mercurial mercurial-common qt4-linguist-tools qt4-qmake
24 packages upgraded, 0 newly installed, 0 to remove and 344 not upgraded.
Need to get 23.2 MB of archives. After unpacking 0 B will be used.
The following packages have unmet dependencies:
qdbus: Depends: libqt4-dbus (= 4:4.7.4-0ubuntu8) but 4:4.7.4-0ubuntu8.1 is to be installed.
Depends: libqt4-xml (= 4:4.7.4-0ubuntu8) but 4:4.7.4-0ubuntu8.1 is to be installed.
Depends: libqtcore4 (= 4:4.7.4-0ubuntu8) but 4:4.7.4-0ubuntu8.1 is to be installed.
libqt4-sql-mysql: Depends: libqt4-sql (= 4:4.7.4-0ubuntu8) but 4:4.7.4-0ubuntu8.1 is to be installed.
Depends: libqtcore4 (= 4:4.7.4-0ubuntu8) but 4:4.7.4-0ubuntu8.1 is to be installed.
The following actions will resolve these dependencies:

Remove the following packages:
1) appmenu-qt
2) libdbusmenu-qt2
3) libdconf-qt0
4) libphonon4
5) libqt4-dbus
6) libqt4-declarative
7) libqt4-designer
8) libqt4-dev
9) libqt4-help
10) libqt4-network
11) libqt4-opengl
12) libqt4-opengl-dev
13) libqt4-qt3support
14) libqt4-script
15) libqt4-scripttools
16) libqt4-sql-mysql
17) libqt4-svg
18) libqt4-xmlpatterns
19) libqtbamf1
20) libqtdee2
21) libqtgconf1
22) libqtgui4
23) libqtscript4-core
24) libqtscript4-gui
25) libqtscript4-network
26) libqtscript4-opengl
27) libqtscript4-phonon
28) libqtscript4-qtbindings
29) libqtscript4-sql
30) libqtscript4-svg
31) libqtscript4-uitools
32) libqtscript4-webkit
33) libqtscript4-xml
34) libqtscript4-xmlpatterns
35) libqtwebkit-dev
36) libqtwebkit4
37) libunity-2d-private0
38) qdbus
39) qt-at-spi
40) sni-qt
41) ubuntu-desktop
42) unity-2d
43) unity-2d-launcher
44) unity-2d-panel
45) unity-2d-places
46) unity-2d-spread

Leave the following dependencies unresolved:
47) indicator-appmenu recommends appmenu-qt
48) ubuntu-desktop recommends qt-at-spi
49) ubuntu-desktop recommends sni-qt
50) libqt4-sql recommends libqt4-sql-mysql | libqt4-sql-odbc | libqt4-sql-ps

The following packages will be REMOVED:
appmenu-qt{a} libdbusmenu-qt2{a} libdconf-qt0{a} libphonon4{a}
libqt4-dbus{a} libqt4-declarative{a} libqt4-designer{a} libqt4-dev{a}
libqt4-help{a} libqt4-network{a} libqt4-opengl{a} libqt4-opengl-dev{a}
libqt4-qt3support{a} libqt4-script{a} libqt4-scripttools{a}
libqt4-sql-mysql{a} libqt4-svg{a} libqt4-test{u} libqt4-xmlpatterns{a}
libqtbamf1{a} libqtdee2{a} libqtgconf1{a} libqtgui4{a}
libqtscript4-core{a} libqtscript4-gui{a} libqtscript4-network{a}
libqtscript4-opengl{a} libqtscript4-phonon{a} libqtscript4-qtbindings{a}
libqtscript4-sql{a} libqtscript4-svg{a} libqtscript4-uitools{a}
libqtscript4-webkit{a} libqtscript4-xml{a} libqtscript4-xmlpatterns{a}
libqtwebkit-dev{a} libqtwebkit4{a} libunity-2d-private0{a} qdbus{a}
qt-at-spi{a} qt4-linguist-tools{u} qt4-qmake{u} sni-qt{a}
ubuntu-desktop{a} unity-2d{a} unity-2d-launcher{a} unity-2d-panel{a}
unity-2d-places{a} unity-2d-spread{a}
The following packages will be upgraded:
libqt4-sql libqt4-xml libqtcore4 libxml2 libxml2-dev mercurial
mercurial-common
The following packages are RECOMMENDED but will NOT be installed:
libqt4-sql-odbc libqt4-sql-psql libqt4-sql-sqlite
7 packages upgraded, 0 newly installed, 49 to remove and 334 not upgraded.
Need to get 5,378 kB of archives. After unpacking 131 MB will be freed.
Get: 1 http://it.archive.ubuntu.com/ubuntu/ oneiric-updates/main libqt4-xml i386 4:4.7.4-0ubuntu8.1 [93.6 kB]
Get: 2 http://it.archive.ubuntu.com/ubuntu/ oneiric-updates/main libqt4-sql i386 4:4.7.4-0ubuntu8.1 [99.5 kB]
Get: 3 http://it.archive.ubuntu.com/ubuntu/ oneiric-updates/main libqtcore4 i386 4:4.7.4-0ubuntu8.1 [1,870 kB]
Get: 4 http://it.archive.ubuntu.com/ubuntu/ oneiric-updates/main libxml2-dev i386 2.7.8.dfsg-4ubuntu0.1 [760 kB]
Get: 5 http://it.archive.ubuntu.com/ubuntu/ oneiric-updates/main libxml2 i386 2.7.8.dfsg-4ubuntu0.1 [663 kB]
Get: 6 http://it.archive.ubuntu.com/ubuntu/ oneiric-updates/universe mercurial i386 1.9.1-1ubuntu0.1 [58.5 kB]
Get: 7 http://it.archive.ubuntu.com/ubuntu/ oneiric-updates/universe mercurial-common all 1.9.1-1ubuntu0.1 [1,834 kB]
Fetched 5,378 kB in 12s (436 kB/s)
(Reading database ... 147741 files and directories currently installed.)
Removing appmenu-qt ...
Removing ubuntu-desktop ...
Removing unity-2d ...
Removing unity-2d-panel ...
Removing sni-qt ...
Removing unity-2d-spread ...
Removing unity-2d-places ...
Removing unity-2d-launcher ...
Removing libunity-2d-private0 ...
Removing libdbusmenu-qt2 ...
Removing libdconf-qt0 ...
Removing libqtscript4-qtbindings ...
Removing libqtscript4-phonon ...
Removing libphonon4 ...
Removing qt-at-spi ...
Removing libqtdee2 ...
Removing libqtbamf1 ...
Removing libqtscript4-xmlpatterns ...
Removing libqtscript4-webkit ...
Removing libqtscript4-svg ...
Removing libqtscript4-opengl ...
Removing libqtscript4-xml ...
Removing libqtscript4-uitools ...
Removing libqtscript4-sql ...
Removing libqtscript4-network ...
Removing libqtscript4-gui ...
Removing libqtscript4-core ...
Removing libqtwebkit-dev ...
Removing libqt4-opengl-dev ...
Removing libqt4-dev ...
Removing libqt4-scripttools ...
Removing libqt4-qt3support ...
Removing libqt4-designer ...
Removing libqtwebkit4 ...
Removing libqt4-svg ...
Removing libqt4-opengl ...
Removing libqt4-help ...
Removing libqtgconf1 ...
Removing libqt4-sql-mysql ...
Removing libqt4-test ...
Removing qt4-linguist-tools ...
Removing qt4-qmake ...
Removing libqt4-declarative ...
Removing libqt4-script ...
Removing libqt4-xmlpatterns ...
Removing libqt4-network ...
Removing libqt4-dbus ...
Removing qdbus ...
Removing libqtgui4 ...
Processing triggers for gconf2 ...
Processing triggers for libglib2.0-0 ...
Processing triggers for man-db ...
Processing triggers for gnome-menus ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 143722 files and directories currently installed.)
Preparing to replace libqt4-xml 4:4.7.4-0ubuntu8 (using .../libqt4-xml_4%3a4.7.4-0ubuntu8.1_i386.deb) ...
Unpacking replacement libqt4-xml ...
Preparing to replace libqt4-sql 4:4.7.4-0ubuntu8 (using .../libqt4-sql_4%3a4.7.4-0ubuntu8.1_i386.deb) ...
Unpacking replacement libqt4-sql ...
Preparing to replace libqtcore4 4:4.7.4-0ubuntu8 (using .../libqtcore4_4%3a4.7.4-0ubuntu8.1_i386.deb) ...
Unpacking replacement libqtcore4 ...
Preparing to replace libxml2-dev 2.7.8.dfsg-4 (using .../libxml2-dev_2.7.8.dfsg-4ubuntu0.1_i386.deb) ...
Unpacking replacement libxml2-dev ...
Preparing to replace libxml2 2.7.8.dfsg-4 (using .../libxml2_2.7.8.dfsg-4ubuntu0.1_i386.deb) ...
Unpacking replacement libxml2 ...
Preparing to replace mercurial 1.9.1-1 (using .../mercurial_1.9.1-1ubuntu0.1_i386.deb) ...
Unpacking replacement mercurial ...
Preparing to replace mercurial-common 1.9.1-1 (using .../mercurial-common_1.9.1-1ubuntu0.1_all.deb) ...
Unpacking replacement mercurial-common ...
Processing triggers for man-db ...

After that, the build fails in not finding qmake. No custom repositories had been added.
Running build-ubuntu-deps.bash for the third time reinstalls the missing qt libraries, and the build succeeds again.