Yast doesnt perform the User/Group Management

Hello, I’m using open suse 11.4 64Bit with KDE 4.6.5 and experiencing a rather awkward problem. Yast launches normally and can perform all but the user and group management task. I had the intention of adding a new user on my system. However when I logged in as root and attempted to launch the same application, I got the following error in a pop-up window:

Can't locate ycp.pm in @INC (@INC contains: /y2update/modules /root/.yast2/modules /usr/share/YaST2/modules 
/usr/lib/perl5/site_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-
multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/5.12.3 .) at 
/usr/share/YaST2/modules/YaPI.pm line 27.
BEGIN failed--compilation aborted at /usr/share/YaST2/modules/YaPI.pm line 27.
Compilation failed in require at /usr/share/YaST2/modules/Users.pm line 15.
BEGIN failed--compilation aborted at /usr/share/YaST2/modules/Users.pm line 15.
Compilation failed in require.
BEGIN failed--compilation aborted (#1)
    (F) You said to do (or require, or use) a file that couldn't be
    found. Perl looks for the file in all the locations mentioned in @INC,
    unless the file name included the full path to the file.  Perhaps you
    need to set the PERL5LIB or PERL5OPT environment variable to say where
    the extra library is, or maybe the script needs to add the library name
    to @INC.  Or maybe you just misspelled the name of the file.  See
    perlfunc/require and lib.
    
Uncaught exception from user code:
	Can't locate ycp.pm in @INC (@INC contains: /y2update/modules /root/.yast2/modules /usr/share/YaST2/modules 
/usr/lib/perl5/site_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-
multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/5.12.3 .) at
 /usr/share/YaST2/modules/YaPI.pm line 27.
BEGIN failed--compilation aborted at /usr/share/YaST2/modules/YaPI.pm line 27.
Compilation failed in require at /usr/share/YaST2/modules/Users.pm line 15.
BEGIN failed--compilation aborted at /usr/share/YaST2/modules/Users.pm line 15.
Compilation failed in require.
BEGIN failed--compilation aborted.
 at -e line 0
