前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Waydroid安装问题(依赖: python3-gbinder 但是它将不会被安装)

Waydroid安装问题(依赖: python3-gbinder 但是它将不会被安装)

作者头像
zhangrelay
发布2022-09-23 09:44:49
1.1K1
发布2022-09-23 09:44:49
举报

Waydroid 是一种基于容器的方法,用于在 Ubuntu 等常规 GNU/Linux 系统上启动完整的 Android 系统。

之前类似,使用Anbox内容如下:

Anbox安卓apk应用安装及使用说明和常见问题_zhangrelay的博客-CSDN博客_anbox使用

概述

Waydroid 使用 Linux 命名空间(user、pid、uts、net、mount、ipc)在容器中运行完整的 Android 系统,并在任何基于 GNU/Linux 的平台上提供 Android 应用程序。

容器内的 Android 可以直接访问所需的硬件。

Android 运行时环境附带一个基于 LineageOS 的最小定制 Android 系统映像。 使用的图像目前基于 Android 10


支持系统非常多!!!

代码语言:txt
复制
docs.waydro.id    

最佳途径参考如上链接,官网是最权威的学习路径! 

1-

sudo apt install curl ca-certificates -y

2-

export DISTRO="ubuntu-latest"

export DISTRO="focal"

3-

sudo curl -# --proto '=https' --tlsv1.2 -Sf https://repo.waydro.id/waydroid.gpg --output /usr/share/keyrings/waydroid.gpg && \

echo "deb signed-by=/usr/share/keyrings/waydroid.gpg https://repo.waydro.id/ $DISTRO main" > ~/waydroid.list && \

sudo mv ~/waydroid.list /etc/apt/sources.list.d/waydroid.list && \

sudo apt update

4-

sudo apt install waydroid -y

完工,整个过程非常方便快捷!!!

Vanilla Vanilla ROM 主要是为那些不希望 Google 服务落后的人准备的。 Vanilla 可以由用户随意定制,它可以用作 FOSS,它可以与 GApps 一起使用。 大多数想要 FOSS 软件的用户通常都使用 Vanilla ROM,例如 LineageOS、/e/、GrapheneOS 和 AOSP。 


sudo waydroid init

8.52kbps  amazing !!!

amazing!!!

uget!


all: 

