亚马逊ec2用户yum不费力

时间:2016-01-20 09:13:47

标签: amazon-ec2 amazon

我在Amazon EC2用户上创建了一个瞬间,然后我在一段时间后安装了一些应用程序' 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>

1 个答案:

答案 0 :(得分:0)

你可以复制并粘贴/etc/yum.repos.d/ykenstudio.repo中的内容,似乎在第一行有问题。

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

带有评论,似乎我的猜测是正确的。 repo文件/etc/yum.repos.d/ykenstudio.repo被更改为错误的html文件,您需要将其还原。