unmet依赖,我无法安装ubuntu-sdk

我一直在尝试安装ubuntu开发环境,以便我可以开始在应用程序开发中练习。 但是一旦我尝试安装ubuntu-sdk,我就会收到以下错误:

The following packages have unmet dependencies: ubuntu-sdk : Depends: ubuntu-html5-container but it is not going to be installed 

然后我继续插入命令:

 sudo apt-get install ubuntu-html5-container 

然后我收到以下错误消息:

 The following packages have unmet dependencies: ubuntu-html5-container : Depends: qtdeclarative5-ubuntu-ui-extras-browser-plugin but it is not installable 

在这一点上,我觉得插入命令是合乎逻辑的:

 sudo apt-get install qtdeclarative5-ubuntu-ui-extras-browser-plugin 

我的新错误信息是:

 Package qtdeclarative5-ubuntu-ui-extras-browser-plugin is not available, but is referred to by another package. 

这可能意味着包丢失,已被淘汰或仅可从其他来源获得

我不知道我做错了什么,我已经多次更新我的存储库,但仍然没有。 有人可以告诉我,我做错了什么? 为什么这不应该像它应该的那样工作?

我今天尝试在新VM上安装ubuntu-sdk时遇到同样的问题VM正在运行Ubuntu 12.04 LTS 64bit

我在这里解决了这个问题:

  • 下载了包:

qtdeclarative5-Ubuntu的用户界面,额外的浏览器,插件

qtdeclarative5-Ubuntu的用户界面,额外的浏览器,插件资产

  • 手动安装包依赖项:

sudo apt-get install libqt5core5

sudo apt-get install libqt5gui5

sudo apt-get install libqt5qml5

sudo apt-get install libqt5quick5 libqt5sql5 libqt5webkit5 libqt5sql5-sqlite

sudo apt-get install libqt5webkit5-qmlwebkitplugin qtdeclarative5-qtquick2-plugin

sudo dpkg -i qtdeclarative5-ubuntu-ui-extras-browser-plugin-assets_0.22 + 13.10.20131011.1-0ubuntu1_all.deb

sudo apt-get install qtdeclarative5-ubuntu-ui-toolkit-plugin

sudo apt-get install qtdeclarative5-unity-action-plugin

sudo apt-get install qtdeclarative5-window-plugin

sudo dpkg -i qtdeclarative5-ubuntu-ui-extras-browser-plugin_0.22 + 13.10.20131011.1-0ubuntu1_amd64.deb

最后运行命令安装skd:

sudo apt-get install ubuntu-sdk

这对我来说很好:)

在终端上只尝试此命令,

 sudo apt-get install aptitude; sudo aptitude install ubuntu-sdk