Ubuntu App开发。 无法安装Ubuntu SDK和有缺陷的Ubuntu仿真器

你好我已经安装了Ubuntu 14.04.1,我没有耐心去解决我的问题了。 我无法安装ubuntu-sdk包:

 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: ubuntu-sdk-libs-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages. 

我真的无法解决这个问题( 不幸的是,这里列出的解决方案对我没有帮助 )。 经过我的研究,我明白下一代Ubuntu应用程序将使用QML语言,因此我需要Qt编译器和IDE。 下一步是安装而不是Ubuntu-sdk(在Qt Creator之上创建),但只是Qt Creator。 感谢上帝,我从官方网站安装了Qt Creator,没有任何问题。 但现在我不知道如何在创建Ubuntu应用程序时使用它(一般来说,我是创建应用程序的新手)

所以我的下一步是安装ubuntu-emulator ,看看Ubuntu Touch至少看起来如何。 在模拟器安装和实例创建后,我得到以下内容:

在此处输入图像描述

来自终端的一点摘录:

 [ 3.332876] EXT4-fs (mmcblk0): couldn't mount as ext3 due to feature incompatibilities [ 3.352482] EXT4-fs (mmcblk0): couldn't mount as ext2 due to feature incompatibilities [ 3.396557] EXT4-fs (mmcblk0): mounted filesystem with ordered data mode. Opts: discard [ 3.437316] initrd: boot mode: normal [ 3.510130] EXT4-fs (loop0): couldn't mount as ext3 due to feature incompatibilities [ 3.522541] EXT4-fs (loop0): couldn't mount as ext2 due to feature incompatibilities [ 3.688075] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null) [ 3.691622] initrd: mounting system.img (image developer mode) [ 3.822189] EXT4-fs (loop1): couldn't mount as ext3 due to feature incompatibilities [ 3.844501] EXT4-fs (loop1): couldn't mount as ext2 due to feature incompatibilities [ 3.956694] EXT4-fs (loop1): mounted filesystem with ordered data mode. Opts: (null) [ 4.106987] initrd: device is generic_x86 [ 5.341856] Clocksource tsc unstable (delta = 820035903 ns) [ 12.067393] initrd: checking fstab /root/var/lib/lxc/android/rootfs/fstab* for additional mount points [ 12.328245] initrd: checking mount label mtdblock2 [ 12.374596] initrd: mounting /dev/mtdblock2 as /root/android//cache mount: mounting /dev/mtdblock2 on /root/android//cache failed: Invalid argument [ 12.406983] initrd: mounting /root/var/lib/lxc/android/system.img as /root/android/system Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... done. [ 16.495823] init: ureadahead-touch main process (448) terminated with status 5 [ 53.042745] init: /dev/hw_random not found [ 53.044612] init: cannot open '/initlogo.rle' [ 53.188136] init: /dev/hw_random not found [ 54.943603] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery' [ 54.943943] init: cannot find '/system/bin/ubuntuappmanager.disabled', disabling 'ubuntuappmanager' [ 55.031468] init: property 'sys.powerctl' doesn't exist while expanding '${sys.powerctl}' [ 55.031579] init: powerctl: cannot expand '${sys.powerctl}' [ 55.031664] init: property 'sys.sysctl.extra_free_kbytes' doesn't exist while expanding '${sys.sysctl.extra_free_kbytes}' [ 55.031735] init: cannot expand '${sys.sysctl.extra_free_kbytes}' while writing to '/proc/sys/vm/extra_free_kbytes' [ 55.083456] init: cannot find '/sbin/adbd', disabling 'adbd' [ 55.094205] init: cannot find '/sbin/adbd', disabling 'adbd' [ 166.218726] systemd-logind[1013]: Failed to start unit user@32011.service: Unknown unit: user@32011.service [ 166.219137] systemd-logind[1013]: Failed to start user service: Unknown unit: user@32011.service * Setting up X socket directories... [ OK ] [ 168.769983] systemd-logind[1013]: Failed to start unit user@0.service: Unknown unit: user@0.service [ 168.771611] systemd-logind[1013]: Failed to start user service: Unknown unit: user@0.service * Starting automatic crash report generation: apport [ OK ] emulator: User configuration saved to /home/timur/.android/emulator-user.ini 

模拟器非常慢(我在惠普笔记本电脑上工作)和马车。 我认为错误视图的原因在于video驱动程序,可能与OpenGL有关,我不知道…… 我将针对此问题创建一个额外的问题

要修复安装SDK,请先安装ubuntu-sdk-libs-dev

 sudo apt-get update sudo apt-get install ubuntu-sdk-libs-dev 

然后安装sdk:

 sudo apt-get install ubuntu-sdk