ubuntu怎么使用命令搜索软件源中的软件

E: Unable to locate package Kdevelop-dev 这是一个小伙伴安装软件包时出现的问题,其实LZ通过

sudo apt-get install name

安装软件的时候也会经常不记得一些依赖项的具体名字,毕竟脑容量有限,只能记得关键词,下面就以Kdevelop为例。

sudo apt-cache search Kdevelop
//以下为输出
c-cpp-reference - C and C++ programming reference
kdev-python - KDevelop Python Plugin
kdevelop - integrated development environment for KDE
kdevelop-data - data files for the KDevelop IDE
kdevelop-dbg - debugging symbols for KDevelop
kdevelop-dev - development files for the KDevelop IDE
kdevelop-l10n - localization files for the KDevelop IDE
kdevelop-pg-qt - LL(1) parser generator based on Qt
kdevelop-php - PHP plugin for KDevelop
kdevelop-php-dbg - debugging symbols for the KDevelop PHP plugin
kdevelop-php-docs - PHP documentation plugin for KDevelop
kdevelop-php-docs-l10n - localization files for KDevelop PHP documentation plugin
kdevelop-php-l10n - localization files for KDevelop PHP plugin
kdevplatform-dbg - debugging symbols for the KDevelop platform
kdevplatform-dev - development files for the KDevelop platform
kdevplatform-l10n - language package for the KDevelop platform
kdevplatform7-libs - shared libraries for the KDevelop platform
libkomparediff2-4 - Library to compare files and strings
libkomparediff2-dev - Library to compare files and strings - development files
libsublime-dev - development files for the sublime user interface library
libsublime7 - User interface library
qdevelop - A development environment entirely dedicated to Qt4

可以对照自己的需求进行安装了♪(^∇^*)按照上面输出显示:

sudo apt-get install Kdevelop

可能是ubuntu内核更新,包名也会经常改变,如果遇到这种sudo apt-get update后发现还是没有找到对应的包名,那就使用sudo apt-cache search keyword

是不是一个比较有用的小技巧呢O(∩_∩)O哈哈~

猜你喜欢

转载自blog.csdn.net/Felaim/article/details/80680551
今日推荐