如何在命令行中显示 apt-get 安装建议?

Mla*_*vic 7 command-line apt bash

我安装了 VPS 最低 Ubuntu,我希望它显示(即):

The program add-apt-repository is currently not installed. You can install it by typing: 

apt-get install python-software-properties
Run Code Online (Sandbox Code Playgroud)

目前只显示

add-apt-repository: command not found
Run Code Online (Sandbox Code Playgroud)

什么包控制命令,如(bash)对 apt-get 命令的建议?

Byt*_*der 11

负责详细且更有帮助的“未找到命令”消息的包是command-not-found.

通过运行安装它

sudo apt-get install command-not-found
Run Code Online (Sandbox Code Playgroud)

  • 谢谢。那就是——它奏效了。对其他人:不要忘记重置bash终端(我手动退出并连接,我不知道其他方法) (3认同)