代码语言:javascript
复制
ros@ros:~$ sudo apt install curl ca-certificates -y
[sudo] ros 的密码: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
ca-certificates 已经是最新版 (20211016~20.04.1)。
curl 已经是最新版 (7.68.0-1ubuntu2.12)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 25 个软件包未被升级。
ros@ros:~$ export DISTRO="ubuntu-latest"
ros@ros:~$ sudo curl -# --proto '=https' --tlsv1.2 -Sf https://repo.waydro.id/waydroid.gpg --output /usr/share/keyrings/waydroid.gpg && \
> echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ $DISTRO main" > ~/waydroid.list && \
> sudo mv ~/waydroid.list /etc/apt/sources.list.d/waydroid.list && \
> sudo apt update
######################################################################### 100.0%
忽略:1 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu focal InRelease
命中:2 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu focal Release            
获取:3 http://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]        
获取:4 https://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu focal InRelease [4,679 B]
获取:6 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,094 B]
获取:7 https://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu focal/main amd64 Packages [1,096 kB]
获取:8 http://packages.osrfoundation.org/gazebo/ubuntu-stable focal InRelease [4,255 B]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu focal/main arm64 Packages [1,071 kB]
获取:10 http://packages.osrfoundation.org/gazebo/ubuntu-stable focal/main i386 Packages [25.6 kB]
获取:11 http://packages.osrfoundation.org/gazebo/ubuntu-stable focal/main amd64 Packages [93.6 kB]
获取:12 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]    
获取:13 http://packages.microsoft.com/repos/code stable/main arm64 Packages [103 kB]
获取:14 http://packages.microsoft.com/repos/code stable/main armhf Packages [102 kB]
命中:15 http://mirrors.aliyun.com/ubuntu focal InRelease                       
获取:16 http://mirrors.aliyun.com/ubuntu focal-updates InRelease [114 kB]      
获取:17 http://packages.microsoft.com/repos/code stable/main amd64 Packages [102 kB]
获取:18 http://mirrors.aliyun.com/ubuntu focal-backports InRelease [108 kB]    
获取:19 http://mirrors.aliyun.com/ubuntu focal-security InRelease [114 kB]     
获取:20 http://mirrors.aliyun.com/ubuntu focal/main Translation-zh_CN [113 kB] 
获取:21 http://mirrors.aliyun.com/ubuntu focal/restricted Translation-zh_CN [1,324 B]
获取:22 http://mirrors.aliyun.com/ubuntu focal/universe Translation-zh_CN [388 kB]
获取:23 http://mirrors.aliyun.com/ubuntu focal/multiverse Translation-zh_CN [4,612 B]
获取:24 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 Packages [2,039 kB]
获取:25 https://repo.waydro.id ubuntu-latest InRelease [1,351 B]               
获取:26 https://repo.waydro.id ubuntu-latest/main all Packages [2,375 B]       
获取:27 http://mirrors.aliyun.com/ubuntu focal-updates/main i386 Packages [706 kB]
获取:28 http://mirrors.aliyun.com/ubuntu focal-updates/main Translation-en [364 kB]
获取:29 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [277 kB]
获取:30 http://mirrors.aliyun.com/ubuntu focal-updates/main amd64 c-n-f Metadata [15.8 kB]
获取:31 http://mirrors.aliyun.com/ubuntu focal-updates/restricted amd64 Packages [1,224 kB]
获取:32 http://mirrors.aliyun.com/ubuntu focal-updates/restricted Translation-en [174 kB]
获取:33 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 Packages [939 kB]
获取:34 http://mirrors.aliyun.com/ubuntu focal-updates/universe i386 Packages [687 kB]
获取:35 http://mirrors.aliyun.com/ubuntu focal-updates/universe Translation-en [212 kB]
获取:36 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [391 kB]
获取:37 http://mirrors.aliyun.com/ubuntu focal-updates/universe DEP-11 48x48 Icons [257 kB]
获取:38 http://mirrors.aliyun.com/ubuntu focal-updates/universe DEP-11 64x64 Icons [458 kB]
获取:39 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [21.1 kB]
获取:40 http://mirrors.aliyun.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]
获取:41 http://mirrors.aliyun.com/ubuntu focal-backports/main amd64 DEP-11 Metadata [7,980 B]
获取:42 http://mirrors.aliyun.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [30.5 kB]
获取:43 http://mirrors.aliyun.com/ubuntu focal-security/main amd64 Packages [1,672 kB]
获取:44 http://mirrors.aliyun.com/ubuntu focal-security/main i386 Packages [480 kB]
获取:45 http://mirrors.aliyun.com/ubuntu focal-security/main Translation-en [282 kB]
获取:46 http://mirrors.aliyun.com/ubuntu focal-security/main amd64 DEP-11 Metadata [40.7 kB]
获取:47 http://mirrors.aliyun.com/ubuntu focal-security/main amd64 c-n-f Metadata [10.8 kB]
获取:48 http://mirrors.aliyun.com/ubuntu focal-security/restricted amd64 Packages [1,138 kB]
获取:49 http://mirrors.aliyun.com/ubuntu focal-security/restricted Translation-en [162 kB]
获取:50 http://mirrors.aliyun.com/ubuntu focal-security/universe i386 Packages [559 kB]
获取:51 http://mirrors.aliyun.com/ubuntu focal-security/universe amd64 Packages [714 kB]
获取:52 http://mirrors.aliyun.com/ubuntu focal-security/universe Translation-en [130 kB]
获取:53 http://mirrors.aliyun.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [77.4 kB]
获取:54 http://mirrors.aliyun.com/ubuntu focal-security/universe DEP-11 48x48 Icons [37.3 kB]
获取:55 http://mirrors.aliyun.com/ubuntu focal-security/universe DEP-11 64x64 Icons [77.8 kB]
获取:56 http://mirrors.aliyun.com/ubuntu focal-security/universe amd64 c-n-f Metadata [14.7 kB]
获取:57 http://mirrors.aliyun.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2,464 B]
已下载 16.7 MB,耗时 1分 1秒 (272 kB/s)                                        
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
有 489 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
ros@ros:~$ sudo apt install waydroid -y
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

下列软件包有未满足的依赖关系:
 waydroid : 依赖: python3-gbinder 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
ros@ros:~$ export DISTRO="focal"
ros@ros:~$ sudo curl -# --proto '=https' --tlsv1.2 -Sf https://repo.waydro.id/waydroid.gpg --output /usr/share/keyrings/waydroid.gpg && echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ $DISTRO main" > ~/waydroid.list && sudo mv ~/waydroid.list /etc/apt/sources.list.d/waydroid.list && sudo apt update
######################################################################### 100.0%
命中:1 http://mirrors.aliyun.com/ubuntu focal InRelease
命中:2 http://mirrors.aliyun.com/ubuntu focal-updates InRelease                
命中:3 http://packages.microsoft.com/repos/code stable InRelease               
忽略:4 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu focal InRelease          
命中:5 http://mirrors.aliyun.com/ubuntu focal-backports InRelease              
命中:6 http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu focal Release            
命中:7 https://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu focal InRelease        
命中:8 http://mirrors.aliyun.com/ubuntu focal-security InRelease               
命中:10 http://packages.osrfoundation.org/gazebo/ubuntu-stable focal InRelease 
命中:11 http://dl.google.com/linux/chrome/deb stable InRelease                 
获取:12 https://repo.waydro.id focal InRelease [1,343 B]
获取:13 https://repo.waydro.id focal/main all Packages [6,269 B]
已下载 7,612 B,耗时 3秒 (2,366 B/s)   
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
有 489 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
ros@ros:~$ sudo apt install waydroid -y
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会同时安装下列软件:
  bridge-utils libgbinder libglibutil liblxc-common liblxc1 libpam-cgfs lxc
  lxc-utils lxcfs python3-gbinder uidmap
建议安装:
  ifupdown btrfs-tools lvm2 lxc-templates lxctl
下列【新】软件包将被安装:
  bridge-utils libgbinder libglibutil liblxc-common liblxc1 libpam-cgfs lxc
  lxc-utils lxcfs python3-gbinder uidmap waydroid
升级了 0 个软件包,新安装了 12 个软件包,要卸载 0 个软件包,有 489 个软件包未被升级。
需要下载 3,318 kB 的归档。
解压缩后会消耗 26.2 MB 的额外空间。
获取:1 http://mirrors.aliyun.com/ubuntu focal/universe amd64 lxcfs amd64 4.0.3-0ubuntu1 [65.3 kB]
获取:2 http://mirrors.aliyun.com/ubuntu focal/main amd64 bridge-utils amd64 1.6-2ubuntu1 [30.5 kB]
获取:3 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 liblxc1 amd64 1:4.0.12-0ubuntu1~20.04.1 [335 kB]
获取:4 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 liblxc-common amd64 1:4.0.12-0ubuntu1~20.04.1 [728 kB]
获取:5 https://repo.waydro.id focal/main all libglibutil amd64 1.0.66 [25.3 kB]
获取:6 https://repo.waydro.id focal/main all libgbinder amd64 1.1.25 [54.1 kB]
获取:7 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 libpam-cgfs amd64 1:4.0.12-0ubuntu1~20.04.1 [32.7 kB]
获取:8 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 lxc-utils amd64 1:4.0.12-0ubuntu1~20.04.1 [1,737 kB]
获取:9 https://repo.waydro.id focal/main all python3-gbinder amd64 0.0.0+git.202207132158 [70.4 kB]
获取:10 https://repo.waydro.id focal/main all waydroid all 1.3.0 [211 kB]      
获取:11 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 lxc all 1:4.0.12-0ubuntu1~20.04.1 [2,972 B]
获取:12 http://mirrors.aliyun.com/ubuntu focal-updates/universe amd64 uidmap amd64 1:4.8.1-1ubuntu5.20.04.2 [26.0 kB]
已下载 3,318 kB,耗时 17秒 (194 kB/s)                                          
正在选中未选择的软件包 lxcfs。
(正在读取数据库 ... 系统当前共安装有 465033 个文件和目录。)
准备解压 .../00-lxcfs_4.0.3-0ubuntu1_amd64.deb  ...
正在解压 lxcfs (4.0.3-0ubuntu1) ...
正在选中未选择的软件包 bridge-utils。
准备解压 .../01-bridge-utils_1.6-2ubuntu1_amd64.deb  ...
正在解压 bridge-utils (1.6-2ubuntu1) ...
正在选中未选择的软件包 libglibutil。
准备解压 .../02-libglibutil_1.0.66_amd64.deb  ...
正在解压 libglibutil (1.0.66) ...
正在选中未选择的软件包 libgbinder。
准备解压 .../03-libgbinder_1.1.25_amd64.deb  ...
正在解压 libgbinder (1.1.25) ...
正在选中未选择的软件包 liblxc1。
准备解压 .../04-liblxc1_1%3a4.0.12-0ubuntu1~20.04.1_amd64.deb  ...
正在解压 liblxc1 (1:4.0.12-0ubuntu1~20.04.1) ...
正在选中未选择的软件包 liblxc-common。
准备解压 .../05-liblxc-common_1%3a4.0.12-0ubuntu1~20.04.1_amd64.deb  ...
正在解压 liblxc-common (1:4.0.12-0ubuntu1~20.04.1) ...
正在选中未选择的软件包 libpam-cgfs。
准备解压 .../06-libpam-cgfs_1%3a4.0.12-0ubuntu1~20.04.1_amd64.deb  ...
正在解压 libpam-cgfs (1:4.0.12-0ubuntu1~20.04.1) ...
正在选中未选择的软件包 lxc-utils。
准备解压 .../07-lxc-utils_1%3a4.0.12-0ubuntu1~20.04.1_amd64.deb  ...
正在解压 lxc-utils (1:4.0.12-0ubuntu1~20.04.1) ...
正在选中未选择的软件包 lxc。
准备解压 .../08-lxc_1%3a4.0.12-0ubuntu1~20.04.1_all.deb  ...
正在解压 lxc (1:4.0.12-0ubuntu1~20.04.1) ...
正在选中未选择的软件包 python3-gbinder。
准备解压 .../09-python3-gbinder_0.0.0+git.202207132158_amd64.deb  ...
正在解压 python3-gbinder (0.0.0+git.202207132158) ...
正在选中未选择的软件包 uidmap。
准备解压 .../10-uidmap_1%3a4.8.1-1ubuntu5.20.04.2_amd64.deb  ...
正在解压 uidmap (1:4.8.1-1ubuntu5.20.04.2) ...
正在选中未选择的软件包 waydroid。
准备解压 .../11-waydroid_1.3.0_all.deb  ...
正在解压 waydroid (1.3.0) ...
正在设置 libpam-cgfs (1:4.0.12-0ubuntu1~20.04.1) ...
正在设置 lxcfs (4.0.3-0ubuntu1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/lxcfs.service → /lib
/systemd/system/lxcfs.service.
正在设置 uidmap (1:4.8.1-1ubuntu5.20.04.2) ...
正在设置 bridge-utils (1.6-2ubuntu1) ...
正在设置 libglibutil (1.0.66) ...
正在设置 libgbinder (1.1.25) ...
正在设置 python3-gbinder (0.0.0+git.202207132158) ...
正在设置 liblxc1 (1:4.0.12-0ubuntu1~20.04.1) ...
正在设置 lxc-utils (1:4.0.12-0ubuntu1~20.04.1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/lxc-net.service → /l
ib/systemd/system/lxc-net.service.
Created symlink /etc/systemd/system/multi-user.target.wants/lxc.service → /lib/s
ystemd/system/lxc.service.
Setting up lxc dnsmasq configuration.
正在设置 lxc (1:4.0.12-0ubuntu1~20.04.1) ...
正在设置 liblxc-common (1:4.0.12-0ubuntu1~20.04.1) ...
正在设置 waydroid (1.3.0) ...
ERROR: WayDroid is not initialized, run "waydroid init"
正在处理用于 gnome-menus (3.36.0-1ubuntu1) 的触发器 ...
正在处理用于 libc-bin (2.31-0ubuntu9.9) 的触发器 ...
正在处理用于 systemd (245.4-4ubuntu3.17) 的触发器 ...
正在处理用于 man-db (2.9.1-1) 的触发器 ...
正在处理用于 desktop-file-utils (0.24-1ubuntu3) 的触发器 ...
正在处理用于 mime-support (3.64ubuntu1) 的触发器 ...
ros@ros:~$ 

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2022-08-18,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
容器服务
腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档