无法在虚拟机实例上安装 Ops Agent,但警告:apt-key 已被弃用

无法在虚拟机实例上安装 Ops Agent,但警告:apt-key 已被弃用

我最近将我的 3 个网站从标准服务器迁移到了 GCP -VM 实例(对性能改进非常满意)。

但是,我无法安装 Ops Agent 来查看 Observability 上的更多统计数据。这可能是由于 SSL 或之前的托管公司在这方面存在问题吗?

请参见下文并提出解决方案 - 非常感谢。

W: https://packages.cloud.google.com/apt/dists/google-cloud-ops-agent-jammy-all/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
No changes made.
henracseo@henrac-litespeed-vm:~$ sudo apt-key list
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
/etc/apt/trusted.gpg
--------------------
pub   rsa2048 2021-05-04 [SC]
      35BA A0B3 3E9E B396 F59C  A838 C0BA 5CE6 DC63 15A3
uid           [ unknown] Artifact Registry Repository Signer <[email protected]>

pub   rsa2048 2022-05-21 [SC]
      A362 B822 F6DE DC65 2817  EA46 B53D C80D 13ED EF05
uid           [ unknown] Rapture Automatic Signing Key (cloud-rapture-signing-key-2022-03-07-08_01_01.pub)
sub   rsa2048 2022-05-21 [E]

/etc/apt/trusted.gpg.d/lst_debian_repo.gpg
------------------------------------------
pub   dsa1024 2012-03-07 [SC]
      4225 9994 257E 19EB 6A91  CA85 3F6F 6270 8308 4D0E
uid           [ unknown] LiteSpeed Tech Inc. (LiteSpeed GnuPG Key) <[email protected]>
sub   elg2048 2012-03-07 [E]

/etc/apt/trusted.gpg.d/lst_repo.gpg
-----------------------------------
pub   rsa4096 2016-10-27 [SC]
      3E89 2522 DB44 E1B0 63D3  66C5 011A A62D EDA1 F085
uid           [ unknown] LiteSpeed Technologies Inc (LiteSpeed Technologies Inc GnuPG Key) <[email protected]>
sub   rsa4096 2016-10-27 [E]

/etc/apt/trusted.gpg.d/mariadb-keyring-2019.gpg
-----------------------------------------------
pub   rsa2048 2014-05-21 [SC]
      13CF DE6D D9EE 9784 F41A  F0F6 70E4 618A 8167 EE24
uid           [ unknown] MariaDBManager

pub   rsa4096 2016-03-30 [SC]
      177F 4010 FE56 CA33 3630  0305 F165 6F24 C74C D1D8
uid           [ unknown] MariaDB Signing Key <[email protected]>
sub   rsa4096 2016-03-30 [E]

pub   dsa1024 2010-02-02 [SC]
      1993 69E5 404B D5FC 7D2F  E43B CBCB 082A 1BB9 43DB
uid           [ unknown] MariaDB Package Signing Key <[email protected]>
uid           [ unknown] Daniel Bartholomew (Monty Program signing key) <[email protected]>
sub   elg4096 2010-02-02 [E]

pub   rsa2048 2014-12-18 [SC]
      4C47 0FFF EFC4 D3DC 5977  8655 CE1A 3DD5 E3C9 4F49
uid           [ unknown] MariaDB Enterprise Signing Key <[email protected]>

pub   rsa4096 2017-10-16 [SC]
      7B96 3F52 5AD3 AE62 5905  8D30 1356 59E9 28C1 2247
uid           [ unknown] MariaDB Maxscale <[email protected]>
sub   rsa4096 2017-10-16 [E]

/etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg
------------------------------------------------------
pub   rsa4096 2012-05-11 [SC]
      8439 38DF 228D 22F7 B374  2BC0 D94A A3F0 EFE2 1092
uid           [ unknown] Ubuntu CD Image Automatic Signing Key (2012) <[email protected]>

/etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
------------------------------------------------------
pub   rsa4096 2018-09-17 [SC]
      F6EC B376 2474 EDA9 D21B  7022 8719 20D1 991B C93C
uid           [ unknown] Ubuntu Archive Automatic Signing Key (2018) <[email protected]>
henracseo@henrac-litespeed-vm:~$ 

相关内容