← Back to team overview

ubuntu-phone team mailing list archive

Re: impossible to install 15.04 SDK using chroot on 14.04.3 LTS

 

Hi,

I have a problem with sdk.

I'm not able to launch any emulator. I've tried a stable, a rc-proposed an
a devel 15.04 (with ARMF architecture or X86).

I've tried to launch it from sdk --> I've got a black screen on emulator
I've tried to launch it from a terminal (by using : ubuntu-emulator run
Emulator or sudo ubuntu-emulator run Emulator) --> I've got a black screen
or sometime a bootloop on ubuntu logo

On terminal I've these messages :
 [...] [  158.550000] type=1400 audit(1449775126.663:106):
apparmor="STATUS" operation="profile_load" profile="unconfined"
name="com.ubuntu.telegram_sctelegram_1.3.14.105" pid=885
comm="apparmor_parser"
[  162.140000] init: ssh-keygen main process (1074) terminated with status 1
 * Setting up X socket directories...                                    [
OK ]
[  226.670000] systemd-logind[839]: Failed to start user service: Unknown
unit: user@32011.service
/lib/init/init-d-script: 12: /etc/rc2.d/S02whoopsie: -c: not found
basename: missing operand
Try 'basename --help' for more information.


Does someone have an idea about the problem ?

I'm on ubuntu 15.10, Acer Aspire 8930 (with proprietary Nvidia graphic
driver like I saw on ask-ubuntu that free-graphic driver could be a problem
to launch emulator)

Alexandre,




2015-12-09 22:08 GMT+01:00 Mattias <mattias@xxxxxxxxxx>:

> Hi David,
>
> Thanks for the advice. I already had some help on irc from alex-abreu (
> http://irclogs.ubuntu.com/2015/12/07/%23ubuntu-app-devel.html), but that
> did not solve the problem yet. Indeed I am running into the icon issue. I
> am running Wily at the moment, and have 4.3.1-ubuntu3~ubuntu15.10.1
> installed. You can see the results of my last attempt here:
> http://paste.ubuntu.com/13869516/
>
> I noticed on the launchpad page you just updated the package, but only a
> build for trusty. Is it also possible to update the package for wily? Or is
> there any quick fix for the icon issue. I did not find that on the bug
> tracker.
>
> Thanks a lot!
>
> Mattias
>
>
> On 09-12-15 11:01, David Barth wrote:
>
> Mattias,
>
> You need ubuntu-sdk-14.10 or superior, so ubuntu-sdk-15.04 is the one to
> go with Cordova now. 14.04 lacked device support and can only build desktop
> applications.
>
> I re-ran the tests in a clean LTS container, using the cordova-ubuntu PPA.
> Please make sure to have cordova-cli-4.3.1-ubuntu4 installed, as it
> contains several fixes for the infamous icon issue.
>
> To build with the non-default framework, you need :
>
> $ cordova -d build ubuntu --device -- --framework ubuntu-sdk-15.04
>
> the -- prevents cordova-cli from interpreting the parameter, which it does
> not support, and pass it directly to the cordova-ubuntu support libs which
> will know how to target the right click chroot.
>
> Keep me posted if you still need help getting the app to build and run on
> the phone.
>
> David
>
> On Tue, Dec 1, 2015 at 3:48 AM, Zoltán Balogh <zoltan.balogh@xxxxxxxxxxxxx
> > wrote:
>
>> On 30/11/15 22:17, Mattias wrote:
>>
>>> Hi,
>>>
>>> I am following this guide for cordova beginners (
>>> <http://developer.ubuntu.com/en/apps/html-5/guides/cordova-guide/>
>>> http://developer.ubuntu.com/en/apps/html-5/guides/cordova-guide/) and I
>>> can't install the SDK for 14.10 or 15.04 using chroot:
>>>
>>> sudo click chroot -a armhf -f ubuntu-sdk.15.04 create
>>> Traceback (most recent call last):
>>>   File "/usr/bin/click", line 86, in <module>
>>>     sys.exit(main())
>>>   File "/usr/bin/click", line 82, in main
>>>     return mod.run(args)
>>>   File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line
>>> 231, in run
>>>     return args.func(parser, args)
>>>   File "/usr/lib/python3/dist-packages/click/commands/chroot.py", line
>>> 64, in create
>>>     chroot = ClickChroot(args.architecture, args.framework,
>>> series=args.series)
>>>   File "/usr/lib/python3/dist-packages/click/chroot.py", line 157, in
>>> __init__
>>>     series = framework_series[self.framework_base]
>>> KeyError: 'ubuntu-sdk.15.04'
>>>
>>> I only seem to be able to use ubuntu-sdk-14.04, which is also the Ubuntu
>>> release I am running (Ubuntu 14.04.3 LTS). When I use that to build the
>>> app, it only flashes once on my MX4 (OTA-8), but is not functional. So
>>> assume I have to use another SDK.
>>>
>>> Should I update to 15.04? Or do I need to configure something so that
>>> the chroot works? In the guide is written that the 14.04 LTS release is
>>> recommended for cordova app development under Ubuntu. Is this information
>>> up to date?
>>>
>>> Thanks!
>>>
>>> Mattias
>>>
>>>
>> As start I would suggest to check out if you have the latest click
>> packages
>>
>> $ apt-cache policy click
>>
>> should show you that you have 0.4.40+15.04.20151012-0ubuntu1 version from
>> the SDK PPA.
>>
>> If you do not have this version then please dist-upgrade.
>>
>> Anyhow, if click chroot is acting up then you can fall back to the
>> statick chroots what come from the ubuntu-sdk-api-15.04-armhf and
>> ubuntu-sdk-api-15.04-i386 packages.
>>
>> They bring you the very same chroot what click does, but it does not
>> bootstrap the chroot, so it is a leaner and simpler way to set up the SDK
>> build environment.
>>
>> But please feel free to ping me on IRC if you need any help,
>>
>> bzoltan
>>
>>
>> --
>> Mailing list: https://launchpad.net/~ubuntu-phone
>> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>
>
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>
>

References