sudo add-apt-key:コマンドが見つかりません - Deepin 16.4

sudo add-apt-key:コマンドが見つかりません - Deepin 16.4

キーを手動で追加しようとしていますが、何らかの理由で追加できません。

使用せずに手動でキーを追加するにはどうすればよいですか?add-apt-key

hutber@hutber-PC:~$ sudo apt-get install software-properties-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
software-properties-common is already the newest version (0.96.20.2-1).
The following package was automatically installed and is no longer required:
  libnpth0:i386
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.
hutber@hutber-PC:~$ sudo add-apt-key 073E051D7B2AEE37
sudo: add-apt-key: command not found

ベストアンサー1

これはapt-key add-commandapt-keyaddサブコマンド/オプションです(と混同する可能性がありますadd-apt-repository)。これはファイルからキーを追加するために使用されます。キーをインポートして追加するには、次のものが必要です。apt-key adv --recv-key:

adv
   Pass advanced options to gpg. With adv --recv-key you can e.g.
   download key from keyservers directly into the the trusted set of
   keys. Note that there are no checks performed, so it is easy to
   completely undermine the apt-secure(8) infrastructure if used
   without care.

おすすめ記事