[Repository/Mirror] 仓库安装的anbox没法启动,也没法卸载
Tofloor
poster avatar
soyomaker
deepin
2021-01-19 21:43
Author

使用sudo apt install anbox终端安装,但是启动不了,卡死在开始页面,完全动弹不得,也没法卸载,不知道为啥

 

Reply Favorite View the author
All Replies
caoayu
deepin
2021-01-19 22:49
#1

通过命令行启动看看输出有什么报错

Reply View the author
soyomaker
deepin
2021-01-19 23:03
#2
lianghb@lianghb-PC:~$ anbox                                                                                                                                                                                                        
Unknown command 'run'                                                                                                                                                                                                              
NAME:                                                                                                                                                                                                                              
    anbox - anbox                                                                                                                                                                                                                  
                                                                                                                                                                                                                                   
USAGE:                                                                                                                                                                                                                             
    anbox [command options] [arguments...]                                                                                                                                                                                         
                                                                                                                                                                                                                                   
COMMANDS:                                                                                                           
    wait-ready                     Wait until the Android system has successfully booted                            
    check-features                 Check that the host system supports all necessary features                       
    version                        print the version of the daemon                                                  
    help                           prints a short help message                                                      
    launch                         Launch an Activity by sending an intent                                          
    session-manager                Run the the anbox session manager                                                
    system-info                    Print various information about the system we're running on     

 

lianghb@lianghb-PC:~$ run anbox
bash: run:未找到命令    

 

lianghb@lianghb-PC:~$ anbox session-manager
[ 2021-01-19 07:09:26] [session_manager.cpp:130@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded

 

lianghb@lianghb-PC:~$ adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully

 

我不知道怎么使用终端运行这个应用,然后我弄的这些命令,部分提示没有run命令,好像只有这个了

Reply View the author
soyomaker
deepin
2021-01-19 23:33
#3
caoayu

通过命令行启动看看输出有什么报错

lianghb@lianghb-PC:~$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
[ 2021-01-19 07:30:00] [daemon.cpp:61@Run] Application manager service is not running yet

终端运行命令之后,打开窗口,也是卡死在开始这里,然后出现上面代码框里的错误提示.

Reply View the author
SamLukeYes
deepin
2021-01-20 00:01
#4

原来 deepin 的仓库里有 anbox,我才发现

Reply View the author
soyomaker
deepin
2021-01-20 05:01
#5
SamLukeYes

原来 deepin 的仓库里有 anbox,我才发现

有的,但是没鸟用,启动不能,这包很难搞,别的包都是一条命令搞定,这个包要十几二十条命令,还有很多命令出错的,我都卸载了,从入门到放弃的典范软件,还是等深度官方移植吧,不然没法用.

Reply View the author
SamLukeYes
deepin
2021-01-20 05:46
#6
soyomaker

有的,但是没鸟用,启动不能,这包很难搞,别的包都是一条命令搞定,这个包要十几二十条命令,还有很多命令出错的,我都卸载了,从入门到放弃的典范软件,还是等深度官方移植吧,不然没法用.

有一说一,确实。不过从它的项目主页来看,它似乎是个个人项目,做成这样已经挺厉害了

Reply View the author
h2263618739
deepin
2021-01-20 07:59
#7

缺少android.img文件,https://build.anbox.io/android-images/这里下载对应版本的,另外看下systemd里有没有anbox-container-manager.service, 运行要启动这个服务,amd64平台有很多软件没法用,以下是QQ音乐,就是播放声音有延迟

 

Reply View the author
soyomaker
deepin
2021-01-20 10:01
#8
h2263618739

缺少android.img文件,https://build.anbox.io/android-images/这里下载对应版本的,另外看下systemd里有没有anbox-container-manager.service, 运行要启动这个服务,amd64平台有很多软件没法用,以下是QQ音乐,就是播放声音有延迟

 

谢谢,我明天再试试,看看还能不能挽救下。

Reply View the author
soyomaker
deepin
2021-01-20 10:03
#9
SamLukeYes

有一说一,确实。不过从它的项目主页来看,它似乎是个个人项目,做成这样已经挺厉害了

是很好啊,所以我才折腾了这么久,明天再试一试看看,太难了。

Reply View the author
depqazge
deepin
2021-01-26 23:42
#10

我也遇到了一样的问题,根据/usr/share/doc/anbox/README文档的描述,需要先把android.iso放到/var/lib/anbox下,再启动systemctl start anbox-container-manager和systemctl start anbox-session-manager --user才可以打开,需要严格按顺序来,不是开箱即用的。

Reply View the author
SamLukeYes
deepin
2021-01-27 00:22
#11
depqazge

我也遇到了一样的问题,根据/usr/share/doc/anbox/README文档的描述,需要先把android.iso放到/var/lib/anbox下,再启动systemctl start anbox-container-manager和systemctl start anbox-session-manager --user才可以打开,需要严格按顺序来,不是开箱即用的。

把 start 改成 enable 吧,不然你每次重启又要 start 一遍

Reply View the author
soyomaker
deepin
2021-01-27 23:30
#12
depqazge

我也遇到了一样的问题,根据/usr/share/doc/anbox/README文档的描述,需要先把android.iso放到/var/lib/anbox下,再启动systemctl start anbox-container-manager和systemctl start anbox-session-manager --user才可以打开,需要严格按顺序来,不是开箱即用的。

我都放弃了,现在我直接连手机来用安卓软件,QTSCRCPY连着手机好像也不错,就是打不了标点符号。

Reply View the author
zcqzcg
deepin
2021-04-28 22:45
#13

结合 kernel 社区/ mint 社区/ anbox 社区 的 issues, 结合抄出来的一篇 deepin 安装 anbox 的解决文档:

https://www.cnblogs.com/gettolive/p/14714022.html

Reply View the author
Rubbish
deepin
2021-05-14 00:43
#14
zcqzcg

结合 kernel 社区/ mint 社区/ anbox 社区 的 issues, 结合抄出来的一篇 deepin 安装 anbox 的解决文档:

https://www.cnblogs.com/gettolive/p/14714022.html

多谢,按照您的方法操作确实成功了。

奇怪的地方在于自己编译的anbox需要mount到/dev/binderfs,看别人都是挂载到binder,然后源里的不知道该挂载到哪里去。

Reply View the author