如何将 Ubuntu SDK 预览版从 Qt 5 Beta PPA 更新到 Qt 5 Release PPA

Dav*_*lla 9 application-development beta ubuntu-sdk ubuntu-touch

Ubuntu SDK 预览版于 1 月 2 日发布时,它基于 Qt 5 Beta 版本(因为 Qt 5 尚未针对 Ubuntu 发布和打包)。在某些时候,Qt 5 版本被打包在一个单独的 PPA 上,而 Ubuntu SDK 迁移到基于该 PPA 的内容。

新安装工作正常,如Ubuntu SDK 安装说明中所述,但我想知道我们这些在 2 日发布日安装它的人如何迁移到最新版本的 SDK,因为 PPA 的更改需要手动升级。

这似乎与"error importing Ubuntu.Components"升级 SDK 时收到消息的人的报告有关。

Dav*_*lla 12

在从 Qt 5 Beta 迁移到 Qt 5 Release 期间,包装发生了重大变化。这意味着升级 SDK 并不是一项简单的任务,例如sudo apt-get upgrade,需要一些手动步骤。

迁移:从 Qt 5 Beta 1 到 Qt 5.0

  1. 打开~/.bashrc文件

    $ gedit ~/.bashrc

  2. 'export PATH=/opt/qt5/bin:$PATH'~/.bashrc文件中删除该行

  3. 暂时卸载 Qt Creator

    $ sudo apt-get remove qtcreator qt4-qmlviewer

  4. 清除 Qt 5 Beta 1 PPA

    $ sudo apt-get install ppa-purge

    $ sudo ppa-purge ppa:canonical-qt5-edgers/qt5-beta1

  5. 安装 Ubuntu SDK 预览版

    $ sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper && sudo apt-get update && sudo apt-get install ubuntu-sdk notepad-qml

  6. 测试 Component Showcase 应用程序是否可以执行:

    $ qmlscene /usr/lib/qt-components-ubuntu/demos/ComponentShowcase.qml