[SOLVED] urpmf and urpmq only work as root

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] urpmf and urpmq only work as root

Postby Khym_Chanur » Jun 16th, '13, 03:06

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.
Last edited by Khym_Chanur on Jun 17th, '13, 00:16, edited 1 time in total.
Khym_Chanur
 
Posts: 4
Joined: Jun 16th, '13, 02:55

Re: urpmf and urpmq only work as root

Postby doktor5000 » Jun 16th, '13, 10:42

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?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: urpmf and urpmq only work as root

Postby Khym_Chanur » Jun 17th, '13, 00:15

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.
Khym_Chanur
 
Posts: 4
Joined: Jun 16th, '13, 02:55


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest