Ubuntu 18.04.3 中缺少 gpgtar

Ubuntu 18.04.3 中缺少 gpgtar

为什么在全新安装的 Ubuntu 服务器 18.04.3 上尝试使用 gpgtar 时,总是出现“未找到命令”的错误?我检查了一下,该命令应该是 gnupg 或 gnupg-utils 的一部分,它们都已安装且为最新版本。有什么想法吗?

* 更新 *

username@hostname:~$ sudo apt-get install gnupg-utils -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gnupg-l10n gpg-wks-client gpg-wks-server
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  gnupg-utils
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 127 kB of archives.
After this operation, 477 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 gnupg-utils amd64 2.2.4-1ubuntu1.2 [127 kB]
Fetched 127 kB in 0s (287 kB/s)
Selecting previously unselected package gnupg-utils.
(Reading database ... 66838 files and directories currently installed.)
Preparing to unpack .../gnupg-utils_2.2.4-1ubuntu1.2_amd64.deb ...
Unpacking gnupg-utils (2.2.4-1ubuntu1.2) ...
Setting up gnupg-utils (2.2.4-1ubuntu1.2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

username@hostname:~$ gpgtar
gpgtar: command not found

没有变化。仍然无法识别命令。

答案1

该命令gpg-zip似乎创建了一个 Tar 文件(尽管它的名字如此):

$ gpg-zip --encrypt --output myarchive.tar.gpg --gpg-args --recipient=XXX myfile
$ gpg -d myarchive.tar.gpg > myarchive.tar
$ file myarchive.tar
test-decrypted: POSIX tar archive (GNU)

因此,您可以用以下命令gpg-zip代替gpgtargpgtar它不是gnupg-utilsUbuntu 18.04 中软件包的一部分:

$ lsb_release -r
Release:    18.04
$ dpkg -L gnupg-utils
/.
/usr
/usr/bin
/usr/bin/gpg-zip
/usr/bin/gpgparsemail
/usr/bin/gpgsplit
/usr/bin/kbxutil
/usr/bin/lspgpot
/usr/bin/migrate-pubring-from-classic-gpg
/usr/bin/symcryptrun
/usr/bin/watchgnupg
/usr/sbin
/usr/sbin/addgnupghome
/usr/sbin/applygnupgdefaults
/usr/share
/usr/share/doc
/usr/share/doc/gnupg-utils
/usr/share/doc/gnupg-utils/NEWS.Debian.gz
/usr/share/doc/gnupg-utils/changelog.Debian.gz
/usr/share/doc/gnupg-utils/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/gpg-zip.1.gz
/usr/share/man/man1/gpgparsemail.1.gz
/usr/share/man/man1/gpgsplit.1.gz
/usr/share/man/man1/kbxutil.1.gz
/usr/share/man/man1/lspgpot.1.gz
/usr/share/man/man1/migrate-pubring-from-classic-gpg.1.gz
/usr/share/man/man1/symcryptrun.1.gz
/usr/share/man/man1/watchgnupg.1.gz
/usr/share/man/man8
/usr/share/man/man8/addgnupghome.8.gz
/usr/share/man/man8/applygnupgdefaults.8.gz

相关内容