Re: Problems with yum.repos.d

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 16 Feb 2011 19:54:32 -0500, Jim wrote:

> F14
> 
> What is is wrong with this repos ?
> 
> [playonlinux]
> name=PlayOnLinux Official repository
> baseurl=http://rpm.playonlinux.com/fedora/yum/base
> enable=1
> gpgcheck=0
> gpgkey=http://rpm.playonlinux.com/public.gpg
> 
> 
> Error message;
> 
> 19:34:06 : Connected to an network
> 19:34:06 : Starting yum child process
> 19:34:13 : YUM: Loaded plugins: auto-update-debuginfo, langpacks, presto
> 19:34:13 : YUM: Adding en_US to language list
> 19:34:13 : YUM: Traceback (most recent call last):
> 19:34:13 : YUM:   File "/usr/share/yumex/yum_childtask.py", line 66, in 
> <module>
> 19:34:13 : YUM:     my = YumServer(debuglevel, plugins, offline, repos, 
> yum_conf)
> 19:34:13 : YUM:   File 
> "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 183, 
> in __init__
> 19:34:13 : YUM:     self.repos.setProgressBar(self.dnlCallback)
> 19:34:13 : YUM:   File 
> "/usr/lib/python2.7/site-packages/yum/__init__.py", line 823, in <lambda>
> 19:34:13 : YUM:     repos = property(fget=lambda self: self._getRepos(),
> 19:34:13 : YUM:   File 
> "/usr/lib/python2.7/site-packages/yum/__init__.py", line 548, in _getRepos
> 19:34:13 : YUM:     self.getReposFromConfig()
> 19:34:13 : YUM:   File 
> "/usr/lib/python2.7/site-packages/yum/__init__.py", line 440, in 
> getReposFromConfig
> 19:34:13 : YUM:     self.getReposFromConfigFile(repofn, 
> repo_age=thisrepo_age)
> 19:34:13 : YUM:   File 
> "/usr/lib/python2.7/site-packages/yum/__init__.py", line 369, in 
> getReposFromConfigFile
> 19:34:13 : YUM:     raise Errors.ConfigError, msg
> 19:34:13 : YUM: yum.Errors.ConfigError: File contains no section headers.
> 19:34:13 : YUM: file: file://///etc/yum.repos.d/playonlinux.repo, line: 1
> 19:34:13 : YUM: ' [playonlinux]\n'

Notice the quoted string in the last line of the Python exception.
It refers to ' [playonlinux]\n' which has a leading space character
before the section header. Remove that one in the .repo file and try
again. Yum's repo loader is not smart enough to do this whitespace
stripping automatically.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux