and i’m lost.
Took on a new client that hasn’t been upgraded in a bit. They have one Suse server, no GUI. Had an issue last week where the data disappeared - never seen that before so I tried to install some data recovery software through the command line. Well, the install of that software failed so I took a chance and did a reboot.
Data came back online - but now as the system boots, i’m getting errors.
Error while loading shared libraries: libz.so.1 : cannot open shared object file
Now of course both neither yum and zypper working, they give the same error. None of the services will run.
I believe zlib is the cause, but how do I remove it manually or repair this system?
Thanks in advance.
On 2015-07-16 01:56, LostinSuse wrote:
>
> and i’m lost.
>
> Took on a new client that hasn’t been upgraded in a bit.
Is it openSUSE? Or SUSE? there is a big difference.
cat /etc/SuSE-release
should tell.
If it is SUSE, you are at the wrong forums. You have to go to …? Same
login as here.
If it is openSUSE, we’ll try
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” (Minas Tirith))
I haven’t got physical access to the server at the moment to check. But i’m pretty sure it’s opensuse.
Even if I can get some ideas to look at tomorrow morning.
On 2015-07-16 04:26, LostinSuse wrote:
>
> I haven’t got physical access to the server at the moment to check. But
> i’m pretty sure it’s opensuse.
remote access suffices.
>
> Even if I can get some ideas to look at tomorrow morning.
The difference is huge. openSUSE 11.3 is out of support, SUSE 11.3 is
not. But the methodology to update them is different.
In openSUSE you would have to point repositories at the archived or
discontinued versions. On SUSE you need a support contract, and then I
don’t know about the links.
Then if zypper does not work, you need to use plain “rpm”. If that one
also fails, it is very bad news. You would have to copy files by hand,
from another machine installed with the same release, till you make rpm
to work…
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” (Minas Tirith))
Nothing is working on this server at the moment. SSH server is down as well, always getting the same message.
Neither RPM or zypper are working so I can’t install or remove anything. Zlib caused this, is there any way to manually remove it?
I’m heading there shortly, i’ll post back on the version.
On Thu, 16 Jul 2015 10:18:06 +0000, Carlos E. R. wrote:
> SUSE 11.3 is not.
SUSE 11.3 doesn’t exist.
SUSE Linux Enterprise Server (or Desktop) 11 SP3 is the product.
Given that he said it’s “old”, my money is on openSUSE 11.3, because SLES
11 SP4 was only just recently released - and SP3 was, up to that point,
current (not “old”).
Jim
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
On 2015-07-16 18:44, Jim Henderson wrote:
> On Thu, 16 Jul 2015 10:18:06 +0000, Carlos E. R. wrote:
>
>> SUSE 11.3 is not.
>
> SUSE 11.3 doesn’t exist.
>
> SUSE Linux Enterprise Server (or Desktop) 11 SP3 is the product.
>
> Given that he said it’s “old”, my money is on openSUSE 11.3, because SLES
> 11 SP4 was only just recently released - and SP3 was, up to that point,
> current (not “old”).
Makes sense.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” (Minas Tirith))
On 2015-07-16 16:56, LostinSuse wrote:
>
> Nothing is working on this server at the moment. SSH server is down as
> well, always getting the same message.
> Neither RPM or zypper are working so I can’t install or remove anything.
> Zlib caused this, is there any way to manually remove it?
>
> I’m heading there shortly, i’ll post back on the version.
If rpm does not work, what I would do is install on another computer,
even as a virtualized guest, a similar install of 11.3. Or better, in a
free partition of the same machine.
Then, hand copy the rpm program and needed libraries, file by file.
An alternative is, using the 11.3 install DVD, do an offline upgrade of
11.3 to 11.3.
Mind, this is drastic procedure: it replaces most of the system with
original and initial versions: no updates. If the admin of that machine
installed things from elsewhere, they are lost.
However, rpm command does not use phyton, it can’t be giving the same
message.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” (Minas Tirith))
Ok, been a long week. It’s opensuse 10.3 (x86-64).
On a reboot, everything errors out with "error while loading shared libraries : libz.so.1: cannot open shared etc.
Last 3 packages that were installed are
gcc 4.2-24.i586
file 4.21-7.i586
zlib 1.2.3-75.i586
Is there a way to manually remove these? I have some software that needs to be moved to a new server, subversion needs to be dumped but I can’t run any commands. None of zypper, rpm or yum will run.
Oh dear even older I have no idea where any old repos are for a system that ancient. On the other hand I believe 10.3 still had the repair function on the install CD’s as an option. But it does take all versions back to the non patched level if that system was actually ever maintained. I’m fairly sure about that. I think that the repair function was dropped in about the 11.X time. That is assuming you have the install media and it is still in functional shape. This is like lets fix that old wrecked model T. It very well may take serious time.
Why do you want to remove them?
You should rather reinstall them.
The 10.3 repo is available online here:
http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/10.3/repo/oss/suse/
I would suggest to download the appropriate zlib package, extract the files (you can do that on a different system, Ark e.g. should be able to open an .rpm file as archive, file-roller probably too, or you can convert it to an cpio archive, see here: http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html), and copy them over to the broken system somehow.
On 2015-07-16 19:36, LostinSuse wrote:
>
> Ok, been a long week. It’s opensuse 10.3 (x86-64).
>
> On a reboot, everything errors out with "error while loading shared
> libraries : libz.so.1: cannot open shared etc.
>
> Last 3 packages that were installed are
> gcc 4.2-24.i586
> file 4.21-7.i586
> zlib 1.2.3-75.i586
>
> Is there a way to manually remove these? I have some software that needs
> to be moved to a new server, subversion needs to be dumped but I can’t
> run any commands. None of zypper, rpm or yum will run.
You can not remove. You have to reinstall the proper versions. You have
it here:
http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/10.3/repo/oss/suse/i586/zlib-1.2.3-75.i586.rpm
You have to expand the archive on another machine, then hand copy the
files one by one to the proper directory.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” (Minas Tirith))
And silly question, but do you know where these files are supposed to go? Or how to link them properly?
when I do a “which zlib”, it shows file not found in any directory but the files are there.
Easy. The files in /lib/ in the “archive” should go as they are to /lib/ on your system.
when I do a “which zlib”, it shows file not found in any directory but the files are there.
zlib is a package, not a command.
Here’s its content:
# rpm -qlp http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/10.3/repo/oss/suse/i586/zlib-1.2.3-75.i586.rpm
/lib/libz.so.1
/lib/libz.so.1.2.3
So just copy the latter one. The first one is just a symlink to the second one, and is probably present anyway. If not you could also create it manually:
ln -s /lib/libz.so.1.2.3 /lib/libz.so.1
Afterwards at least rpm should work again.
Turns out it was a silly question. Transferred the files, did a reboot and everything is up and running again.
Thank you for your help Cheers!