Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

KDE Neon/Neon LTS Support #4

Closed
GeitHub opened this issue Apr 12, 2017 · 16 comments
Closed

KDE Neon/Neon LTS Support #4

GeitHub opened this issue Apr 12, 2017 · 16 comments
Assignees
Labels

Comments

@GeitHub
Copy link

GeitHub commented Apr 12, 2017

Could you please add KDE Neon/Neon LTS to the list of supported distros? KDE Neon is just the latest Ubuntu or Ubuntu LTS with the latest KDE desktop/applications added via a PPA so there's probably no compatibility issues.

Thanks

@peterchibunna
Copy link

+1

@peterchibunna
Copy link

Just to add "neon" in the array of supported distributions. I wish this can be quickly done.

@GeitHub
Copy link
Author

GeitHub commented Apr 12, 2017

hm.

Added the "neon" line to the installer and everything was going fine until it froze at the initctl line, so I did a sudo apt install upstart and reran the script, but now I'm getting:

snap "anbox" has no updates available

  • '[' '!' -e /etc/X11/Xsession.d/68anbox ']'
    ++ contains Ubuntu LinuxMint neon neon
    ++ local n=4
    ++ local value=neon
    ++ (( i=1 ))
    ++ (( i < 4 ))
    ++ '[' Ubuntu == neon ']'
    ++ (( i++ ))
    ++ (( i < 4 ))
    ++ '[' LinuxMint == neon ']'
    ++ (( i++ ))
    ++ (( i < 4 ))
    ++ '[' neon == neon ']'
    ++ echo y
    ++ return 0
  • '[' y == y ']'
  • case "$(lsb_release -r -s)" in
    ++ lsb_release -r -s
  • '[' '!' -e /home/user/.config/upstart/anbox.conf ']'
  • initctl start anbox
    initctl: Name "com.ubuntu.Upstart" does not exist

too tired to keep playing with this now though

@peterchibunna
Copy link

peterchibunna commented Apr 12, 2017 via email

@GeitHub
Copy link
Author

GeitHub commented Apr 12, 2017

sudo apt install unity but still the same result. Okay, now I'm really calling it a night, lol,

@peterchibunna
Copy link

Ok. update:
I changed my distro version to 17.04
and ran the installer again. It got to the place where it was to start the service and failed.
I rebooted. Tried to start the service: it failed.
I started the service manually but as a process (not in daemon mode)
And then the app runs ok now. No issues yet.

@vojta-horanek
Copy link

+1

@GeitHub
Copy link
Author

GeitHub commented Apr 12, 2017

@peterchibunna so you're running the KDE Neon User Edition now? Could you possibly add the commands that you used to get it working to make the patch easier?

Also, just a quick Google of "initctl: Name "com.ubuntu.Upstart" does not exist" brings up a few bugzillas and it appears that this is a years long issue affecting LTS releases of Ubuntu (didn't look too much into it, though).

edit: This comment explains why 16.04 distros (like Neon LTS) are having issues:

anbox/anbox#21 (comment)

@peterchibunna
Copy link

peterchibunna commented Apr 12, 2017 via email

@peterchibunna
Copy link

KDE neon uses systemd so that path of initctl should not be followed.

@GeitHub
Copy link
Author

GeitHub commented Apr 12, 2017

Appreciate the recent patch to the installer adding neon support, but still not working on KDE Neon LTS (16.04). Though this is after lots of experimenting trying to get the installer to work, perhaps its working on a fresh install, can anyone confirm? Another idea might be that the "neon" is the ID returned for both LTS and the up to date Ubuntu releases and they might have systemd setup differently.

Here's my log

sudo snap refresh --edge anbox
snap "anbox" has no updates available

  • '[' '!' -e /etc/X11/Xsession.d/68anbox ']'
  • mkdir -p /home/user/.config/upstart
  • echo 'Installing upstart session job ..'
    Installing upstart session job ..
  • cat
  • initctl start anbox
    initctl: Name "com.ubuntu.Upstart" does not exist
  • true
  • mkdir -p /home/user/.config/systemd/user
  • echo 'Installing systemd user session service ..'
    Installing systemd user session service ..
  • cat
  • systemctl --user daemon-reload
    Failed to execute operation: Process org.freedesktop.systemd1 exited with status 1
  • true
  • systemctl --user enable --now anbox
    Failed to execute operation: Process org.freedesktop.systemd1 exited with status 1
  • true
  • set +x

Done!

edit: Finally! Manually running "/snap/bin/anbox session-manager" and then clicking the Anbox Icon finally launches the program. I'm not sure what that means for the script, but at least I've got it running now!

Then it's just a matter of:
https://f-droid.org/FDroid.apk
sudo apt install adb
adb install /home/user/Downloads/FDroid.apk

and you're on your way.

@sudopluto
Copy link
Contributor

btw i added neon to the installer script, so i guess the systemd stuff needs to be figured out

@morphis morphis added the bug label Apr 26, 2017
@morphis morphis self-assigned this Apr 26, 2017
@morphis
Copy link
Member

morphis commented Apr 29, 2017

Systemd support will come with the next updates we're about to release soon.

@morphis
Copy link
Member

morphis commented May 4, 2017

Better support for systemd landed now. Please try again with the latest version of the anbox-installer / anbox and reopen if still not fixed.

@morphis morphis closed this as completed May 4, 2017
@GeitHub
Copy link
Author

GeitHub commented May 5, 2017

@morphis not sure how to re-open, but I'm still having the same bug

Fresh install of KDE Neon LTS, sudo apt update, sudo apt upgrade, sudo apt autoremove, reboot

snap install --classic anbox-installer && anbox-installer
1
I AGREE

(should have copied the log here, but I didn't see any errors and it finished with Done!)

reboot

Click the newly created "Android in a Box" icon in Applications > Lost and Found
Nothing.

Open Terminal

anbox session-manager
[EE 2017-05-05 05:44:59] [session_manager.cpp:119@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded

same error when running:
/snap/bin/anbox session-manager

@morphis
Copy link
Member

morphis commented May 5, 2017

@GeitHub The error message is pretty clear. Either /dev/binder or /dev/ashmem doesn't exist. Please ensure the binder_linux and ashmem_linux kernel modules are correctly loaded.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants