← Back to team overview

ubuntu-phone team mailing list archive

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

 

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/) 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


Follow ups

References