GNU/Linux >> Linux の 問題 >  >> Ubuntu

Ubuntu –マニュアルページが利用できない場合のヘルプについては、「man 7 Undocumented」を参照してください– Wsl Core Ubuntu 18.04インストール?

私はwin10でlxrunoffline配布管理ユーティリティを使用してWSLを使用しています。私のディストリビューションはUbuntu18.04コアインストールで、ここにあります–ダウンロードリンク。

man manと入力します 、man pwd またはman <anything> 次の結果が生成されます:

No manual entry for man
See 'man 7 undocumented' for help when manual pages are not available.

私が試したコマンドは次のとおりです。

$ sudo mandb
Purging old database entries in /usr/share/man...
Processing manual pages under /usr/share/man...
Purging old database entries in /usr/share/man/cs...
Processing manual pages under /usr/share/man/cs...
Purging old database entries in /usr/share/man/da...
Processing manual pages under /usr/share/man/da...
...
0 man subdirectories contained newer manual pages.
0 manual pages were added.
0 stray cats were added.
0 old database entries were purged.


$ sudo mandb -t   */ output here certainly looks suspicious /*
mandb: warning: /usr/share/man/man1/sh.1.gz is a dangling symlink
mandb: warning: can't update index cache /var/cache/man/index.db: Resource temporarily unavailable
mandb: warning: can't update index cache /var/cache/man/cs/index.db: Resource temporarily unavailable
mandb: warning: can't update index cache /var/cache/man/da/index.db: Resource temporarily unavailable
mandb: warning: can't update index cache /var/cache/man/de/index.db: Resource temporarily unavailable
...


$ dpkg -l | grep -i manpages
ii  manpages                    4.15-1                            all          Manual pages about using a GNU/Linux system
ii  manpages-dev                4.15-1                            all          Manual pages about using GNU/Linux for development
ii  manpages-posix              2013a-2                           all          Manual pages about using POSIX system

/usr/share/manもチェックしました いくつかの壊れたシンボリックリンクを除いて、フォルダとそれらはほとんど空でした(他のマンパスフォルダは完全に空でした):

$ manpath
/usr/local/man:/usr/local/share/man:/usr/share/man
$ cd /usr/share/man/man1
$ ls -alh
drwxr-xr-x 1 root root 4.0K Nov 27 18:16 .
drwxr-xr-x 1 root root 4.0K Sep 28 04:02 ..
lrwxrwxrwx 1 root root    9 Sep 28 04:00 sh.1.gz -> dash.1.gz
$ file sh.1.gz
sh.1.gz: broken symbolic link to dash.1.gz

次に、UbuntuのマンページのWebサイトで見つけたman gzipをman1フォルダーに入れてみました。これにより、正しく機能するようになります。

$ cd /usr/share/man/man1
$ ls -alh
drwxr-xr-x 1 root root 4.0K Nov 27 18:16 .
drwxr-xr-x 1 root root 4.0K Sep 28 04:02 ..
-rwxr-xr-x 1 root root 3.1K Nov 27 18:16 ls.1.gz <-- downloaded this one
lrwxrwxrwx 1 root root    9 Sep 28 04:00 sh.1.gz -> dash.1.gz
*/ 'man ls' works now /*

また、mandbとmanpagesを再インストールしてみましたが無駄になりました。

マニュアルページファイルを手動でダウンロードすると問題は解決しますが、それを実行するパッケージまたは設定が必要です。どうすればこれを解決できますか?

編集1

$ head -n 1000 /etc/dpkg/dpkg.cfg /etc/dpkg/dpkg.cfg.d/*
==> /etc/dpkg/dpkg.cfg <==
# dpkg configuration file
#
# This file can contain default options for dpkg.  All command-line
# options are allowed.  Values can be specified by putting them after
# the option, separated by whitespace and/or an `=' sign.
#

# Do not enable debsig-verify by default; since the distribution is not using
# embedded signatures, debsig-verify would reject all packages.
no-debsig

# Log status changes and actions to a file.
log /var/log/dpkg.log

==> /etc/dpkg/dpkg.cfg.d/excludes <==
# Drop all man pages
path-exclude=/usr/share/man/*

# Drop all documentation ...
path-exclude=/usr/share/doc/*

# ... except copyright files ...
path-include=/usr/share/doc/*/copyright

# ... and Debian changelogs
path-include=/usr/share/doc/*/changelog.Debian.*

承認された回答:

/etc/dpkg/dpkg.cfg.d/excludesの最初の2行

# Drop all man pages
path-exclude=/usr/share/man/*

パッケージのインストール時にすべてのマニュアルページが削除されます。

関連:Ubuntu –別れ:デバイスエラー以外の場所を解決する方法は?

マニュアルページを利用できるようにするには、2行目をコメントアウトする必要があります:

# Drop all man pages
# path-exclude=/usr/share/man/*

次に、マニュアルページが必要なパッケージを再インストールします。

apt --reinstall install man-db coreutils

manを復元するには およびls マニュアルページ(とりわけ)。


Ubuntu
  1. Linux(ubuntu)でのマニュアルページのローカリゼーション?

  2. PycharmのAltキーショートカットがUbuntu16.04で機能していませんか?

  3. 基本的なデスクトップアクションはUbuntu20.04では利用できませんか?

  1. パケットトレーサー7のUbuntu19.04にLibpng12.so.0をインストールできませんか?

  2. デル3537のUbuntu16.04で動作しないのを一時停止しますか?

  3. Ubuntu 16.04でホットスポットを作成できませんか?

  1. /homeのディスクドライブはまだ準備ができていないか、VmwareにUbuntu Server 14.04.2をロードするときに存在しませんか?

  2. Clojure開発にUbuntuを使用しますか?

  3. C++ のマニュアル ページはどこにありますか?