亚马逊 ec2-user yum 不工作

amazon ec2-user yum not woring

我在 Amazon EC2 用户上创建了一个 instant,然后我在一段时间后在上面安装了一些应用程序 'yum' 不工作它为每个命令提供以下错误

Loaded plugins: priorities, update-motd, upgrade-helper


File contains no section headers.
file: file:///etc/yum.repos.d/ykenstudio.repo, line: 1
'<html>\r\n'

文件内容

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

能否复制粘贴/etc/yum.repos.d/ykenstudio.repo中的内容,第一行好像有问题

file:///etc/yum.repos.d/ykenstudio.repo, line: 1

加上评论,看来我的猜测是正确的。回购文件 /etc/yum.repos.d/ykenstudio.repo 被更改为错误的 html 文件,您需要将其还原。