日期:2014-05-16  浏览次数:20906 次

suse zypper 安装软件报错:Error building the cache:
pc456:/etc/zypp/repos.d # zypper ref
Repository 'SUSE-1' is up to date.
Building repository 'SUSE-1' cache [done]
Error building the cache:
'repo2solv.sh' '-o' '/var/cache/zypp/solv/SUSE-1/solv' '/var/cache/zypp/raw/SUSE-1'
repo_content: 'CONTENTSTYLE' must be first line of 'content'
repo_content: 'content' incomplete, no product solvable created !

Skipping repository 'SUSE-1' because of the above error.
Could not refresh the repositories because of errors.


/etc/zypp/repos.d 目录下,就一个文件
main.repo 内容为:

[SUSE-1]
name=SUSE-1
enabled=1
autorefresh=0
baseurl=file:///media/openSUSE-13.1-DVD-x86_640091
path=/
type=yast2
------解决方案--------------------
源的版本有问题,13的源,不能用在11的suse系统中。在11系统的suse中,只能用11的源