yast2 error

Hello:

I’ve installed the lastest 12.3 KDE4 in my computer, and I try to open YAST2 from the menu, but it always said:

Su returned with an error.

does anybody know how to solve it?

THX

Albert

Open a terminal (konsole or xterm).

Then run:


su -

and give the root password when requested.

If that works, then try running


# yast2

from that root command line.

If the “su” does not work, then post back the details of any error message.

Tant may be a way to run YaST when the “normal” way (using the menu( does not work. Nut I assume that the OP wants thus to work from the menu. How do we tackle that? That is very abnormal for a fresh installed system.

To the OP:
You say you start YaST from the menu. What happens exactly? Does a window asking for the root password pop-up? And do you then type that password? And when do you get that error and in which window (or other place)?

I suggest that the OP check his install media to be sure it is burned correctly. There is a media check on the first menu.

Is the user running machine as root ?

there is an error for command “su -”

su: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory

then I made linke by command:

sudo ln -s libcrypto.so libcrypto.so.0.9.8

Now the YAST2 can popup when I click the menu. It is very strange, I input the correct password for root, but it always claimed:

Permission denied.
Possibly incorrect password, please try again.
On some systems, you need to be in a special group (often: wheel) to use this program. 

I add myself in the wheel group, but the problem is still there…

thx

You have a broken install. reinstall and check media first

Looks very much like it.

And please do not do such strange things as “adding yourself to the wheel group”, without asking here for the benefits and consequences of such a move.

And please do not tell things like

there is an error for command “su -”

su: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory

You should allways post your computer actions as they are on your terminal, including prompt, command, output and next prompt, by copy/paste between CODE tags. You get the COPDE tags by clicking on the # button in the toolbar of the post editor.

I don’t think so, I already check it in the installation step.

Actually the YAST2 works fine after installations, the problem happens when I update the system. However, it works fine when I login in the system with root.

Hello, thanks for reply.

I thought it was clearly stated, but it seems not. Now here is the thing:

I try to open YAST2 from GUI suse menu, when it pop up a dialoug for root password, I input a correct one, but it always claimed


 Permission denied.
Possibly incorrect password, please try again.
On some systems, you need to be in a special group (often: wheel) to use this program.


Acutually I was already in wheel group

I also try to run the following in terminal:


su -
su: Not setuid and you are not root, expect this to fail
root's password: 
Sorry!

THX

libcrypto.so.0.9.8 is not included openSUSE 12.3, but libcrypto.so.1.0.0.
So your su seems to be from an older openSUSE version…

How did you install?
Please show the output of:

zypper lr -d

then I made linke by command:

sudo ln -s libcrypto.so libcrypto.so.0.9.8

Don’t do that.
Remove that link again and install the openSUSE 12.3 version of su:

sudo zypper in -f coreutils-8.17-6.2.1

First and foremost NEVER log in as root!!!

Your su file seems to be installed wrongly. Please post

ls -la $(which su)

And also post what wolfi323 asks for.

To me it looks if you have an incompatible mix of repos.

Yesterday we has somebody with a repo mix from different versions of openSUSE. He also had su problems.

here is the output:

Illegal variable name.

here is the output for

zypper lr -d
#  | Alias                     | Name                               | Enabled | Refresh | Priority | Type   | URI                                                                         | Service
---+---------------------------+------------------------------------+---------+---------+----------+--------+-----------------------------------------------------------------------------+--------
 1 | KDE:Extra                 | KDE:Extra                          | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.3/         |        
 2 | KDE:Release:410           | KDE:Release:410                    | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Release:/410/openSUSE_12.3/  |        
 3 | google-chrome             | google-chrome                      | Yes     | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                         |        
 4 | home:Herbster0815         | home:Herbster0815                  | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/Herbster0815/openSUSE_12.3/ |        
 5 | home:derselbst            | home:derselbst                     | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/derselbst/openSUSE_12.3/    |        
 6 | home:ntami:htc            | home:ntami:htc                     | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/ntami:/htc/openSUSE_12.3/   |        
 7 | multimedia:libs           | multimedia:libs                    | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/multimedia:/libs/openSUSE_12.3/   |        
 8 | nVidia Graphics Drivers   | nVidia Graphics Drivers            | Yes     | Yes     |   99     | rpm-md | http://download.nvidia.com/opensuse/12.3/                                   |        
 9 | openSUSE_12.3-1.7         | openSUSE 12.3-1.7                  | Yes     | No      |   99     | yast2  | iso:///?iso=openSUSE-12.3-DVD-x86_64.iso&url=file:///home/albert/software/  |        
10 | repo-debug                | openSUSE-12.3-Debug                | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/12.3/repo/oss/              |        
11 | repo-debug-update         | openSUSE-12.3-Update-Debug         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/12.3/                             |        
12 | repo-debug-update-non-oss | openSUSE-12.3-Update-Debug-Non-Oss | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/12.3-non-oss/                     |        
13 | repo-non-oss              | openSUSE-12.3-Non-Oss              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/12.3/repo/non-oss/                |        
14 | repo-oss                  | openSUSE-12.3-Oss                  | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/12.3/repo/oss/                    |        
15 | repo-source               | openSUSE-12.3-Source               | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/12.3/repo/oss/             |        
16 | repo-update               | openSUSE-12.3-Update               | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/12.3/                                   |        
17 | repo-update-non-oss       | openSUSE-12.3-Update-Non-Oss       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/12.3-non-oss/                           |        


after I remove that link, and reinstalled the su version you mentioned:

The following package is going to be reinstalled:
  coreutils 

1 package to reinstall.
Overall download size: 1.2 MiB. No additional space will be used or freed after the operation.
Continue? [y/n/?] (y): y
Retrieving package coreutils-8.17-6.2.1.x86_64            (1/1),   1.2 MiB (  5.5 MiB unpacked)
Retrieving: coreutils-8.17-6.2.1.x86_64.rpm .............................................[done]
(1/1) Installing: coreutils-8.17-6.2.1 ..................................................[done]

My YAST2 cannot open the dialouge aksing for password again, it claimed as before:


Su   returned with an error.


Well, your repo list looks ok mostly, but you still seem to have a mixture of old packages…

So how did you upgrade to 12.3?

Try to run “sudo zypper dup”, that should bring all packages to their 12.3 versions.
But you should disable all repos except 1, 3, 8, 13, 14, 16 and 17 first:

sudo zypper mr -d 2 4 5 6 7 9 10 11 12 15
sudo zypper dup

You can enable the repos afterwards again if you want/need to.

And regarding your repos:
KDE:Extra doesn’t match with KDE:Release:410! Either change the KDE:Extra URL to [noparse]http://download.opensuse.org/repositories/KDE:/Extra/KDE_Release_410_openSUSE_12.3/[/noparse] or remove KDE:Release:410 (you get the KDE updates via the normal update repo anyway).
But do that after the “zypper dup” please.

Please, please post your computer texts completely. The prompt, the command, the output and the next prompt. We must see it as it happens on your terminal window. I can never check what went wrong without it being complete as it happens on your system.

As an example, I wil show what happens when I do tha command on my system:

henk@boven:~> ls -la $(which su)
-rwsr-xr-x 1 root root 44256 23 jan 14:04 /usr/bin/su
henk@boven:~>

Please do so likewise. Also for things like zypper lr -d

here it is:



/home/albert% ls -la $(which su)
Illegal variable name.


/home/albert% zypper lr -d
#  | Alias                     | Name                               | Enabled | Refresh | Priority | Type   | URI                                                                         | Service                                                                                                                                                     
---+---------------------------+------------------------------------+---------+---------+----------+--------+-----------------------------------------------------------------------------+--------                                                                                                                                                     
 1 | KDE:Extra                 | KDE:Extra                          | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_12.3/         |                                                                                                                                                             
 2 | KDE:Release:410           | KDE:Release:410                    | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Release:/410/openSUSE_12.3/  |                                                                                                                                                             
 3 | google-chrome             | google-chrome                      | Yes     | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                         |                                                                                                                                                             
 4 | home:Herbster0815         | home:Herbster0815                  | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/Herbster0815/openSUSE_12.3/ |                                                                                                                                                             
 5 | home:derselbst            | home:derselbst                     | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/derselbst/openSUSE_12.3/    |        
 6 | home:ntami:htc            | home:ntami:htc                     | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/ntami:/htc/openSUSE_12.3/   |        
 7 | multimedia:libs           | multimedia:libs                    | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/multimedia:/libs/openSUSE_12.3/   |        
 8 | nVidia Graphics Drivers   | nVidia Graphics Drivers            | Yes     | Yes     |   99     | rpm-md | http://download.nvidia.com/opensuse/12.3/                                   |        
 9 | openSUSE_12.3-1.7         | openSUSE 12.3-1.7                  | No      | No      |   99     | yast2  | iso:///?iso=openSUSE-12.3-DVD-x86_64.iso&url=file:///home/albert/software/  |        
10 | repo-debug                | openSUSE-12.3-Debug                | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/12.3/repo/oss/              |        
11 | repo-debug-update         | openSUSE-12.3-Update-Debug         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/12.3/                             |        
12 | repo-debug-update-non-oss | openSUSE-12.3-Update-Debug-Non-Oss | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/12.3-non-oss/                     |        
13 | repo-non-oss              | openSUSE-12.3-Non-Oss              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/12.3/repo/non-oss/                |        
14 | repo-oss                  | openSUSE-12.3-Oss                  | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/12.3/repo/oss/                    |        
15 | repo-source               | openSUSE-12.3-Source               | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/12.3/repo/oss/             |        
16 | repo-update               | openSUSE-12.3-Update               | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/12.3/                                   |        
17 | repo-update-non-oss       | openSUSE-12.3-Update-Non-Oss       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/12.3-non-oss/  

Hello:

thanks for kind adices.

I installed the system from beginning instead of upate it from an old version. After the installations, I use command


zypper update

to update the system. Unfortunately, I am following your steps mentioned above one by one, it is strange the problem is still there:



/home/albert% su -
su: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory


Strange, because as I said libcrypto.so.0.9.8 isn’t included in openSUSE 12.3 so the included su can’t depend on it (it needs libcrypto.so.1.0.0 instead), you must have su from somewhere else. Maybe you have an incompatible su command somewhere else in your path? (e.g. /usr/local/bin/ or ~/bin/)
Please post the outputs of:

which su
rpm -qf /usr/bin/su

The other thing I could imagine is that you have a wrong libcrypto.so symlink somewhere.