方法一: 命令:cat /etc/issue 显示: Ubuntu 18.04.5 LTS \n \l 即为版本号。 方法二: 命令:sudo lsb_release -a 需要输入ubuntu密码。显示如下。