When the Ubuntu SDK preview was announced on the 2nd of January, it was based on the Qt 5 Beta release (as Qt 5 had not yet been released and packaged for Ubuntu). At some point, the Qt 5 release was packaged on a separate PPA and the Ubuntu SDK migrated to be based on the contents of that PPA.

New installs work fine as described on the Ubuntu SDK installation instructions, but I'd like to know how those of us who installed it on release day on the 2nd can migrate to the latest version of the SDK, as the change of PPAs requires a manual upgrade.

This seems to be related to reports of folks who get the "error importing Ubuntu.Components" message when upgrading the SDK.

5 Answers
5

During the migration from the Qt 5 Beta to the Qt 5 Release, the packaging changed significantly. This means upgrading the SDK is not a trivial task such as sudo apt-get upgrade, and a few manual steps are necessary.

Migration: from the Qt 5 Beta 1 to Qt 5.0

Open the ~/.bashrc file

$ gedit ~/.bashrc

Remove the 'export PATH=/opt/qt5/bin:$PATH' line from the ~/.bashrc file

I followed the steps above and now I'm getting the following errors when executing the ComponentShowcase demo: ... module "Ubuntu.Components" is not installed ... module "QtQuick" is not installed ...
–
AvedoFeb 14 '13 at 11:50

It seems that this was an bug that was fixed by the last update of the ppa:canonical-qt5-edgers/qt5-proper PPA.
–
AvedoFeb 15 '13 at 22:20

I'm getting the same issue as Avedo, but it doesn't seem to be fixed by updating. :(
–
silFeb 16 '13 at 9:16

it lacks the SQLITE Qt plugin (preventing the Notepad QML example from running)

it lacks the LocalStorage QML plugin (same effect as above)

Qt Creator installed with the SDK lacks Assistant help

your default (not installed in /opt or ~/) Qt4 dev environment is ruined (they warned you though, when you added the PPA)

You can get away by installing the Qt5.0.0 (not 5.0.1) via the (.run file) and then copying the contents of /usr/lib/i386-linux-gnu/qt5/qml/ to /home/your-name-here/Qt5.0.0/5.0.0/gcc/qml.

After that, you will be able to work with your Ubuntu projects (either launching from QML or via a C++ wrapper) from the Qt Creator bundled with Qt you installed from the run file (there will be no content-assistance for Ubuntu QML items, though).

I assume that setting paths (LD_LIBRARY_PATH et al) properly will allow the compiled apps to be run from the command-line, but haver not tried that, as the Qt5 installed with Ubuntu SDK is now always on my path, and I'm a Linux noob :)

If you know how one can get the contents of /usr/lib/i386-linux-gnu/qt5/qml/ without actually installing the components, please update this answer.

And in general, I'd always recommend to install packaged versions of software, which will save you having to deal with things such as LD_LIBRARY_PATH (or even have to know what it means). And you get automatic updates of the software! :)
–
David PlanellaFeb 14 '13 at 17:38

@DavidPlanella ok, many thanks for the hints. I'd still prefer to keep frameworks manually installed to separate dirs (may be there's a Slackware guy somewhere in me, who knows? :)
–
mlvljrFeb 14 '13 at 17:45