您好,我已经安装了 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 有关,我不知道...我将针对此问题创建另一个问题
答案1
要修复安装 SDK,请先安装ubuntu-sdk-libs-dev
sudo apt-get update
sudo apt-get install ubuntu-sdk-libs-dev
然后安装sdk:
sudo apt-get install ubuntu-sdk