我在 Ubuntu 16.10 上创建了一个模拟器,方式如下:
sudo apt-get install ubuntu-emulator
sudo ubuntu-emulator create TouchEmulator
但是当我尝试运行它时:
sudo ubuntu-emulator run TouchEmulator --memory 1024 --scale 0.7
出现一个完全黑屏(我只能看到它模仿的手机的“外壳”)。终端中显示以下内容:
/scripts/panic/adbd: line 22: can't create/sys/class/android_usb/android0/idVendor: nonexistent directory
/scripts/panic/adbd: line 23: can't create /sys/class/android_usb/android0/idProduct: nonexistent directory
/scripts/panic/adbd: line 24: can't create /sys/class/android_usb/android0/functions: nonexistent directory
/scripts/panic/adbd: line 25: can't create /sys/class/android_usb/android0/enable: nonexistent directory
[ 0.803272] initrd: starting adbd for USB debugging
/sbin/adbd: error while loading shared libraries: libgio-2.0.so.0: cannot open shared object file: No such file or directory
BusyBox v1.22.1 (Ubuntu 1:1.22.0-9ubuntu1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(我已尝试过 i386 版本,以更多/更少的内存运行,而不是缩放。)我有 OpenGL 支持。