LoginSignup
4
4

More than 1 year has passed since last update.

Ubuntuで足りないファイルを解決するパッケージの調べ方

Posted at

概要

lddコマンドで不足するファイルを見つけたが、どのパッケージをインストールすれば良いのかが分からない。。。

$ ldd ./hoge
libnssutil3.so => not found

そんなときは下記のサイトでファイルを含むパッケージを検索しよう。

例えば、パッケージの内容を検索にlibnssutil3.soを入れて検索すると、、、

image.png

パッケージlibnss3に含まれていることが分かった!

image.png

これで解決。

$ sudo apt install libnss3

おまけ: apt-fileを使った検索について

There is also apt-file. Because this method required updating the files database, however, I prefer the other, instant option.

apt-fileもあります。しかし、この方法ではファイルデータベースを更新する必要があるため、私はもう一つの即席のオプションを好みます。

参考
https://askubuntu.com/questions/2493/apt-get-or-aptitude-equivalent-to-yum-whatprovides

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4