y2base: perl.c:542: perl_destruct: Assertion `(my_perl->Iscopestack_ix) == 1' failed.
YaST got signal 6 at YCP file /usr/share/YaST2/clients/users.ycp:22
/sbin/yast2: line 423: 28870 Aborted                 $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS 

What can I do to remedy this?
Thanks in advance.

I do not understand this to be honest. You say thattYaST > Security and users > User and group management “does not pergorm the tsk”. But yoy fail to tell more precise what happens. Does the Users and group management open? When no, does nythiog else happen or do you still see only the main YaST window? When yes. what do you do to enter that new user and where do you got stuck/loose control, do strange things happen? A lot is very vague here.

Then “… logged in as root and attempted to launch the same application …”. Apart from te fact that you should not log in as root, What is “the same application”? YaST again? I ask because the computer text you show talks about compilations errors. Very strange indeed.

On 07/20/2011 09:06 PM, toffie101 wrote:
>
> However when I logged in as root and attempted to
> launch the same application, I got the following error in a pop-up
> window:

by that do you mean that you logged out of KDE as yourself, and then
back into KDE as root, launched YaST and then got the included error?

what happens if you:
-log into KDE as yourself
-launch YaST
-provide the root password when it is requested
-launch User and Group Management

it should work that way, if not please tell us so…

i say it should work because that is the way YaST is intended to be
used–that is, you use YaST while logged into the GUI as yourself and
“become root” by launching YaST and giving the root password…

it is (with very few exceptions) generally accepted as not a good idea
to log into KDE as root, read more here and other places in these fora
and the wiki on that subject: http://en.opensuse.org/SDB:Login_as_root


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

Sorry for being so vague. I meant that as a regular user, I become root at the prompt and launch Yast. From the main YAST window, everything works fine apart from User/Group control (btw all the other applications under Security and Users work). When I click on the User/Group control icon, the cursor turns into a rotating disc then quits after a few seconds with nothing else happening. No strange behaviour at all, the follow-on window just doesn’t launch.

Then I logged into KDE as root, ran YAST and attempted to access User/Group management. Again nothing happened but I got a pop-up window whose content (compilation errors) I posted in my previous message. Hopefully this is clearer and thanks for your response.

Well DenVerD it failed when I started Yast the normal way you just described. I got curious and wanted to see what happened when I started yast while logged in KDE as root. It still didn’t work, and I’m no longer curious.

That explains things. Do you mean by “I become root at the prompt and launch Yast.” that you first started a Konsole (or another terminal emulator)? I ask because most people simply click the YaST icon from the main KDE menu if they want to start it from within a GUI session. I guess it should not make much difference, but when you ask us to help you, you shold tell us what you do, else we are spoiling our time in guessing and making the wrong conclusions.

And yes there is no need ever to log in into the GUI as root. It is about five times more stupid then login in as root in the CLI. rotfl!

Maybe you can try the folloeing. From a terminal (Konsole) here you become root with

su -

try

yast users

This should start the Users module in the Ncurses interface.

You could also check if the package yast2-users is installed. I did not see asystem were it wasn’t, but on the other hand, I didn’t see a system with that strange behaviour.

Do you mean by “I become root at the prompt and launch Yast.” that you first started a Konsole (or another terminal emulator)?

Yes I type su in the console and give the root password.

yast users
as root doesnt do anything but gives me the compilation errors i posted before, which i reproduce below

dyn-0a2a1d6c:/windows/E/writeups/Posters # yast users
Can't locate ycp.pm in @INC (@INC contains: /y2update/modules /root/.yast2/modules /usr/share/YaST2/modules /usr/lib/perl5/site_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/5.12.3 .) at /usr/share/YaST2/modules/YaPI.pm line 27.
BEGIN failed--compilation aborted at /usr/share/YaST2/modules/YaPI.pm line 27.
Compilation failed in require at /usr/share/YaST2/modules/Users.pm line 15.
BEGIN failed--compilation aborted at /usr/share/YaST2/modules/Users.pm line 15.
Compilation failed in require.
BEGIN failed--compilation aborted (#1)
    (F) You said to do (or require, or use) a file that couldn't be
    found. Perl looks for the file in all the locations mentioned in @INC,
    unless the file name included the full path to the file.  Perhaps you
    need to set the PERL5LIB or PERL5OPT environment variable to say where
    the extra library is, or maybe the script needs to add the library name
    to @INC.  Or maybe you just misspelled the name of the file.  See
    perlfunc/require and lib.
    
Uncaught exception from user code:
        Can't locate ycp.pm in @INC (@INC contains: /y2update/modules /root/.yast2/modules /usr/share/YaST2/modules /usr/lib/perl5/site_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/5.12.3 .) at /usr/share/YaST2/modules/YaPI.pm line 27.
BEGIN failed--compilation aborted at /usr/share/YaST2/modules/YaPI.pm line 27.
Compilation failed in require at /usr/share/YaST2/modules/Users.pm line 15.
BEGIN failed--compilation aborted at /usr/share/YaST2/modules/Users.pm line 15.
Compilation failed in require.
BEGIN failed--compilation aborted.
 at -e line 0
y2base: perl.c:542: perl_destruct: Assertion `(my_perl->Iscopestack_ix) == 1' failed.
YaST got signal 6 at YCP file /usr/share/YaST2/clients/users.ycp:22
/sbin/yast: line 423:   429 Aborted                 $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS

The yast2-users package is installed.

 dyn-0a2a1d6c:/windows/E/writeups/Posters # zypper se -s --match-exact yast2-users
Loading repository data...
Reading installed packages...                                                                                                                                                                                                                
                                                                                                                                                                                                                                             
S | Name        | Type    | Version      | Arch   | Repository                                                                                                                                                                               
--+-------------+---------+--------------+--------+------------------                                                                                                                                                                        
i | yast2-users | package | 2.20.2-1.2.1 | x86_64 | (System Packages) 

Thanks again.

have you installed anything from factory or tumbleweed?

