edi*_*tid 14 package-management command-line apt
有时,当我运行属于apt未安装包的命令时,它会显示如何安装它。例如:
root@localhost:~# traceroute
Command 'traceroute' not found, but can be installed with:
apt install inetutils-traceroute # version 2:1.9.4-11, or
apt install traceroute # version 1:2.1.0-2
Run Code Online (Sandbox Code Playgroud)
有什么办法可以手动显示这个,因为当我尝试traceroute使用类似subprocessand 的东西运行时python,这没有显示?
raj*_*raj 14
您可以通过以下方式显示:
/usr/lib/command-not-found traceroute
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
682 次 |
| 最近记录: |