我正在尝试按照本教程在 PC/jetson nano-ARM64(运行 ubuntu 18.04)上构建/运行 Android Cuttlefish:如何在 PC/ARM64 上构建/运行 Cuttlefish
在某个时候,我应该这样做:
[在 ARM64 上]
设置运行 x86_64 二进制文件
以 root 用户身份执行以下操作:
apt install qemu-user-static
dpkg --add-architecture amd64
删除 ubuntu 源并在 /etc/apt/source.list 上添加这些源:
deb [arch=arm64,armhf]http://ports.ubuntu.com/ubuntu-ports/仿生主受限宇宙多元宇宙
deb-src [arch=arm64,armhf]http://ports.ubuntu.com/ubuntu-ports/ 仿生主受限宇宙多元宇宙
deb [arch=arm64,armhf]http://ports.ubuntu.com/ubuntu-ports/ 仿生安全主受限宇宙多元宇宙
deb-src [arch=arm64,armhf]http://ports.ubuntu.com/ubuntu-ports/ 仿生安全主受限宇宙多元宇宙
deb [arch=arm64,armhf]http://ports.ubuntu.com/ubuntu-ports/ 仿生更新主要受限宇宙多元宇宙
deb-src [arch=arm64,armhf]http://ports.ubuntu.com/ubuntu-ports/ 仿生更新主要受限宇宙多元宇宙
deb [架构=amd64]http://archive.ubuntu.com/ubuntu/仿生主受限宇宙多元宇宙
deb [架构=amd64]http://archive.ubuntu.com/ubuntu/bionic-backports 主要受限宇宙多元宇宙
deb [架构=amd64]http://security.ubuntu.com/ubuntu仿生安全主受限宇宙多元宇宙
apt update
apt install libc6:amd64
这种方法的后果是 ubuntu 删除了系统上已安装的所有 arm64 软件包,系统彻底崩溃。我该如何避免这种情况?
更新 1:有人告诉我:“dpkg 的多架构工作方式的一个棘手之处在于,要为多个架构安装库,所有架构的软件包版本必须完全相同。因此,如果由于某种原因,当前安装在您系统上的 libc6:arm64 软件包的版本与您要求其安装的 libc6:amd64 软件包的版本不完全相同,apt 可能会建议通过删除 libc6:arm64 来解决这个问题。而且由于几乎所有东西都依赖于 libc,因此必须删除大量软件包。要确定这是否真的是问题的原因,您应该找出这两个架构可用/安装了哪些版本的 libc6。重要的不是源代码的高级版本,而是二进制软件包的确切版本。例如,如果您有用于 arm64 的 libc6 版本 2.27-3ubuntu1,但有用于 amd64 的 libc6 版本 2.27-3ubuntu1.2,那么你不能同时安装两者。即使它们都来自同一个上游源”
我已经确定升级后 ubuntu 18.04 使用:
libc6_2.27-3ubuntu1.4_arm64.deb;libc-bin (2.27-3ubuntu1.4)。
我已经下载但未使用以下命令安装 libc6:amd64:
apt-get download libc6:amd64
我看到它的版本是:libc6_2.27-3ubuntu1.2_amd64.deb....
更新 2:此命令序列不起作用:
gedit sources.list
apt update
apt install qemu-user-static
dpkg --add-architecture amd64
apd update
apt install libc6:amd64
some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gir1.2-gtk-3.0 : Depends: libgtk-3-common but it is not going to be installed
Depends: gir1.2-atk-1.0 (>= 2.15.1) but it is not going to be installed
Depends: gir1.2-freedesktop (>= 1.39.0) but it is not going to be installed
Depends: gir1.2-gdkpixbuf-2.0 (>= 2.30.0) but it is not going to be installed
Depends: gir1.2-pango-1.0 (>= 1.40.5) but it is not going to be installed
libc6 : Breaks: libc6:amd64 (!= 2.27-3ubuntu1.4) but 2.27-3ubuntu1.2 is to be installed
libc6:amd64 : Breaks: libc6 (!= 2.27-3ubuntu1.2) but 2.27-3ubuntu1.4 is to be installed
libcairo2 : Depends: libfontconfig1 (>= 2.12) but it is not going to be installed
libgtk-3-0 : Depends: libgtk-3-common (>= 3.22.30-1ubuntu4) but it is not going to be installed
Depends: libatk-bridge2.0-0 (>= 2.5.3) but it is not going to be installed
Depends: libatk1.0-0 (>= 2.15.1) but it is not going to be installed
Depends: libcairo-gobject2 (>= 1.10.0) but it is not going to be installed
Depends: libcolord2 (>= 0.1.10) but it is not going to be installed
Depends: libcups2 (>= 1.6.2) but it is not going to be installed
Depends: libepoxy0 (>= 1.0) but it is not going to be installed
Depends: libfontconfig1 (>= 2.12) but it is not going to be installed
Depends: libgdk-pixbuf2.0-0 (>= 2.30.1) but it is not going to be installed
Depends: libjson-glib-1.0-0 (>= 0.12.0) but it is not going to be installed
Depends: libpangoft2-1.0-0 (>= 1.40.5) but it is not going to be installed
Depends: librest-0.7-0 (>= 0.7) but it is not going to be installed
Depends: libwayland-client0 (>= 1.9.91) but it is not going to be installed
Depends: libwayland-cursor0 (>= 1.9.91) but it is not going to be installed
Depends: libwayland-egl1 (>= 1.15.0)
Depends: libxcomposite1 (>= 1:0.3-1) but it is not going to be installed
Depends: libxcursor1 (> 1.1.2) but it is not going to be installed
Depends: libxdamage1 (>= 1:1.1) but it is not going to be installed
Depends: libxfixes3 but it is not going to be installed
Depends: libxi6 (>= 2:1.2.99.4) but it is not going to be installed
Depends: libxinerama1 but it is not going to be installed
Depends: libxkbcommon0 (>= 0.5.0) but it is not going to be installed
Depends: libxrandr2 (>= 2:1.5.0) but it is not going to be installed
Depends: adwaita-icon-theme
Recommends: libgtk-3-bin
libpango-1.0-0 : Depends: fontconfig (>= 2.1.91)
libpangocairo-1.0-0 : Depends: libfontconfig1 (>= 2.12) but it is not going to be installed
Depends: libpangoft2-1.0-0 (>= 1.28.1) but it is not going to be installed
lxlock : Depends: light-locker but it is not going to be installed or
xscreensaver but it is not going to be installed or
gnome-screensaver but it is not going to be installed or
i3lock but it is not going to be installed or
suckless-tools but it is not going to be installed or
slim but it is not going to be installed
python : Depends: python2.7 (>= 2.7.15~rc1-1~) but it is not going to be installed
Depends: libpython-stdlib