首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在Ubuntu20.04上安装Anbox时出现的许多错误

在Ubuntu20.04上安装Anbox时出现的许多错误
EN

Ask Ubuntu用户
提问于 2021-08-18 12:22:59
回答 1查看 3.2K关注 0票数 3

有什么办法可以在20.04使用收件箱吗?当我运行sudo apt-get install dkms时,我会得到这个错误

代码语言:javascript
运行
复制
sudo apt install dkms

Reading package lists... Done
Building dependency tree       
Reading state information... Done
dkms is already the newest version (2.8.1-5ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up anbox-modules-dkms (13) ...
Removing old anbox-1 DKMS files...

------------------------------
Deleting module version: 1
completely from the DKMS tree.
------------------------------
Done.
Loading new anbox-1 DKMS files...
Building for 5.11.0-27-generic
Building initial module for 5.11.0-27-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/anbox-modules-d
kms.0.crash'
Error! Bad return status for module build on kernel: 5.11.0-27-generic (x86_64)
Consult /var/lib/dkms/anbox/1/build/make.log for more information.
dpkg: error processing package anbox-modules-dkms (--configure):
 installed anbox-modules-dkms package post-installation script subprocess return
ed error exit status 10
Errors were encountered while processing:
 anbox-modules-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

当我运行sudo apt install linux-headers-generic anbox-modules-dkms时,它会给出以下错误

代码语言:javascript
运行
复制
sudo apt install linux-headers-generic anbox-modules-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package anbox-modules-dkms is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'anbox-modules-dkms' has no installation candidate

当我运行ls -1 /dev/{ashmem,binder}时,它给了我这个--

代码语言:javascript
运行
复制
ls -1 /dev/{ashmem,binder}
ls: cannot access '/dev/binder': No such file or directory
**/dev/ashmem**

我做的是什么--sudo add-apt-repository ppa:morphis/anbox-support--给我这个--

代码语言:javascript
运行
复制
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/morphis/anbox-support/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

通过运行snap info anbox,它给出了--

代码语言:javascript
运行
复制
snap info anbox
name:      anbox
summary:   Android in a Box
publisher: Simon Fels (morphis)
store-url: https://snapcraft.io/anbox
contact:   https://anbox.io
license:   unset
description: |
  Runtime for Android applications which runs a full Android system
  in a container using Linux namespaces (user, ipc, net, mount) to
  separate the Android system fully from the host.
  
  You can find further details in our documentation at
  https://github.com/anbox/anbox/blob/master/README.md
commands:
  - anbox
  - anbox.android-settings
  - anbox.appmgr
  - anbox.collect-bug-info
  - anbox.shell
services:
  anbox.container-manager: simple, enabled, active
snap-id:      Nr9K6UJaIOD8wHpDEQl16nabFFt9LLEQ
tracking:     latest/beta
refresh-date: today at 15:58 IST
channels:
  latest/stable:    --                                   
  latest/candidate: --                                   
  latest/beta:      4-56c25f1     2020-01-02 (186) 391MB devmode
  latest/edge:      4+gitrad377ff 2021-05-27 (213) 405MB devmode
installed:          4-56c25f1                (186) 391MB devmode
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2021-11-24 15:29:01

显然,不需要再安装内核从Ubuntu 19.04出发,因此也不需要PPA。

安装ashmembinder只需使用

代码语言:javascript
运行
复制
sudo modprobe ashmem_linux
sudo modprobe binder_linux

若要验证安装是否成功,请使用lsmod | grep -e ashmem_linux -e binder_linux

确保不要拼错“灰烬”

现在可以使用snap安装最新的anbox开发测试版。

代码语言:javascript
运行
复制
snap install anbox --beta --devmode

但是在anbox git页面上,建议要更新到边缘版本。

代码语言:javascript
运行
复制
snap refresh --devmode --edge anbox

在第一次开始时,我发现了一些有用的预装东西,同时还在午餐时使用了应用程序。

代码语言:javascript
运行
复制
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

如果符合您的兴趣,您可以按照本程序安装Google。

票数 4
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1358721

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档