in prep of reinstalling some YaST packages, please show us the output of
entering the following into a terminal


zypper lr -d

and copy/paste the output back to this thread using the instructions
here: http://goo.gl/i3wnr


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

Very strange indeed.

While the following might not help with your problem (let us hope more people will see this and may have a good idea), I have two remarks.

. You say you typed “su”. I showed above to use

su -

Be aware that the second form (with the - sign) is more secure and can avoid some problems in e.g. having the wrong PATH.

. your prompt

dyn-0a2a1d6c:/windows/E/writeups/Posters #

leads me to thinking that you are in a non Linux file system. I do not know how you ventured there and why you are not in* /root* (as you would have been using su -) or in the home directory of the user you were when you did the *su, *but be aware that non linux file systems are not a replacement for the real stuff in your system. They can be used for exchanging with MS systems, but that is about it.

On 2011-07-20 22:56, toffie101 wrote:
>
>> Do you mean by “I become root at the prompt and launch Yast.” that you
>> first started a Konsole (or another terminal emulator)?
> Yes I type su in the console and give the root password.

You should type “su -”. The dash is crucial.

> Code:
> --------------------
> dyn-0a2a1d6c:/windows/E/writeups/Posters # yast users
> Can’t locate ycp.pm in @INC (@INC contains: /y2update/modules /root/.yast2/modules /usr/share/YaST2/modules /usr/lib/perl5/site_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi /usr/lib/perl5/5.12.3 .) at /usr/share/YaST2/modules/YaPI.pm line 27.

Check that you have the file “/usr/lib/perl5/vendor_perl/5.12.3/ycp.pm”, it
is part of yast2-core…rpm.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

I do understand that you want to solve the YaST-problem, as it is a bit puzzling indeed. Referring to the actual task, you can add new users via command line.

useradd

It’s pretty simple to use.

Sorry for responding so late to your suggestions, I was away yesterday. DenverD, yes I do use updates from Tumbleweed but not Factory. Below is the requested output

dyn-0a2a1d6c:~ # zypper lr -d
#  | Alias                          | Name                       | Enabled | Refresh | Priority | Type   | URI                                                                            | Service
---+--------------------------------+----------------------------+---------+---------+----------+--------+--------------------------------------------------------------------------------+--------
 1 | KDEapps                        | KDEapps                    | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/UpdatedApps/openSUSE_11.4/      |        
 2 | KDEcore                        | KDEcore                    | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Distro:/Stable/openSUSE_11.4/   |        
 3 | KDExtra                        | KDExtra                    | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_11.4/            |        
 4 | Tumbleweed                     | Tumbleweed                 | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/Tumbleweed/standard/       |        
 5 | download.opensuse.org-standard | Main Repository (Contrib)  | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/11.4:/Contrib/standard/    |        
 6 | editor                         | editor                     | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/M17N/openSUSE_11.4/                  |        
 7 | ftp.uni-erlangen.de-suse       | Packman Repository         | No      | Yes     |   99     | rpm-md | http://ftp.uni-erlangen.de/pub/mirrors/packman/suse/openSUSE_11.4/             |        
 8 | google-talkplugin              | google-talkplugin          | No      | Yes     |   99     | rpm-md | http://dl.google.com/linux/talkplugin/rpm/stable/x86_64                        |        
 9 | mozilla                        | mozilla                    | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/mozilla/openSUSE_11.4/               |        
10 | openSUSE-11.4-11.4-0           | openSUSE-11.4-11.4-0       | No      | No      |   99     | yast2  | cd:///?devices=/dev/disk/by-id/ata-HL-DT-ST_DVDRAM_GH40F_61A85B82763A,/dev/sr0 |        
11 | repo-debug                     | openSUSE-11.4-Debug        | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/11.4/repo/oss/                 |        
12 | repo-debug-update              | openSUSE-11.4-Update-Debug | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/11.4/                                |        
13 | repo-non-oss                   | openSUSE-11.4-Non-Oss      | No      | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/                   |        
14 | repo-oss                       | openSUSE-11.4-Oss          | No      | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss/                       |        
15 | repo-source                    | openSUSE-11.4-Source       | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/11.4/repo/oss/                |        
16 | update                         | update                     | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.4/                                      |        
17 | weedos                         | weedos                     | Yes     | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Tumbleweed                               |        

