我试图在Ubuntu上安装Google身份验证器。
我尝试了sudo apt install libpam-google-authenticator,这会导致sudo: apt: command not found错误。apt不应该已经安装在Ubuntu上了吗?我已经用apt尝试了几个命令。请注意,我对Linux非常陌生。
当我使用命令lsb_release -a时,这是输出:
-bash: lsb_release: command not found我从微软商店安装了“Ubuntu20.04LTS”。
当我使用命令cat /etc/os-release时,这是输出:
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"$: echo $PATH
/home/mkristiansen/.local/bin:/home/mkristiansen/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin发布于 2022-01-09 22:01:00
您正在运行CentOS,而不是Ubuntu。CentOS使用yum作为包管理器。如果出于任何原因,您仍然希望在运行的内容上使用apt,看看这个。
https://askubuntu.com/questions/1386204
复制相似问题