-
打开终端。
-
在终端中输入以下命令并按Enter键:
bashlsb_release -a
bash
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版本
shell
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
- 确定dpkg版本
bash
sudo dpkg --print-architecture
amd64
测试容器的架构
shell
uname -m
---------返回值为-------------
aarch64