Check that you have the file “/usr/lib/perl5/vendor_perl/5.12.3/ycp.pm”, it
is part of yast2-core…rpm.

That file is not on my system

dyn-0a2a1d6c:~ # ls /usr/lib/perl5/vendor_perl/5.12.3/
Apache      Bundle  Crypt  Date    Error     File  HTTP  IP     Immunix  LWP.pm  Mail  Parse  SQL  Time  WWW   XML   auto         lwptut.pod            x86_64-linux-thread-multi
Bootloader  Config  DBD    Digest  Error.pm  HTML  IO    Image  LWP      MLDBM   Net   RPC    Sys  URI   X500  YaST  lwpcook.pod  spamassassin-run.pod

I already used that command to add the user and set the password but if I remember well, I could not turn-off auto-login. Whenever I start the system I’m not prompted to select the user to logon.
That additional assistance could solve my problem in the short term.

On 07/22/2011 07:26 AM, toffie101 wrote:
>
> DenverD, yes I do use updates from Tumbleweed but not Factory.

short version: imo you need to be posting in the Tumbleweed
forum…suggest you PM a moderator and ask this thread be moved…or ?

long version: sorry i can’t help you more (maybe others here can, or
maybe a Tumbleweed aware helper can fix you up here–and, you don’t need
the thread moved)…

i can’t help because i don’t keep up with the ramifications of
Tumbleweed code and Tumbleweed’s repo directions/strategy…

that is, i was thinking that to fix your problem it might be good to use
zypper to repair YaST–replace all of YaST with known good code (which
comes from oss as patched by update)…

but, when you have a mix which may or may not include the new
Thunderbird code, i do not know the safe way to do that replacement
(that is, should you force backlevel to oss by blocking Thunderbird repo
and hope for the best, or what?)

so, i just say that if i were you, as long as i were using Thunderbird
i’d post first in the Thunderbird forum because as far as i know your
problem is in Thunderbird’s code base…and, if that is true then you
should file a bug…but, . . .

> Below is the requested output

in my view there are a couple of things in your repo set up that might
make your life easier…one is there is no need to refresh repos you do
not have enabled…doing so just cost you time every time you access
either YaST Software Management or zypper…and, you spend all that time
refreshing for no reason, since disabled repos won’t be providing any
code, even if refreshed…

and the other is priorities, but again i don’t know enough about the
correct way to run Tumbleweed and set up the repos to keep it
smooth…so, just get a Tumbleweed guru to look at your repo setup and
pass judgment on it.

sorry i can’t be more helpful.


DD
Caveat-Hardware-Software
openSUSE®, the “German Engineered Automobiles” of operating systems!

I try to make this shorter then DenverD :wink:

Yes, you should have posted this in the Tumbleweed forum or at least told us you do not use normal 11.4, but Tumbleweed (in the last case we most probably would have told you it would be in your own interest to ask Tumbleweed questions in the Tumbleweed forum).

Not knowing to much about Tumbleweed, but my advice would be to check at least if all the yast2 packages are installed from the same repo.

Thanks, am grateful to you all for the assistance. Is it possible for my thread to be moved by the moderators here to Tumbleweed or I have to start there all over again?

It is possible (though I hate to do it).

Please NNTP users: this is going to be moved (after some time, when I do not forget).

Moved to Tumbleweed.

… but my advice would be to check at least if all the yast2 packages are installed from the same repo.

With all those repos on board as well as the main Tumbleweed repo, mixed packman repos, advanced KDE repos plus new KDE from Tumbleweed, I would only be surprised if there was no problem.

I suggest that you detach all but these
openSUSE 11.4
openSUSE 11.4 updates
openSUSE 11.4 contrib
Tumbleweed main
Tumbleweed packman

Then do a zypper dup (first do zypper dup -D first and have a good study of the proposal zypper makes)