安装 ubuntu-sdk 时出现问题

安装 ubuntu-sdk 时出现问题

安装 sdk 时出现以下错误:

ubuntu-sdk : Depends: qt5-default but it is not going to be installed
              Recommends: libqt5webkit5-qmlwebkitplugin but it is not going to be installed
              Recommends: qtdeclarative5-particles-plugin but it is not going to be installed
              Recommends: qtdeclarative5-qtaudioengine-plugin but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

答案1

如果您运行的是 Ubuntu 12.04 或 12.10,请添加以下 ppa:

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

或者如果你运行的是 Ubuntu 13.04

sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt-get update

然后运行以下命令:

sudo apt-get install ubuntu-sdk

相关内容