Bug 1046161 - [abrt] yum-utils: __init__.py:460:getReposFromConfigFile:ConfigError: File contains no section headers.
Summary: [abrt] yum-utils: __init__.py:460:getReposFromConfigFile:ConfigError: File co...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:910c7a36d2538167c4d6e4b6c09...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-23 21:39 UTC by Wouter
Modified: 2014-01-12 05:01 UTC (History)
4 users (show)

Fixed In Version: yum-utils-1.1.31-20.fc20
Clone Of:
Environment:
Last Closed: 2014-01-12 05:01:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.32 KB, text/plain)
2013-12-23 21:39 UTC, Wouter
no flags Details
File: environ (338 bytes, text/plain)
2013-12-23 21:39 UTC, Wouter
no flags Details

Description Wouter 2013-12-23 21:39:50 UTC
Version-Release number of selected component:
yum-utils-1.1.31-19.fc20

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python -tt /usr/bin/yum-config-manager --save --setopt=rpmfusion-free.skip_if_unavailable=1 --setopt=Rpmfusion-free.skip_if_unavailable=1
dso_list:       yum-3.4.3-122.fc20.noarch
executable:     /usr/bin/yum-config-manager
kernel:         3.12.5-302.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
__init__.py:460:getReposFromConfigFile:ConfigError: File contains no section headers.
file: file://///etc/yum.repos.d/fedorautils.repo, line: 1
'<html>\r\n'

Traceback (most recent call last):
  File "/usr/bin/yum-config-manager", line 169, in <module>
    repos = yb.repos.listEnabled()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1067, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 692, in _getRepos
    self.getReposFromConfig()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 571, in getReposFromConfig
    self.getReposFromConfigFile(repofn, repo_age=thisrepo_age)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 460, in getReposFromConfigFile
    raise Errors.ConfigError(exception2msg(e))
ConfigError: File contains no section headers.
file: file://///etc/yum.repos.d/fedorautils.repo, line: 1
'<html>\r\n'

Local variables in innermost frame:
e: File contains no section headers.
file: file://///etc/yum.repos.d/fedorautils.repo, line: 1
'<html>\r\n'
repofn: '///etc/yum.repos.d/fedorautils.repo'
confpp_obj: <yum.parser.ConfigPreProcessor instance at 0x28e5638>
parser: <iniparse.compat.RawConfigParser object at 0x28ea210>
repo_age: 1387832932
validate: None
self: <utils.YumUtilBase object at 0x275b1d0>

Comment 1 Wouter 2013-12-23 21:39:54 UTC
Created attachment 840960 [details]
File: backtrace

Comment 2 Wouter 2013-12-23 21:39:56 UTC
Created attachment 840961 [details]
File: environ

Comment 3 Zdeněk Pavlas 2014-01-08 16:57:09 UTC
Your /etc/yum.repos.d/fedorautils.repo file is invalid, that's the root cause.
Yum would complain too, just without the traceback.  I'll fix this in yum-config-manager.

Comment 4 Fedora Update System 2014-01-10 11:09:11 UTC
yum-utils-1.1.31-20.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/yum-utils-1.1.31-20.fc20

Comment 5 Fedora Update System 2014-01-11 08:47:03 UTC
Package yum-utils-1.1.31-20.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-utils-1.1.31-20.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0652/yum-utils-1.1.31-20.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-01-12 05:01:16 UTC
yum-utils-1.1.31-20.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.