【发布时间】:2023-10-13 05:17:01
【问题描述】:
我正在使用 Linux 服务器并尝试安装 jdk 包。但是当我尝试 sudo apt 时,出现以下错误:
sudo: apt-get: command not found
Linux的版本是:
3.10.0-229.el7.x86_64 GNU/Linux
不知道怎么回事
【问题讨论】:
-
这是 Debian 还是 Ubuntu?运行
lsb_release -a -
Linux 的风味是什么?
apt-get主要安装在 Debian 及其衍生版本上。 -
@Tim,SiKing,如何检查。对不起,我对 Linux 完全陌生。尝试
cat/proc/version和cat/etc/*-release并返回No such file or directory -
@Tim,
-bash: lsb_release: command not found。这就是我得到的 -
你是如何安装 Linux 的?