1. 错误提示:

Gtk-WARNING **: Error loading image 'file:///usr/share/themes/Ambiance/gtk-3.0/assets/button-toolbar-active-focused.png': Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: /tmp/_MEIMlBDDO/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16)

2. 解决方法

下载 zlib-1.2.9.tar.gz 官网http://www.zlib.net/fossils/ 到linux机器上,然后进入压缩包文件路径并执行以下命令:

(1)安装相关依赖环境

sudo  apt-get update

(2)解压编译zlib

tar -xvf zlib-1.2.9.tar.gz
cd zlib-1.2.9
sudo -s # 进入root用户

./configure

make install

(3)通过软连接将zlib连接到共享库路径:

eg: /tmp/_MEIMlBDDO/libz.so.1: version `ZLIB_1.2.9' not found

ln -s -f /usr/local/lib/libz.so.1.2.9   /tmp/_MEIMlBDDO/libz.so.1