Fix DigitalOcean’s monitor widget update issue

Original link: https://seo.g2soft.net/2022/05/16/digitalocean-do-agent-error.html

seo-siteimage-square-thumb-300x300-466.j

I encountered this problem when I used DigitalOcean’s VPS before.

 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.

After SSHing into the server, look at the files in the directory /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$

There are three, I installed Webmin.list myself, and there are two agents of digitalocean, I think there must be some misunderstanding in it. Take a look at what’s inside.

 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

Just delete this.

 sudo rm digitalocean-agent.list

The above error no longer occurs when the system is updated.

This article is reprinted from: https://seo.g2soft.net/2022/05/16/digitalocean-do-agent-error.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment