LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 647|回复: 1

恢复安装源配置时出错

[复制链接]
发表于 2009-12-5 00:30:46 | 显示全部楼层 |阅读模式
恢复安装源配置时出错。
/etc/zypp/repos.d/BuildServices_Thruth .repo: Line 2 is missing '=' sign

文件:/etc/zypp/repos.d/BuildServices_Thruth.repo:
[BuildServices_Thruth
]
name=BuildServices_Thruth

enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/repositories/home:/swyear/openSUSE_Factory/
path=/
type=rpm-md
keeppackages=0
无法保存文档,原因是无法写入 /etc/zypp/repos.d/BuildServices_Thruth.repo。
文件无法更改!!!

请教大牛如何解决,小弟刚开始Linux
执行命令也是 有错误

linux-a2dk:~ # zypper refs
Unexpected exception.
/etc/zypp/repos.d/BuildServices_Thruth
.repo: Line 2 is missing '=' sign
Please file a bug report about this.
See http://en.opensuse.org/Zypper/Troubleshooting for instructions.

linux-a2dk:~ # zypper rs /etc/zypp/repos.d/BuildServices_Thruth.repo
Unexpected exception.
/etc/zypp/repos.d/BuildServices_Thruth
.repo: Line 2 is missing '=' sign
Please file a bug report about this.
发表于 2009-12-5 09:22:50 | 显示全部楼层
Post by dpzhang;2052660
恢复安装源配置时出错。
/etc/zypp/repos.d/BuildServices_Thruth .repo: Line 2 is missing '=' sign

第二行少了等號'='
文件:/etc/zypp/repos.d/BuildServices_Thruth.repo:
[BuildServices_Thruth
]  <=================這就是第二行
name=BuildServices_Thruth

enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/repositories/home:/swyear/openSUSE_Factory/
path=/
type=rpm-md
keeppackages=0

試將該文件改成
[BuildServices_Thruth]
name=BuildServices_Thruth

enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/repositories/home:/Thruth/openSUSE_Factory/
path=/
type=rpm-md
keeppackages=0

我猜你是要用 Thruth 的源
另:為什麼要用 Factory 呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表