scanf
deepin
2018-02-02 06:24 本帖最后由 scanf 于 2018-2-2 09:48 编辑
try this:Copy the Code
try this:
- sudo apt-get install command-not-found -y
- sudo update-command-not-found
Reply Like 0 View the author


中文 







希望达到的效果是:
root@TestServer:~# sendemail
程序“sendemail”尚未安装。 您可以使用以下命令安装:
apt-get install sendemail
我通过如下方式安装command-not-found:
$ sudo apt install command-not-found
// 省略部分输出
The system-wide cache is empty. You may want to run 'apt-file update'
as root to update the cache.
正在设置 command-not-found (0.2.38-4) ...
You need to run 'update-command-not-found' as root to update the cache.
然后我:
$ sudo apt-file update
$ sudo update-command-not-found
最后效果:
$ sendmail
The program 'sendmail' is currently not installed. To run 'sendmail' please ask your administrator to install the package 'citadel-mta'
sendmail: command not found
问题:为什么效果和ubuntu上的command-not-found差距这么大?