Debian
內置 .deb 的手冊頁安裝在 Debian 上,而不是 Ubuntu
我正在
.deb
使用測試廚房在不同的發行版上測試包的建構。建構的.deb
文件將命令安裝到/usr/bin
Debian 和 Ubuntu 上。我的問題是手冊頁沒有安裝在 Ubuntu 上。.deb
在 Ubuntu 上建構的文件的內容是:kitchen@ceddd8d3564c:/opt/workspace$ dpkg -c $(find . -name \*.deb) drwxr-xr-x 0/0 0 2018-06-08 14:24 ./ drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/ drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/bin/ -rwxr-xr-x 0/0 33742 2018-06-08 14:24 ./usr/bin/git-secret drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/ drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/man/ drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/man/man7/ -rw-r--r-- 0/0 5298 2018-06-08 14:24 ./usr/share/man/man7/git-secret.7 drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/man/man1/ -rw-r--r-- 0/0 1355 2018-06-08 14:24 ./usr/share/man/man1/git-secret-add.1 -rw-r--r-- 0/0 819 2018-06-08 14:24 ./usr/share/man/man1/git-secret-init.1 -rw-r--r-- 0/0 1440 2018-06-08 14:24 ./usr/share/man/man1/git-secret-hide.1 -rw-r--r-- 0/0 1734 2018-06-08 14:24 ./usr/share/man/man1/git-secret-tell.1 -rw-r--r-- 0/0 931 2018-06-08 14:24 ./usr/share/man/man1/git-secret-clean.1 -rw-r--r-- 0/0 936 2018-06-08 14:24 ./usr/share/man/man1/git-secret-remove.1 -rw-r--r-- 0/0 959 2018-06-08 14:24 ./usr/share/man/man1/git-secret-list.1 -rw-r--r-- 0/0 1246 2018-06-08 14:24 ./usr/share/man/man1/git-secret-cat.1 -rw-r--r-- 0/0 843 2018-06-08 14:24 ./usr/share/man/man1/git-secret-usage.1 -rw-r--r-- 0/0 1337 2018-06-08 14:24 ./usr/share/man/man1/git-secret-reveal.1 -rw-r--r-- 0/0 1445 2018-06-08 14:24 ./usr/share/man/man1/git-secret-changes.1 -rw-r--r-- 0/0 998 2018-06-08 14:24 ./usr/share/man/man1/git-secret-killperson.1 -rw-r--r-- 0/0 940 2018-06-08 14:24 ./usr/share/man/man1/git-secret-whoknows.1 drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/doc/ drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/doc/git-secret/ -rw-r--r-- 0/0 149 2018-06-08 14:24 ./usr/share/doc/git-secret/changelog.gz kitchen@ceddd8d3564c:/opt/workspace$
安裝命令
sudo dpkg --force-all --install $(find . -name \*.deb)
輸出:(Reading database ... 41209 files and directories currently installed.) Preparing to unpack .../git-secret_0.2.4_all.deb ... Unpacking git-secret (0.2.4) over (0.2.4) ... Setting up git-secret (0.2.4) ... Processing triggers for man-db (2.8.3-2) ...
之後
man git-secret
並man git-secret-init
報告“沒有 git-secret-init 的手動輸入”。事情正在使用相同的軟體包在最新的 Debian 上執行:
kitchen@c71479c4f76c:/opt/workspace$ dpkg -c $(find . -name \*.deb) drwxr-xr-x 0/0 0 2018-06-08 14:24 ./ drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/ drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/bin/ -rwxr-xr-x 0/0 33742 2018-06-08 14:24 ./usr/bin/git-secret drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/ drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/man/ drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/man/man7/ -rw-r--r-- 0/0 5298 2018-06-08 14:24 ./usr/share/man/man7/git-secret.7 drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/man/man1/ -rw-r--r-- 0/0 1355 2018-06-08 14:24 ./usr/share/man/man1/git-secret-add.1 -rw-r--r-- 0/0 819 2018-06-08 14:24 ./usr/share/man/man1/git-secret-init.1 -rw-r--r-- 0/0 1440 2018-06-08 14:24 ./usr/share/man/man1/git-secret-hide.1 -rw-r--r-- 0/0 1734 2018-06-08 14:24 ./usr/share/man/man1/git-secret-tell.1 -rw-r--r-- 0/0 931 2018-06-08 14:24 ./usr/share/man/man1/git-secret-clean.1 -rw-r--r-- 0/0 936 2018-06-08 14:24 ./usr/share/man/man1/git-secret-remove.1 -rw-r--r-- 0/0 959 2018-06-08 14:24 ./usr/share/man/man1/git-secret-list.1 -rw-r--r-- 0/0 1246 2018-06-08 14:24 ./usr/share/man/man1/git-secret-cat.1 -rw-r--r-- 0/0 843 2018-06-08 14:24 ./usr/share/man/man1/git-secret-usage.1 -rw-r--r-- 0/0 1337 2018-06-08 14:24 ./usr/share/man/man1/git-secret-reveal.1 -rw-r--r-- 0/0 1445 2018-06-08 14:24 ./usr/share/man/man1/git-secret-changes.1 -rw-r--r-- 0/0 998 2018-06-08 14:24 ./usr/share/man/man1/git-secret-killperson.1 -rw-r--r-- 0/0 940 2018-06-08 14:24 ./usr/share/man/man1/git-secret-whoknows.1 drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/doc/ drwxr-xr-x 0/0 0 2018-06-08 14:24 ./usr/share/doc/git-secret/ -rw-r--r-- 0/0 149 2018-06-08 14:24 ./usr/share/doc/git-secret/changelog.gz kitchen@c71479c4f76c:/opt/workspace$
安裝方式相同:
kitchen@c71479c4f76c:/opt/workspace$ sudo dpkg --force-all --install $(find . -name \*.deb) Selecting previously unselected package git-secret. (Reading database ... 29069 files and directories currently installed.) Preparing to unpack .../git-secret_0.2.4_all.deb ... Unpacking git-secret (0.2.4) ... Setting up git-secret (0.2.4) ... Processing triggers for man-db (2.7.6.1-2) ... kitchen@c71479c4f76c:/opt/workspace$
作品:
kitchen@c71479c4f76c:/opt/workspace$ man -w git-secret-init /usr/share/man/man1/git-secret-init.1 kitchen@c71479c4f76c:/opt/workspace$ man -w git-secret /usr/share/man/man7/git-secret.7 kitchen@c71479c4f76c:/opt/workspace$
可用的 Debian 版本是:
kitchen@c71479c4f76c:/opt/workspace$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.4 (stretch) Release: 9.4 Codename: stretch kitchen@c71479c4f76c:/opt/workspace$
沒有的Ubuntu版本是:
kitchen@ceddd8d3564c:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04 LTS Release: 18.04 Codename: bionic kitchen@ceddd8d3564c:~$
為什麼手冊頁不在 Ubuntu 上安裝?
您
dpkg
在 Ubuntu 系統上的配置,即 中的path-exclude=/usr/share/man/*
指令*,*/etc/dpkg/dpkg.cfg.d/excludes
指示dpkg
不要安裝聯機幫助頁。如果您確實要安裝聯機幫助頁,請刪除相應的行並再次安裝該軟體包。