有没有Ubuntu Touch模拟器或者在虚拟机中安装它的方法?

有没有办法在普通的Ubuntu电脑上,而不是手机或平板电脑上安装Ubuntu Touch?或者有没有像Android SDK附带的那种模拟器?
3个回答

终于,有一个模拟器了!
使用模拟器
如何在Ubuntu 14.04上安装:
sudo apt-get install android-emulator
cp -r /usr/share/android/emulator/ ~/
cd ~/emulator/
./build-emulator-sdcard.sh

运行模拟器:

./run-emulator.sh

对于Ubuntu 13.10及更早版本,你只需从https://launchpad.net/ubuntu/+source/android安装deb包即可。
要更新模拟器,请运行以下命令:
cd ~/emulator/
rm -f ./out/target/product/generic/ubuntu-rootfs.tar.xz
./build-emulator-sdcard.sh
警告:不要在amd64上卸载然后使用apt-get autoremove。如果这样做,您将处于一个无法打败的状态。请按照维基上的说明修复您的系统。

有关更多详细信息或如何从源代码构建,请参见维基页面

其他方法

然而,如果您只想运行应用程序或测试unity8 shell,使用模拟器可能会太复杂了。因此,还有两种其他方法:

1. 运行Ubuntu Touch应用

现在,您可以直接在运行Ubuntu 12.10或更高版本(或其派生版,如Kubuntu)的计算机上安装核心触控应用程序,使用PPA。

首先,在终端中运行以下命令添加Core Apps Daily PPA:

sudo add-apt-repository ppa:ubuntu-touch-coreapps-drivers/daily
sudo apt-get update

然后通过运行以下命令安装您想要的应用程序:
sudo apt-get install <app-name>

或者你可以使用以下方法安装它们:

sudo apt-get install touch-coreapps

这是一个可用的核心应用程序列表:
- ubuntu-calculator-app - calendar-app - ubuntu-clock-app - ubuntu-weather-app - ubuntu-docviewer-app - ubuntu-emailclient-app(尚未工作) - ubuntu-filemanager-app - ubuntu-rssreader-app - ubuntu-terminal-app - stock-ticker-mobile-app - dropping-letters - sudoku-app - music-app 要获取更多信息,请参阅this articlehttp://www.omgubuntu.co.uk/
2. 运行Unity 8 Shell
如果您正在运行Ubuntu 13.10,可以在桌面上运行Unity 8的移动界面。要做到这一点,请安装unity8软件包,可以通过点击链接或输入以下命令来完成:
sudo apt-get install unity8

要运行它,请使用这个命令:
unity8 -mousetouch

很遗憾,在终端中无法运行应用程序。点击桌面应用程序将在其自己的窗口中打开,而点击Ubuntu Touch应用程序则不会有任何反应。

现在有一个模拟器可用。 - achiang
另请参阅(适用于13.10):http://askubuntu.com/questions/387884/how-to-install-ubuntu-touch-emulator-on-13-10 - david6


这是一个非常简短的回答,只有一个链接。如果链接发生变化,你能否更新你的回答,附上截图和安装说明? - iBelieve

编辑 /usr/share/android/emulator/build/tools/get-tarball-url.py 更改
host_uri = "https://system-image.ubuntu.com"
json_index_uri = "/devel-proposed/mako/index.json"

host_uri = "https://system-image.ubuntu.com"
json_index_uri = "/ubuntu-touch/devel-proposed/mako/index.json"