Cannot install anbox [SOLVED]

If none of the more specific forums is the right place to ask

Cannot install anbox [SOLVED]

Postby Scorpion » 2020-07-07 06:32

Code: Select all
apt install anbox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  empathy-common im-config libfcitx-config4 libfcitx-core0 libfcitx-gclient1 libfcitx-qt5-1
  libfcitx-qt5-data libfcitx-utils0 libfolks-telepathy25 libgettextpo0 libm17n-0 libotf0 libpresage-data
  libpresage1v5 libtelepathy-farstream3 m17n-db presage python3-gst-1.0 telepathy-gabble telepathy-salut
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  bridge-utils busybox-static cloud-image-utils distro-info libboost-log1.67.0 liblxc1 libpam-cgfs
  libsdl2-image-2.0-0 lxc lxc-templates lxcfs uidmap
Suggested packages:
  cloud-utils-euca shunit2 btrfs-progs python3-lxc
The following packages will be REMOVED:
  busybox
The following NEW packages will be installed:
  anbox bridge-utils busybox-static cloud-image-utils distro-info libboost-log1.67.0 liblxc1 libpam-cgfs
  libsdl2-image-2.0-0 lxc lxc-templates lxcfs uidmap
0 upgraded, 13 newly installed, 1 to remove and 0 not upgraded.
Need to get 83.1 kB/3,822 kB of archives.
After this operation, 12.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://deb.debian.org/debian buster/main amd64 lxc-templates amd64 3.0.3-1
  404  Not Found [IP: 2a04:4e42:39::204 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/l/lxc-templates/lxc-templates_3.0.3-1_amd64.deb  404  Not Found [IP: 2a04:4e42:39::204 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Is because this package https://deb.debian.org/debian/pool/main ... _amd64.deb: is offline?
Last edited by Scorpion on 2020-07-09 19:21, edited 1 time in total.
User avatar
Scorpion
 
Posts: 222
Joined: 2018-10-17 11:38

Re: Cannot install anbox

Postby Head_on_a_Stick » 2020-07-07 06:48

That's not the current buster version of the package.
Code: Select all
# apt update
# apt install anbox
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12316
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Cannot install anbox

Postby Scorpion » 2020-07-07 17:19

I did it, I got the same error.

After I installed some of the required packages for anbox.
I cannot install lxc-templates:
Code: Select all
apt install lxc-templates
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  im-config libboost-log1.67.0 libfcitx-config4 libfcitx-core0 libfcitx-gclient1 libfcitx-qt5-1
  libfcitx-qt5-data libfcitx-utils0 libgettextpo0 libm17n-0 libotf0 libpresage-data libpresage1v5 m17n-db
  presage python3-gst-1.0
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  lxc lxcfs uidmap
Suggested packages:
  btrfs-progs python3-lxc
The following NEW packages will be installed:
  lxc lxc-templates lxcfs uidmap
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 83.1 kB/1,137 kB of archives.
After this operation, 3,465 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://deb.debian.org/debian buster/main amd64 lxc-templates amd64 3.0.3-1
  404  Not Found [IP: 2a04:4e42:1b::204 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/l/lxc-templates/lxc-templates_3.0.3-1_amd64.deb  404  Not Found [IP: 2a04:4e42:1b::204 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

And anbox:
Code: Select all
apt install anbox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  im-config libfcitx-config4 libfcitx-core0 libfcitx-gclient1 libfcitx-qt5-1 libfcitx-qt5-data
  libfcitx-utils0 libgettextpo0 libm17n-0 libotf0 libpresage-data libpresage1v5 m17n-db presage
  python3-gst-1.0
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libsdl2-image-2.0-0 lxc lxc-templates lxcfs uidmap
Suggested packages:
  btrfs-progs python3-lxc
The following NEW packages will be installed:
  anbox libsdl2-image-2.0-0 lxc lxc-templates lxcfs uidmap
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 83.1 kB/1,881 kB of archives.
After this operation, 6,252 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://deb.debian.org/debian buster/main amd64 lxc-templates amd64 3.0.3-1
  404  Not Found [IP: 2a04:4e42:39::204 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/l/lxc-templates/lxc-templates_3.0.3-1_amd64.deb  404  Not Found [IP: 2a04:4e42:39::204 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
User avatar
Scorpion
 
Posts: 222
Joined: 2018-10-17 11:38

Re: Cannot install anbox

Postby Scorpion » 2020-07-07 17:42

I downloaded and manually installed 2 packages "lxc_3.1.0+really3.0.3-8_amd64.deb" and "lxc-templates_3.0.4-0+deb10u1_amd64.deb".
Code: Select all
dpkg -i *.deb
Selecting previously unselected package lxc.
(Reading database ... 612527 files and directories currently installed.)
Preparing to unpack lxc_3.1.0+really3.0.3-8_amd64.deb ...
Unpacking lxc (1:3.1.0+really3.0.3-8) ...
Selecting previously unselected package lxc-templates.
Preparing to unpack lxc-templates_3.0.4-0+deb10u1_amd64.deb ...
Unpacking lxc-templates (3.0.4-0+deb10u1) ...
Setting up lxc (1:3.1.0+really3.0.3-8) ...
Warning: unable to find a suitable fs in /proc/mounts, is it mounted?
Use --subdomainfs to override.
Failed to run 'apparmor_parser -rWT /etc/apparmor.d/lxc-containers'. You will probably need to runn it by hand at some point.
Created symlink /etc/systemd/system/multi-user.target.wants/lxc-net.service → /lib/systemd/system/lxc-net.service.
Created symlink /etc/systemd/system/multi-user.target.wants/lxc.service → /lib/systemd/system/lxc.service.
Setting up lxc-templates (3.0.4-0+deb10u1) ...
Processing triggers for systemd (241-7~deb10u3) ...
Processing triggers for man-db (2.8.5-2) ...


So I was able to install anbox.

If I launch it from the GUI after the loading nothing happens.
User avatar
Scorpion
 
Posts: 222
Joined: 2018-10-17 11:38

Re: Cannot install anbox

Postby Head_on_a_Stick » 2020-07-07 17:45

Works for me:
Code: Select all
~# apt install anbox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bridge-utils cloud-image-utils distro-info dnsmasq-base liblxc1 libpam-cgfs libprotobuf-lite17 lxc lxc-templates lxcfs uidmap
Suggested packages:
  cloud-utils-euca shunit2 lvm2 python3-lxc
The following NEW packages will be installed:
  anbox bridge-utils cloud-image-utils distro-info dnsmasq-base liblxc1 libpam-cgfs libprotobuf-lite17 lxc lxc-templates lxcfs uidmap
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 2849 kB of archives.
After this operation, 8793 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://cdn-aws.deb.debian.org/debian buster/main amd64 liblxc1 amd64 1:3.1.0+really3.0.3-8 [298 kB]
Get:2 https://cdn-aws.deb.debian.org/debian buster/main amd64 libprotobuf-lite17 amd64 3.6.1.3-2 [167 kB]
Get:3 https://cdn-aws.deb.debian.org/debian buster/main amd64 lxc amd64 1:3.1.0+really3.0.3-8 [752 kB]
Get:4 https://cdn-aws.deb.debian.org/debian buster/contrib amd64 anbox amd64 0.0~git20190124-1 [677 kB]
Get:5 https://cdn-aws.deb.debian.org/debian buster/main amd64 bridge-utils amd64 1.6-2 [34.8 kB]
Get:6 https://cdn-aws.deb.debian.org/debian buster/main amd64 cloud-image-utils all 0.29-1 [23.7 kB]
Get:7 https://cdn-aws.deb.debian.org/debian buster/main amd64 distro-info amd64 0.21 [19.0 kB]
Get:8 https://cdn-aws.deb.debian.org/debian buster/main amd64 dnsmasq-base amd64 2.80-1 [440 kB]
Get:9 https://cdn-aws.deb.debian.org/debian buster/main amd64 libpam-cgfs amd64 1:3.1.0+really3.0.3-8 [51.1 kB]
Get:10 https://cdn-aws.deb.debian.org/debian buster/main amd64 lxc-templates amd64 3.0.4-0+deb10u1 [83.5 kB]
Get:11 https://cdn-aws.deb.debian.org/debian buster/main amd64 lxcfs amd64 3.0.3-2 [44.1 kB]
Get:12 https://cdn-aws.deb.debian.org/debian buster/main amd64 uidmap amd64 1:4.5-1.1 [258 kB]
Fetched 2849 kB in 1s (2592 kB/s)
Preconfiguring packages ...
Selecting previously unselected package liblxc1.
(Reading database ... 377784 files and directories currently installed.)
Preparing to unpack .../00-liblxc1_1%3a3.1.0+really3.0.3-8_amd64.deb ...
Unpacking liblxc1 (1:3.1.0+really3.0.3-8) ...
Selecting previously unselected package libprotobuf-lite17:amd64.
Preparing to unpack .../01-libprotobuf-lite17_3.6.1.3-2_amd64.deb ...
Unpacking libprotobuf-lite17:amd64 (3.6.1.3-2) ...
Selecting previously unselected package lxc.
Preparing to unpack .../02-lxc_1%3a3.1.0+really3.0.3-8_amd64.deb ...
Unpacking lxc (1:3.1.0+really3.0.3-8) ...
Selecting previously unselected package anbox.
Preparing to unpack .../03-anbox_0.0~git20190124-1_amd64.deb ...
Unpacking anbox (0.0~git20190124-1) ...
Selecting previously unselected package bridge-utils.
Preparing to unpack .../04-bridge-utils_1.6-2_amd64.deb ...
Unpacking bridge-utils (1.6-2) ...
Selecting previously unselected package cloud-image-utils.
Preparing to unpack .../05-cloud-image-utils_0.29-1_all.deb ...
Unpacking cloud-image-utils (0.29-1) ...
Selecting previously unselected package distro-info.
Preparing to unpack .../06-distro-info_0.21_amd64.deb ...
Unpacking distro-info (0.21) ...
Selecting previously unselected package dnsmasq-base.
Preparing to unpack .../07-dnsmasq-base_2.80-1_amd64.deb ...
Unpacking dnsmasq-base (2.80-1) ...
Selecting previously unselected package libpam-cgfs.
Preparing to unpack .../08-libpam-cgfs_1%3a3.1.0+really3.0.3-8_amd64.deb ...
Unpacking libpam-cgfs (1:3.1.0+really3.0.3-8) ...
Selecting previously unselected package lxc-templates.
Preparing to unpack .../09-lxc-templates_3.0.4-0+deb10u1_amd64.deb ...
Unpacking lxc-templates (3.0.4-0+deb10u1) ...
Selecting previously unselected package lxcfs.
Preparing to unpack .../10-lxcfs_3.0.3-2_amd64.deb ...
Unpacking lxcfs (3.0.3-2) ...
Selecting previously unselected package uidmap.
Preparing to unpack .../11-uidmap_1%3a4.5-1.1_amd64.deb ...
Unpacking uidmap (1:4.5-1.1) ...
Setting up distro-info (0.21) ...
Setting up libpam-cgfs (1:3.1.0+really3.0.3-8) ...
Setting up lxcfs (3.0.3-2) ...
Running in chroot, ignoring request.
Created symlink /etc/systemd/system/multi-user.target.wants/lxcfs.service → /lib/systemd/system/lxcfs.service.
Setting up libprotobuf-lite17:amd64 (3.6.1.3-2) ...
Setting up uidmap (1:4.5-1.1) ...
Setting up liblxc1 (1:3.1.0+really3.0.3-8) ...
Setting up cloud-image-utils (0.29-1) ...
Setting up dnsmasq-base (2.80-1) ...
Setting up bridge-utils (1.6-2) ...
Setting up lxc (1:3.1.0+really3.0.3-8) ...
Warning: unable to find a suitable fs in /proc/mounts, is it mounted?
Use --subdomainfs to override.
Failed to run 'apparmor_parser -rWT /etc/apparmor.d/lxc-containers'. You will probably need to runn it by hand at some point.
Created symlink /etc/systemd/system/multi-user.target.wants/lxc-net.service → /lib/systemd/system/lxc-net.service.
Created symlink /etc/systemd/system/multi-user.target.wants/lxc.service → /lib/systemd/system/lxc.service.
Setting up lxc-templates (3.0.4-0+deb10u1) ...
Setting up anbox (0.0~git20190124-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/anbox-container-manager.service → /lib/systemd/system/anbox-container-manager.service.
Processing triggers for mime-support (3.62) ...
Processing triggers for gnome-menus (3.31.4-3) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for dbus (1.12.16-1) ...
Processing triggers for desktop-file-utils (0.23-4) ...
~#

Please post the full output of
Code: Select all
# apt update
apt policy lxc-templates
nslookup deb.debian.org

The nslookup command is provided by the dnsutils package.

Scorpion wrote:If I launch it from the GUI after the loading nothing happens

Did you check ~/.xsession-errors or try to launch it from a terminal to catch any error messages?
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12316
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Cannot install anbox

Postby eriefisher » 2020-07-07 17:55

Did you load the ashmem_linux and binder_linux modules? Do you have the android.img? and is it in the right place?

https://docs.anbox.io/userguide/install ... dules.html

https://techpiezo.com/android/install-a ... in-ubuntu/

I can get it to start but haven't figured out how to get it to work and it crashes for some reason. I have not put much time or attention into it though.
____________________________________________
There's a manual?
Siduction
Debian Sid
Xfce4 4.14
User avatar
eriefisher
 
Posts: 129
Joined: 2008-06-04 03:49
Location: Ontario's South Coast

Re: Cannot install anbox

Postby cuckooflew » 2020-07-08 02:41

It works for me, running Debian SID, (that should not matter), but did the OP read the "Deabian Readme" doc, ? eg:
Code: Select all
less /usr/share/doc/README.Debian
There is some relevant information there.
Also I did need to read the 'man andbox' , but it is rather simple.
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 550
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Cannot install anbox

Postby Scorpion » 2020-07-08 14:34

Code: Select all
apt update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://download.opensuse.org/repositories/home:/stevenpusser:/codelite/Debian_9.0  InRelease
Hit:4 http://deb.debian.org/debian buster-backports InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.

Hit:3 Is for the liquorix kernel:
Code: Select all
uname -r
5.0.0-19.1-liquorix-amd64

Code: Select all
apt policy lxc-templates
lxc-templates:
  Installed: 3.0.4-0+deb10u1
  Candidate: 3.0.4-0+deb10u1
  Version table:
 *** 3.0.4-0+deb10u1 100
        100 /var/lib/dpkg/status
     3.0.3-1 500
        500 http://deb.debian.org/debian buster/main amd64 Packages

Code: Select all
nslookup deb.debian.org
Server:      192.168.1.254
Address:   192.168.1.254#53

Non-authoritative answer:
deb.debian.org   canonical name = debian.map.fastly.net.
Name:   debian.map.fastly.net
Address: 151.101.114.133
Name:   debian.map.fastly.net
Address: 2a04:4e42:39::645

I checked now the ~/.xsession-errors not sure If there is something useful.
I tried to launch it from the terminal but:
Code: Select all
anbox launch
[ 2020-07-08 15:20:36] [launch.cpp:169@operator()] The intent you provided is invalid. Please provide a correct launch intent.
[ 2020-07-08 15:20:36] [launch.cpp:170@operator()] For example to launch the application manager, run:
[ 2020-07-08 15:20:36] [launch.cpp:171@operator()] $ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

It seems that from the terminal it doesn' open the GUI, anyway I still have to learn how use it from the terminal.
User avatar
Scorpion
 
Posts: 222
Joined: 2018-10-17 11:38

Re: Cannot install anbox

Postby Scorpion » 2020-07-08 14:46

eriefisher wrote:Did you load the ashmem_linux and binder_linux modules? Do you have the android.img? and is it in the right place?

https://docs.anbox.io/userguide/install ... dules.html

https://techpiezo.com/android/install-a ... in-ubuntu/

I can get it to start but haven't figured out how to get it to work and it crashes for some reason. I have not put much time or attention into it though.

I am using a 5 kernel, usually 5 kernels have those modules, how can I check?

I am now placing the android image.
But I need a prebuild image, right? Now I have "aosp-x86-oreo.iso", I am downloading the image from https://build.anbox.io/android-images.
cuckooflew wrote:
It works for me, running Debian SID, (that should not matter), but did the OP read the "Deabian Readme" doc, ? eg:
Code: Select all
    less /usr/share/doc/README.Debian

There is some relevant information there.
Also I did need to read the 'man andbox' , but it is rather simple.

The files is:
Code: Select all
gedit /usr/share/doc/anbox/README.Debian

How can I launch an app from the terminal (with anbox)?
User avatar
Scorpion
 
Posts: 222
Joined: 2018-10-17 11:38

Re: Cannot install anbox

Postby cuckooflew » 2020-07-08 14:51

The files is:

Code: Select all
gedit /usr/share/doc/anbox/README.Debian

OOOPs , yes you are right, sorry
You launch it with the "launch" option, see below:


===edit====^^^^^^
Try 'man anbox' it will show you a example:
Code: Select all
anbox [command options] [arguments...]

https://manpages.debian.org/unstable/anbox/anbox.1.en.html
================================
To launch an Android application from command line:

Code: Select all
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

SEE ALSO
/usr/share/doc/anbox/README.Debian

You should get something if you just copy/paste the example, but still need to have some apps downloaded, then you can run it 'anbox launch --package="this app or that app"'....someting like that,
the same, I have not had a chance to try much with it, just enough to see it does work though.
Of course this is assuming it has been installed properly, if you are getting errors when installing, something is wrong, but your errors show it is installed.
Hint:from your error message:
Code: Select all
For example to launch the application manager, run:
---snip---- $ anbox launch --package=org.anbox.appmgr
The $ is NOT part of the command.
Last edited by cuckooflew on 2020-07-08 16:26, edited 1 time in total.
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 550
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Cannot install anbox

Postby cuckooflew » 2020-07-08 15:06

Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 550
Joined: 2018-05-10 19:34
Location: Some where out west

Re: Cannot install anbox

Postby eriefisher » 2020-07-08 17:31

Scorpion wrote:I am using a 5 kernel, usually 5 kernels have those modules, how can I check?


Yes the 5..... kernels should have the modules built in but for me they were not loaded. You can check with lsmod if not just modprobe ashmem_linux and modprobe_binder_linux.
____________________________________________
There's a manual?
Siduction
Debian Sid
Xfce4 4.14
User avatar
eriefisher
 
Posts: 129
Joined: 2008-06-04 03:49
Location: Ontario's South Coast

Re: Cannot install anbox

Postby Scorpion » 2020-07-08 17:36

My kernel doesn' t have the modules.
I checked with "modprobe binder_linux" and "modprobe ashmem_linux".
So I installed them https://github.com/anbox/anbox-modules/.

And I copied the prebuild android image:
Now, move the downloaded .img file to the folder – /var/lib/anbox/android.img. Note: It is important to rename the file android_amd64.img to android.img.
User avatar
Scorpion
 
Posts: 222
Joined: 2018-10-17 11:38

Re: Cannot install anbox

Postby eriefisher » 2020-07-08 17:59

They were likely there. By modprobe'ing you loaded them lsmod would have listed them if they were loaded.
____________________________________________
There's a manual?
Siduction
Debian Sid
Xfce4 4.14
User avatar
eriefisher
 
Posts: 129
Joined: 2008-06-04 03:49
Location: Ontario's South Coast

Re: Cannot install anbox

Postby Head_on_a_Stick » 2020-07-08 19:07

Can we please stop discussing how to make anbox work? That's off-topic for this thread...

@OP: can you "see" the current version of lxc-templates if you change your sources from the redirector to a specific mirror?

The 'apt update' output looks fine but I should really have asked for your sources:
Code: Select all
grep -v '^$\|^#' /etc/apt/sources.list{,.d/*}
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12316
Joined: 2014-06-01 17:46
Location: /dev/chair

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable