How to solve this error with the yum and dnf commands? [Failed to download metadata for repo 'dovecot-2.3-latest']

Hi! Whenever I use the YUM or DNF command, I get the message below:

# yum update

DigitalOcean Agent 80 kB/s | 3.3 kB 00:00
Dovecot 2.3 CentOS 8 - x86_64 588 B/s | 162 B 00:00
Failed to download metadata for repo ‘dovecot-2.3-latest’ Error: Failed to download metadata for repo ‘dovecot-2.3-latest’

I use CentOS 8 with Open LightSpeed ​​and CyberPanel.

I searched a lot on the internet, but I still couldn’t solve this problem. Can you help me?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
May 22, 2020
Accepted Answer

Hi @mcastro05,

It seems like it can’t find the latest dovecot repo. You can disable it on your server.

To disable the said repo, you can ssh to your droplet

ssh root@YourDropletIP

Enter your repo’s folder, it’s /etc/yum.repos.d/

cd /etc/yum.repos.d

Now, there should be a dovecot-2.3 repo. Do an ls and when you see it’s full name, open the file using a text editor. There you should see a couple of lines, one of which states enabled=1, you can set that one to 0 and try to run your yum update command once more.

Regards, KDSys

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.