还发现了这个东西command-not-found
booker@ubuntu:~$ apt-cache show command-not-found
Package: command-not-found
Priority: optional
Section: admin
Installed-Size: 104
Maintainer: Michael Vogt <michael.vogt@ubuntu.com>
Original-Maintainer: Zygmunt Krynicki <zkrynicki@gmail.com>
Architecture: all
Version: 0.2.3
Depends: python, python-central (>= 0.5.8), command-not-found-data
Filename: pool/main/c/command-not-found/command-not-found_0.2.3_all.deb
Size: 6014
MD5sum: 034f63ee32c1423f9892710e0b453012
SHA1: 7207504d7880c0b2b0b367a7c0b6f357137978a4
SHA256: 44285a061a0597be70ca287d904f3e20e517a46705c0c5ea49337a399bee8690
Description: Suggest installation of packages in interactive bash sessions
This package will install handler for command_not_found that lookups
programs not currently installed but available from the repositiories.
Python-Version: current
Bugs: mailto:ubuntu-users@lists.ubuntu.com
Origin: Ubuntu
Task: standard
代码: 全选
booker@ubuntu:~$ xmms
The program 'xmms' is currently not installed. You can install it by typing:
sudo apt-get install xmms
bash: xmms:找不到命令