Home
Sign Up
Sign In
V2EX
›
问与答
求一个 Debian 下 apt 安装软件出错时,能提示正确包名的软件
hzqim
·
Jul 28, 2024
· 2118 views
This topic created in 835 days ago, the information mentioned may be changed or developed.
本站大佬说过,我也实践过,所以很肯定有这样一个软件。
印象有收藏贴子,但现在找不到了,真收藏了个寂寞。
不过依稀记得贴子的内容:某位 V 友提出 Debian 各种难用,各种功能缺失,不方便,其中就有安装软件没有提示不方便。
Supplement 1 ·
Jul 28, 2024
1 、软件就叫 command-not-found
2 、更正:不是安装时提示,而是运行没有安装的软件时提示,如:
在命令行输入:unzip -h
如果没有安装 unzip 这个软件,这个软件就会从自身的数据库中查找提示:
Command 'unzip' not found, but can be installed with:
apt install unzip
以取代默认提示:
unzip: command not found
3 、command-not-found 并不是全能,能否顺利给出提示,取决于数据库是否全面,比如 nc 命令就不能给出有效的提示。
debian
apt
提示
4 replies
•
2024-07-28 23:09:04 +08:00
yyzh
Jul 28, 2024 via Android
1
1
/t/1037576
不过还是建议直接上 ubuntu 或者 ubuntu 的变种(如果你讨厌 snap 的话)
hefish
Jul 28, 2024
2
dkg -l 这样吗?
hzqim
OP
Jul 28, 2024
3
@
yyzh
谢谢,就是这个贴子,就是兄台你在贴子中#5 楼的发言。😀
hzqim
OP
Jul 28, 2024
4
@
hefish
我寻找的答案在这里:
https://www.v2ex.com/t/1037576#r_14667655
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
2336 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 27ms ·
UTC 00:14
·
PVG 08:14
·
LAX 16:14
·
JFK 19:14
♥ Do have faith in what you're doing.
❯