-
打开终端。
-
在终端中输入以下命令并按Enter键:
lsb_release -a
wub@wub:/$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
- 确定linux版本
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
- 确定dpkg版本
sudo dpkg --print-architecture
amd64
测试容器的架构
uname -m
---------返回值为-------------
aarch64