DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.