Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centos 安装 mongodb 报错 Error importing repomd.xml for mongodb-org-4.0: Damaged repomd.xml file #79

Open
wuweijia opened this issue Aug 26, 2020 · 0 comments

Comments

@wuweijia
Copy link
Owner

Mongodb安装报错 https://repo.mongodb.org/yum/redhat/#releasever/mongodb-org/4.0/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for mongodb-org-4.0: Damaged repomd.xml file

解决方法:

sudo rm -rf /etc/yum.repos.d/mongod*
sudo yum clean all

然后重新创建源文件

vim /etc/yum.repos.d/mongodb-org-4.0.repo
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc

yum install -y mongodb-org

@wuweijia wuweijia assigned wuweijia and unassigned wuweijia Sep 29, 2022
@wuweijia wuweijia added 工作 工作做完不的 and removed 工作 工作做完不的 labels Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant