我遵循触摸模拟器创建一个模拟器,当我尝试使用 i386 arch 创建一个模拟器时,代码如下:
sudo ubuntu-emulator create --arch=i386 myinstance
我收到以下错误:
unknown flag `arch'
更多信息:
$ sudo ubuntu-emulator create -h
Usage:
ubuntu-emulator [OPTIONS] create [create-OPTIONS]
Creates a new emulator instance name 'name' by downloading the necessary components from the image server
Help Options:
-h, --help Show this help message
Create new emulator instance named 'name':
--channel= Select device channel (ubuntu-touch/devel)
--server= Select image server (https://system-image.ubuntu.com)
--revision= Select revision
--use-raw-disk Use raw disks instead of qcow2
Help Options:
-h, --help Show this help message
$ sudo ubuntu-emulator -h
Usage:
ubuntu-emulator [OPTIONS]
Help Options:
-h, --help Show this help message
Available commands:
create Create new emulator instance named 'name'
destroy Destroys an emulator instance named 'name'
list Lists emulator instances
run Run emulator instance named 'name'
snapshot Manipulates snapshots for emulator instance named 'name'
$ uname -a
Linux Inspiron 3.13.0-27-generic #50-Ubuntu SMP Thu May 15 18:06:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
知道为什么不显示 arch 选项而在说明页面上却存在此选项吗?
答案1
我遇到了同样的问题。我认为这与使用 Ubuntu SDK 附带的 ubuntu-emulator 版本有关,而不是从 phablet-team/tools PPA 获取它。
这是我根据本指南所作的最佳猜测。http://www.webupd8.org/2014/03/ubuntu-touch-emulator-installation-and.html