Ubuntu sdk 未安装 12.04

Ubuntu sdk 未安装 12.04

首先我使用给定的复合命令这里但它给出了一些错误,所以我分别执行了每个命令,以便能够找出错误所在。添加存储库和更新没有问题,但是:

asim@ubuntu:~$ sudo apt-get install ubuntu-sdk
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:
 ubuntu-sdk : Depends: qtcreator-plugin-ubuntu-cordova but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
asim@ubuntu:~$ 

然后我决定单独安装qtcreator-plugin-ubuntu-cordova

asim@ubuntu:~$ sudo apt-get install qtcreator-plugin-ubuntu-cordova
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:
 qtcreator-plugin-ubuntu-cordova : Depends: qtcreator-plugin-ubuntu (= 2.8.1bzr56precise0) but 2.8.1bzr57precise0 is to be installed
E: Unable to correct problems, you have held broken packages.
asim@ubuntu:~$ 

在这里,我认为强制使用正确版本的包会很好,但是:

asim@ubuntu:~$ sudo apt-get install qtcreator-plugin-ubuntu-cordova =2.8.1bzr57precise0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package 
asim@ubuntu:~$ 

有人能帮帮我吗?我一直在用 php 进行 Web 开发,但我刚刚决定尝试在 Ubuntu 上进行软件开发。

编辑

apt-cache policy qtcreator-plugin-ubuntu-cordova qtcreator-plugin-ubuntu ubuntu-sdk给出:

root@ubuntu:/home/asim# apt-cache policy qtcreator-plugin-ubuntu-cordova qtcreator-plugin-ubuntu ubuntu-sdk
qtcreator-plugin-ubuntu-cordova:
  Installed: (none)
  Candidate: 2.8.1bzr56precise0
  Version table:
     2.8.1bzr56precise0 0
        500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ precise/main amd64 Packages
qtcreator-plugin-ubuntu:
  Installed: 2.8.1bzr57precise0
  Candidate: 2.8.1bzr57precise0
  Version table:
 *** 2.8.1bzr57precise0 0
        500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
ubuntu-sdk:
  Installed: (none)
  Candidate: 1.009~sdkppa~precise1~test6
  Version table:
     1.009~sdkppa~precise1~test6 0
        500 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu/ precise/main amd64 Packages

答案1

我找到了一种方法来做到这一点。

  1. 卸载冲突的包:sudo apt-get 删除 qtcreator-plugin-ubuntu
  2. 下载并安装所需的包:2.8.1bzr56precise0 点击此处下载(下载后,双击进入 Ubuntu 软件中心,选择安装)
  3. 安装 Ubuntu SDK:sudo apt-get 安装 ubuntu-sdk(它将添加 cordova 所需的包)

享受 Ubuntu SDK ;)

相关内容