在 Ubuntu 20.04.5 LTS 中,使用 bash,我从终端输入命令时出现一个非常奇怪的“找不到命令”错误:
sudo apt install strongswan strongswan-swanctl
bash 的响应是:
sudo apt install strongswan strongswan-swanctl: command not found
然而,当我尝试
sudo apt install
响应是:
[sudo] password for jm:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
bash 响应符合预期。然后我尝试:
sudo apt install strongswan strongswan-swanctl
响应是:
sudo apt install strongswan strongswan-swanctl: command not found
同样的问题又出现了。然后我就再试sudo apt install
一次,
sudo apt install
响应是:
sudo apt install: command not found
这对我来说确实很奇怪。同样的命令正常对应前者但出现“未找到命令”错误稍后在同一个终端中。我期待着在您的帮助下解决这个问题。