Page 1 of 1

[SOLVED] urpmf and urpmq only work as root

PostPosted: Jun 16th, '13, 03:06
by Khym_Chanur
When I try to use urpmf or urpmq from as a non-root user I get no results, without any useful error messages (for example, "urpmq tk" simply tells me "No package named tk"); doing this on Mandriva worked just fine.

Trying "urpmq --debug tk" gets me:

Code: Select all
getting lock on urpmi
parsing: /etc/urpmi/mediacfg.d/Devel-3-i586
parsing: /etc/urpmi/mediacfg.d/Official-3-i586
No package named tk
unlocking urpmi database
EXITING (pid=11736)


When run as root, I instead get:

Code: Select all
getting lock on urpmi
parsing: /etc/urpmi/mediacfg.d/Devel-3-i586
parsing: /etc/urpmi/mediacfg.d/Official-3-i586
examining synthesis file [/var/lib/urpmi/Core Release (distrib5)/synthesis.hdlist.cz]
(more "examining synthesis file" lines removed)
tk
EXITING (pid=11802)


Trying to make them setuid doesn't work (probably because they're scripts).

Thanks.

Re: urpmf and urpmq only work as root

PostPosted: Jun 16th, '13, 10:42
by doktor5000
Works here as normal user, no matter if urpmq or urpmf. Could you try
Code: Select all
urpmq -y tk
and
Code: Select all
urpmf -f -m --name tk

Which security level did you set during installation, and was this an upgrade or a clean installation?

Re: urpmf and urpmq only work as root

PostPosted: Jun 17th, '13, 00:15
by Khym_Chanur
Turns out the problem was that /etc/urpmi/urpmi.cfg wasn't world-readable. A simple "chmod" fixed the problem. I'm going to file a bug report, since there should be a complaint if they can't read the config file.