[Exchange and share] apt install qemu 找不到软件
Tofloor
poster avatar
yushb0602
deepin
2024-05-17 18:01
Author

刚格式化 ubuntu 22 变成 Deepin23, 家里一直用 Deepin,很好。

我主机是 x86, 跑arm64 docker 容器,以下代码在ubuntu 上没问题,但 Deepin上没有默认源上没有qemu软件。

sudo apt-get install qemu binfmt-support qemu-user-static # Install the qemu packages

docker run -it arm64v8/ubuntu:22.04

请问各位,有没有变通方法,用有测试源?Debian 12源?

Reply Favorite View the author
All Replies
水月
deepin
2024-05-17 18:06
#1

apt search qemu

搜索一下,说不定包名不一样。

Reply View the author
DebuggerX
deepin
2024-05-17 18:24
#2

直接把 qemu 删了,执行 sudo apt-get install binfmt-support qemu-user-static就可以了。

参考:QemuUserEmulation

Reply View the author
花雨落逝
deepin
2024-05-17 18:39
#3

ACE兼容模式就是个debian12容器

Reply View the author
yushb0602
deepin
2024-05-20 08:55
#4
DebuggerX

直接把 qemu 删了,执行 sudo apt-get install binfmt-support qemu-user-static就可以了。

参考:QemuUserEmulation

不装qemu,我这边运行容器会失败,提示:

sudo docker run -it arm64v8/ubuntu:22.04

WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
exec /bin/bash: exec format error

Reply View the author
DebuggerX
deepin
2024-05-20 09:46
#5

sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes 的结果是什么?

参考:https://github.com/multiarch/qemu-user-static

消除警告可以参考:

https://github.com/multiarch/qemu-user-static/issues/158#issuecomment-985320133

Reply View the author
yushb0602
deepin
2024-05-20 11:42
#6

sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
就好了,谢谢大侠

Reply View the author