6

修复 DigitalOcean 的 监控部件更新问题

 1 year ago
source link: https://seo.g2soft.net/2022/05/16/digitalocean-do-agent-error.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

修复 DigitalOcean 的 监控部件更新问题

作者:David Yin


最后更新于 2022年5月16日 | 最初发布于 2022年5月16日 | 分类: 服务器和主机


在之前使用 DigitalOcean 的 VPS 的时候,有遇到这个问题。

davidyin@fig:~$ sudo apt update
[sudo] password for davidyin:
Hit:1 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Hit:2 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Get:3 http://mirrors.digitalocean.com/ubuntu jammy InRelease [270 kB]
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Ign:5 https://download.webmin.com/download/repository sarge InRelease
Hit:6 https://download.webmin.com/download/repository sarge Release
Hit:8 http://mirrors.digitalocean.com/ubuntu jammy-updates InRelease
Hit:9 http://mirrors.digitalocean.com/ubuntu jammy-backports InRelease
Fetched 380 kB in 7s (51.8 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: https://repos.insights.digitalocean.com/apt/do-agent/dists/main/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

SSH 登录到服务器后,查看目录 /etc/apt/sources.list.d/ 里面的文件。

davidyin@fig:/etc/apt/sources.list.d$ ls -lah
total 20K
drwxr-xr-x 2 root root 4.0K May 14 16:09 .
drwxr-xr-x 8 root root 4.0K May 14 14:52 ..
-rw-r--r-- 1 root root   67 May 14 14:52 digitalocean-agent.list
-rw-r--r-- 1 root root  129 May 14 14:52 droplet-agent.list
-rw-r--r-- 1 root root  116 May 14 16:09 webmin.list
davidyin@fig:/etc/apt/sources.list.d$

有三个, Webmin.list 是我自己安装的,而 digitalocean 的 agent 有两个,觉得一定有什么误会在里面。看看里面的内容。

droplet-agent.list
deb [signed-by=/usr/share/keyrings/droplet-agent-keyring.gpg] https://repos-droplet.digitalocean.com/apt/droplet-agent main main

digitalocean-agent.list
deb https://repos.insights.digitalocean.com/apt/do-agent main main

删掉这个就好了。

sudo rm digitalocean-agent.list

再做系统更新的时候就没有上述这个错误了。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK