1、搜索软件名称(模糊查询),找到 openjdk-17-jdk 。命令:apt search openjdk 17 2、安装 apt install -y openjdk-17-jdk 3、验证: 安装其他java版本类似。