QML 工具包安装问题:“未满足的依赖项:qt-components-ubuntu:...”

use*_*623 6 dependencies qt application-development qml ubuntu-touch

我正在按照 Ubuntu 应用程序开发页面上的说明进行操作:http : //developer.ubuntu.com/get-started/gomobile/


命令 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
Run Code Online (Sandbox Code Playgroud)

输出 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.  
Run Code Online (Sandbox Code Playgroud)

命令 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
Run Code Online (Sandbox Code Playgroud)

输出 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.  
Run Code Online (Sandbox Code Playgroud)

按照规定,我将 设置PATH为 include /opt/qt5/bin。我想知道这个问题是否有人熟悉。非常感谢您的时间。

小智 1

今天我现有的安装也开始发生这种情况。我的猜测是 Canonical 正在更改包依赖项,要么为最终的 Qt5 版本做准备,要么修改 Qt5 beta。

请密切关注http://developer.ubuntu.com/get-started/gomobile/ppa:canonical-qt5-edgers/qt5-beta1以及ppa:canonical-qt5-edgers/qt5-proper更新的说明

编辑昨天的构建日志表明'deb http://ppa.launchpad.net/canonical-qt5-edgers/qt5-proper/ubuntu quantal main'现在正在使用。

我想我们只需要等待更新的说明。


Phi*_*lux 1

我遇到了同样的问题,并在 #ubuntu-phone irc 寻求帮助。他们提出了从启动板使用ppa:canonical-qt5-edgers/qt5-properPPA 的解决方案。因此,只需将https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-proper添加到sources.list. 之后运行

    sudo apt-get update 
Run Code Online (Sandbox Code Playgroud)

您应该能够完成http://developer.ubuntu.com/get-started/gomobile/中的说明。