scaleway / kernel-tools

:penguin: Kernels on Scaleway
http://devhub.scaleway.com/#/bootscripts
MIT License
104 stars 36 forks source link

Unable to use Snap packages on Ubuntu images #334

Closed j-mie closed 6 years ago

j-mie commented 7 years ago

On a fresh install the snap install ubuntu-core fails. Seems to have been fixed in 4.8.14-apparmor-1 but broken again in 4.8.14-apparmor-2 ? https://github.com/scaleway/kernel-tools/issues/313

root@chat:~# uname -r
4.8.14-apparmor-2
root@chat:~# lsb_release -r
Release:        16.04
root@chat:~# snap install ubuntu-core
64.48 MB / 64.48 MB [======================================] 100.00 % 2.79 MB/s

error: cannot perform the following tasks:
- Make snap "ubuntu-core" available to the system (can not set next boot: cannot determine bootloader)
m0n5t3r commented 7 years ago

edit: nevermind, it's unrelated

looks like it's due to missing xz support in squashfs:

[14731.123184] squashfs: SQUASHFS error: Filesystem uses "xz" compression. This is not supported

so the solution would be to enable CONFIG_SQUASHFS_XZ in the kernel config-

m0n5t3r commented 7 years ago

actually, at least on arm, the latest kernel (armv7l 4.10.8 apparmor) seems to work; I would still look at dmesg to see if it complains about something

tcarrondo commented 7 years ago

I cannot use snaps in any of the 4.10 kernels. It was/is possible with 4.8.14-apparmor-2

tcarrondo commented 7 years ago

It's possible to use snaps on: 4.10.8-apparmor-1 Distributor ID: Debian Description: Debian GNU/Linux 9.0 (stretch) Release: 9.0 Codename: stretch

wizzard0 commented 7 years ago

I confirm that Ubuntu Xenial images both for ARM and x64 do not work :(

DmitriyLyalyuev commented 7 years ago

I confirm that, snaps not working on Xenial x64. Screenshot of the error: http://joxi.ru/Y2Ll9Q9iR8R126

peerchemist commented 7 years ago

Confirmed not working on Xenial x86_64.

intellectronica commented 6 years ago

Not working with Xenial on an amd64 server :(

guillaumedsde commented 6 years ago

Not working either for me, Xenial on x86_64

guillaumedsde commented 6 years ago

SOLVED, to anyone looking for a solution, changing the bootscript to 4.9.20 in the scaleway control panel fixes the issue

tcarrondo commented 6 years ago

the problem presists

guillaumedsde commented 6 years ago

@tcarrondo try different bootscripts (preferably more recent ones, that will probably solve the problem)

In fact I found that updating the bootscript solved many issues, notably using SHA512 on OpenVPN on an old bootscript was unbearably slow, updating the bootscript solved it for me

tcarrondo commented 6 years ago

I've already tried all of them