ubuntu sdk 安装 (ubuntu touch 开发环境)

按照官方的说法,最好使用 ubuntu 14.04 来进行开发。安装的过程很简单:

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

其过程就是添加一个 SDK Release PPA 的地址,然后更新 apt-get,接着使用 apt-get 来直接安装 ubuntu sdk。
不过博主直接安装有报错:

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages  Hash Sum mismatch
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages  Hash Sum mismatch
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-i386/Packages  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.

原因就如英文原文所说的 old ones used,有些库太老了,需要更新。这个时候你需要

sudo apt-get dist-upgrade

之后再 sudo apt-get install ubuntu-sdk 就可以了。等安装好了之后就可以在菜单里面搜索 ubuntu sdk 找到,或者直接在 terminal 上运行:

ubuntu-sdk

命令也可以运行该 IDE。

小Tip:Ctrl + N 新建项目,Ctrl + R 查看运行效果

源引官方文档:Installing the ubuntu sdk

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s