6

I am following the directions on the page for Ubuntu App Development: http://developer.ubuntu.com/get-started/gomobile/


Command 1:

sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-beta1 && sudo apt-get update && sudo apt-get install qt5-meta-full && echo 'export PATH=/opt/qt5/bin:$PATH' >> ~/.bashrc

Output 1:

...  
Fetched 745 kB in 3s (204 kB/s)  
Reading package lists... Done   
Reading package lists... Done  
Building dependency tree         
Reading state information... Done  
qt5-meta-full is already the newest version.  
The following packages were automatically installed and are no longer required:  
 libtiff4 libtiffxx0c2 linux-headers-3.5.0-17 linux-headers-3.5.0-17-generic  
Use 'apt-get autoremove' to remove them.  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  

Command 2

 sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt-get update && sudo apt-get install qt-components-ubuntu qt-components-ubuntu-demos qt-components-ubuntu-examples qt-components-ubuntu-doc notepad-qml

Output 2

Reading package lists... Done  
Reading package lists... Done  
Building dependency tree         
Reading state information... Done  
Some packages could not be installed. This may mean that you have  
requested an impossible situation or if you are using the unstable  
distribution that some required packages have not yet been created  
or been moved out of Incoming.  
The following information may help to resolve the situation:  

The following packages have unmet dependencies:  
  qt-components-ubuntu : Depends: libqt5core5 (>= 5.0.0) but it is not installable  
                    Depends: libqt5gui5 (>= 5.0.0) but it is not installable  
                    Depends: libqt5qml5 but it is not installable  
                    Depends: libqt5quick5 but it is not installable  
E: Unable to correct problems, you have held broken packages.  

As specified, I set the PATH to include /opt/qt5/bin. I was wondering if this issue was familiar to anyone. Thanks a lot for your time.

Tachyons
  • 17,281

3 Answers3

1

This started happening today to my existing install as well. My guess is Canonical are changing the package dependencies either preparing for the final Qt5 release or revamping the Qt5 beta.

Keep an eye on ppa:canonical-qt5-edgers/qt5-beta1 and ppa:canonical-qt5-edgers/qt5-proper as well as for updated instructions on http://developer.ubuntu.com/get-started/gomobile/

EDIT: The build log from yesterday indicates that 'deb http://ppa.launchpad.net/canonical-qt5-edgers/qt5-proper/ubuntu quantal main' is being used now.

I guess we'll just have to wait for updated instructions.

Thomas Ward
  • 74,764
1

I had the same problem and asked for help at the #ubuntu-phone irc. They came up with the solution to use the ppa:canonical-qt5-edgers/qt5-proper PPA from launchpad. Therefore just add https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-proper to the sources.list. After that run

    sudo apt-get update 

and you should be able to complete the instructions from http://developer.ubuntu.com/get-started/gomobile/.

Thomas Ward
  • 74,764
Phidelux
  • 762
  • Better idea! Use sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper. It'll add to sources.list.d (which makes for easy deletion!) and handles getting the PGP keys that're needed for verification and otherwise for any/all PPAs. – Thomas Ward Feb 03 '13 at 10:09
  • I saw that the "Get the QT QML toolkit preview" section at www.developer.ubuntu.com was updated and now uses the ppa:canonical-qt5-edgers/qt5-proper PPA! – Phidelux Feb 08 '13 at 11:47
1

Adding

deb http://ppa.launchpad.net/canonical-qt5-edgers/qt5-proper/ubuntu quantal main 

to my software sources fixed the install process. Now to see if it all works.

Update: Not quite there yet, the qml viewers seem a little off.

qmlscene: could not find a Qt installation of ''
John
  • 11