我正在按照 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
输出 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.
命令 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
输出 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.
按照说明,我将设置PATH
为包含/opt/qt5/bin
。我想知道是否有人熟悉这个问题。非常感谢您抽出时间。
答案1
我遇到了同样的问题,并在 #ubuntu-phone irc 上寻求帮助。他们想出了ppa:canonical-qt5-edgers/qt5-proper
从启动板使用 PPA 的解决方案。因此只需添加https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-proper到sources.list
。之后运行
sudo apt-get update
你应该能够完成以下说明http://developer.ubuntu.com/get-started/gomobile/。
答案2
今天我的现有安装也开始出现这种情况。我猜 Canonical 正在更改软件包依赖项,要么为最终的 Qt5 版本做准备,要么修改 Qt5 测试版。
请关注ppa:canonical-qt5-edgers/qt5-beta1
并ppa:canonical-qt5-edgers/qt5-proper
获取最新说明http://developer.ubuntu.com/get-started/gomobile/
编辑: 这昨天的构建日志表示'deb http://ppa.launchpad.net/canonical-qt5-edgers/qt5-proper/ubuntu quantal main'
现在正在使用。
我想我们只需要等待更新的说明。
答案3
添加
deb http://ppa.launchpad.net/canonical-qt5-edgers/qt5-proper/ubuntu quantal main
修复了我的软件源的安装过程。现在看看它是否一切正常。
更新:尚未完全到达,qml 查看器似乎有点偏离。
qmlscene: could not find a Qt installation of ''