您好,我已经安装了 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 [email protected]: Unknown unit: [email protected]
[ 166.219137] systemd-logind[1013]: Failed to start user service: Unknown unit: [email protected]
* Setting up X socket directories... [ OK ]
[ 168.769983] systemd-logind[1013]: Failed to start unit [email protected]: Unknown unit: [email protected]
[ 168.771611] systemd-logind[1013]: Failed to start user service: Unknown unit: [email protected]
* Starting automatic crash report generation: apport [ OK ]
emulator: User configuration saved to /home/timur/.android/emulator-user.ini
模拟器非常慢(我在我的HP 笔记本电脑上工作)并且有问题。我认为错误视图的原因是在视频驱动程序中,并且可能与 OpenGL 有关,我不知道......我将针对此问题创建一个额外的问题
要修复安装 SDK,请先安装
ubuntu-sdk-libs-dev
然后安装sdk: