LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-26-2015, 09:07 AM   #1
Westeros
LQ Newbie
 
Registered: Mar 2014
Posts: 7

Rep: Reputation: Disabled
ZLIB_1.2.5.2 problem


I am using Debian wheezy with Xfce for a while so far so good, until today. After I reboot my machine this morning, the x-window cannot start anymore. I saw the following message when try to start x-window.

# startx
/usr/bin/X: /usr/local/lib/libz.so.1: version 'ZLIB_1.2.5.2' not found (required by /usr/lib/x86_64-linux-gnu/libfontenc.so.1)
xinit: giving up
xinit: unable to connect to X server: connection refused
xinit: server error

I tried almost everything, update and upgrade all library/packages, but cannot find any solution. Google can found a report this is a bug 3 years back. But no record on this recently. Now I stuck here cannot do my work. Can anyone remind me any workaround to bypass this problem? Many thanks in advance.

My machine's uname output is:

Linux tanturi 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u1 x86_64 GNU/Linux
 
Old 05-26-2015, 09:34 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
So you should check and install zlib package.
 
Old 05-26-2015, 08:44 PM   #3
Westeros
LQ Newbie
 
Registered: Mar 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks for reply, veerain.

I did check the zlib, the libz.so.1 exists in /usr/local/lib linked to libz.so.1.2.5 at the same directory.

use dpkg -l, I got:
Quote:
# dpkg -l |grep zlib
ii zlib1g:amd64 1:1.2.7.dfsg-13 amd64 compression library - runtime
rc zlib1g:i386 1:1.2.7.dfsg-13 i386 compression library - runtime
ii zlib1g-dev:amd64 1:1.2.7.dfsg-13 amd64 compression library - development
 
Old 05-26-2015, 10:39 PM   #4
Westeros
LQ Newbie
 
Registered: Mar 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
The issue is temporary resolved, thanks for everyone. I will describe the resolution here and hope someone can tell me if there is any potential problems.

After last post I realized the latest version of zlib is 1.2.7 which is already in my system. And the library /usr/local/lib/libz.so.1.2.5 is out of date and should not be used. I don't know since when it is put there and the system dependency is changed to depends on this library, probably due to some software installation I done in the past few weeks.

I do a search to the whole file system and find this /lib/x86_64-linux-gnu/libz.so.1.2.7 existed. I guess this should be the correct library. Thus I let the /usr/local/lib/libz.so.1 links to this correct library. And now the it seems fine, at least X is up, not sure about others software yet.

I guess maybe next time the zlib upgrade might bring up some troubles again, besides that, can anyone tell me any other potential problems? Or how to correct this problem in a better way?

Thanks in advance.
 
Old 05-26-2015, 11:18 PM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Do you have path set for '/lib/x86_64-linux-gnu' in '/etc/ld.so.conf' file and have run ldconfig.
 
Old 05-27-2015, 01:15 AM   #6
Westeros
LQ Newbie
 
Registered: Mar 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
The /etc/ld.so.conf contains one line:
Quote:
include /etc/ld.so.conf.d/*.conf
and /etc/ld.so.conf.d has 4 .conf files, they are:
Quote:
::::::::::::::
i486-linux-gnu.conf
::::::::::::::
# Multiarch support
/lib/i386-linux-gnu
/usr/lib/i386-linux-gnu
/lib/i486-linux-gnu
/usr/lib/i486-linux-gnu

::::::::::::::
libc.conf
::::::::::::::
# libc default configuration
/usr/local/lib

::::::::::::::
x86_64-linux-gnu.conf
::::::::::::::
# Multiarch support
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu

::::::::::::::
zz_i386-biarch-compat.conf
::::::::::::::
# Legacy biarch compatibility support
/lib32
/usr/lib32
 
Old 05-27-2015, 03:47 AM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
May you try renaming/removing this file '/usr/local/lib/libz.so.1.2.5' and see whether it works. It may be that this file+path has been hard set in the required executables.
 
Old 05-28-2015, 08:24 PM   #8
Westeros
LQ Newbie
 
Registered: Mar 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
I renamed '/usr/local/lib/libz.so.1.2.5' to '/usr/local/lib/libz.so.1.2.5.bak', so far so good. It seems should be ok. Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI problem, GRUB2 problem, blank screen problem, :( JackDinn Linux - Newbie 22 05-26-2015 01:57 PM
Do I have a path problem, an Apache2 problem or a Javascript problem or any other pro rblampain Linux - Networking 0 12-29-2010 03:50 AM
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 06:10 AM
Lan configuration problem - NFS boot problem - RX&TX packets errors 242VDM242 Linux - Networking 4 11-25-2004 01:35 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration