Yumex problem

Jim binarynut at comcast.net
Fri Aug 23 23:57:28 UTC 2013


On 08/23/2013 06:18 PM, g wrote:
>
>
> On 08/23/2013 03:32 PM, Jim wrote:
>> On 08/23/2013 02:07 PM, Frank wrote:
> <<>>
>
>>>    Yumex runs yum  as a backend...so the yumex.conf file must have
>>>
>>> use_sudo=1 in it. Its located on my 19 system as $HOME/.config/yumex
>>>
>>> On my system sudo is configured to give root access without a
>>> password. YMMV.
>>>
>>>
>>> Regards
>>>
>>> Frank
>>
>> I put the  use_sudo=1 in the first line of ~/.config/yumex and then I
>> ran yumex as user and got this Error message;
>>
>>    [jim at localhost Desktop]$ yumex
>> 16:05:16 : INFO - Using config file : /home/jim/.config/yumex/yumex.conf
>> Traceback (most recent call last):
>>     File "/usr/bin/yumex", line 42, in <module>
>>       app = YumexApplication(backend)
>>     File "/usr/lib/python2.7/site-packages/yumexgui/__init__.py", line
>> 199, in __init__
>>       self.cfg = YumexOptions()
>>     File "/usr/lib/python2.7/site-packages/yumexbase/conf.py", line 73,
>> in __init__
>>       self.conf_settings = self.get_yumex_config()
>>     File "/usr/lib/python2.7/site-packages/yumexbase/conf.py", line 93,
>> in get_yumex_config
>>       parser.read(CONF_FILE)
>>     File "/usr/lib/python2.7/site-packages/iniparse/compat.py", line 99,
>> in read
>>       self.data._readfp(fp)
>>     File "/usr/lib/python2.7/site-packages/iniparse/ini.py", line 
>> 565, in
>> _readfp
>>       raise MissingSectionHeaderError(fname, linecount, line)
>
> /*NOTE*
>> MissingSectionHeaderError: File contains no section headers.
>> file: /home/jim/.config/yumex/yumex.conf, line: 1
>> '\xef\xbb\xbf[yumex]\n'
> /*ETON*
>
>>
>>
>> But I found out that if I run Yumex as SU by using this command, "yumex
>> --root"  it will force it to run.
>>
>
> how about a clarification;
>
> from jim's post, file is "~/.config/yumex/yumex.conf".
>
> you post "use_sudo=1 in the first line of ~/.config/yumex"
>
> did you mean "use_sudo=1 in the first line of ~/.config/yumex/yumex.conf"
> after headers?
>
> does root have "/root/.config/yumex/yumex.conf"?
>
> if so, how do lines compare to your "~/.config/yumex/yumex.conf"?
>
> see the "*NOTE*" lines i marked from your post.
>
> iow, "1 st line" and "line: 1" can _technically_ have different meanings
> when it comes to configuration files.
>
>
  [yumex]
use_sudo=1
autorefresh = 1
recentdays = 14
proxy =
exclude =
debug = 0
color_install = darkgreen
color_update = red
color_normal = black
color_obsolete = blue
plugins = 1
yumdebuglevel = 2
win_height = 494


I guess I should have said line 2 .


More information about the users mailing list