blog icon indicating copy to clipboard operation
blog copied to clipboard

Deepin 安装和使用 anbox

Open hanxi opened this issue 6 years ago • 5 comments

1. 安装 anbox

sudo add-apt-repository ppa:morphis/anbox-support
sudo apt update
sudo apt install anbox-modules-dkms
sudo modprobe ashmem_linux
sudo modprobe binder_linux
sudo snap install --edge --devmode anbox

问题1: 遇到添加 ppa 失败

Error: could not find a distribution template for Deepin/stable

参考这里的解决方法 https://unix.stackexchange.com/questions/520715/deepin-15-10-error-could-not-find-a-distribution-template-for-deepin-stable

sudo vim /usr/share/python-apt/templates/Deepin.info

修改这个

Suite: unstable

Suite: stable

问题2: sudo apt update 报错

sudo vim /etc/apt/sources.list.d/morphis-ubuntu-anbox-support-eoan.list

修改这个

deb http://ppa.launchpad.net/morphis/anbox-support/ubuntu eoan main

deb http://ppa.launchpad.net/morphis/anbox-support/ubuntu disco main

问题3: sudo snap install --edge --devmode anbox 下载超级慢

# 开始设置代理
$ sudo systemctl edit snapd
加上:
[Service]
Environment="http_proxy=http://127.0.0.1:port"
Environment="https_proxy=http://127.0.0.1:port"

#保存退出。
$ sudo systemctl daemon-reload
$ sudo systemctl restart snapd

2. 安装 arm 环境和 google play store

下载这里的脚本 https://github.com/geeks-r-us/anbox-playstore-installer

sudo bash install-houdini-only.sh 
sudo bash install-playstore.sh

问题4: 上不了 google? 如何配置代理呢?

解决方法来自这里 https://github.com/anbox/anbox/issues/398

adb shell settings put global http_proxy 192.168.2.2:8080

自测目前可以正常使用 GooglePlay Store 里的微信。

hanxi avatar Oct 11 '19 01:10 hanxi

请问deepin应该如何卸载anbox呢?

chenxiex avatar Mar 02 '20 03:03 chenxiex

请问deepin应该如何卸载anbox呢?

sudo snap remove anbox

hanxi avatar Mar 02 '20 11:03 hanxi

谢谢。我已经成功卸载anbox了。似乎还要加一个sudo apt remove anbox-modules-dkms好点,这样会自动卸载anbox内核模块

chenxiex avatar Mar 07 '20 10:03 chenxiex

deepin V20下添加ppa的报错变成了

could not find a distribution template for Deepin/n/a

将unstable改成stable也没有用了

yutouyes avatar Apr 17 '20 12:04 yutouyes

deepin V20下添加ppa的报错变成了

could not find a distribution template for Deepin/n/a

将unstable改成stable也没有用了

估计要改disco吧,v20改成debian 10,要另外找对应的ppa了,我现在没装deepin了。

hanxi avatar Apr 17 '20 15:04 hanxi