我希望我在正确的地方提问。
我正在使用 Ubuntu 19.10。我下载并安装了最新版本的 CUPS 2.3.1。我按照 Zebra 打印机文档中的说明进行操作。他们提供了一份 pdf。
当我到达步骤“sudo /usr/sbin/cupsd”时,我收到一条错误消息,提示“/usr/sbin/cupsd:符号查找错误:未定义符号:_cupsMessageSave”。
我认为 CUPS 2.2.12 已经安装在这个 Ubuntu 上了。如果我尝试打开它,它会正常工作,但现在它也没有反应。
请帮忙。我需要我的 Zebra 打印机工作。我准备沮丧地扔掉东西。
答案1
杯子版本
您应该拥有cups-daemon
2.2.12 版本。
这是适用于 Ubuntu 19.01 的版本。
$ apt policy cups-daemon
cups-daemon:
Installed: 2.2.12-2ubuntu1
Candidate: 2.2.12-2ubuntu1
Version table:
*** 2.2.12-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu eoan/main amd64 Packages
100 /var/lib/dpkg/status
图书馆问题
您的系统上有重复的库。您有混合库。当您运行/usr/sbin/cupsd
可执行文件时,它试图使用不是为此可执行文件构建的库。
通过运行以下命令检查所cupsd
依赖的库:
$ ldd /usr/sbin/cupsd
linux-vdso.so.1 (0x00007fff2fbde000)
libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007fb2c090f000)
libpaper.so.1 => /usr/lib/x86_64-linux-gnu/libpaper.so.1 (0x00007fb2c0909000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fb2c08ba000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007fb2c0812000)
libavahi-common.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 (0x00007fb2c0804000)
libavahi-client.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 (0x00007fb2c07f1000)
libcups.so.2 => /usr/lib/x86_64-linux-gnu/libcups.so.2 (0x00007fb2c075e000)
libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007fb2c0711000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fb2c06ee000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb2c04fd000)
libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007fb2c04d1000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb2c04cb000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fb2c04be000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fb2c0497000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fb2c0477000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007fb2c0359000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb2c09c9000)
libgnutls.so.30 => /usr/lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007fb2c019a000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fb2c017e000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb2c002d000)
libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007fb2bff50000)
libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007fb2bff1f000)
libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007fb2bff18000)
libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007fb2bff09000)
libcap-ng.so.0 => /lib/x86_64-linux-gnu/libcap-ng.so.0 (0x00007fb2bff01000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007fb2bfedc000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007fb2bfda7000)
libidn2.so.0 => /usr/lib/x86_64-linux-gnu/libidn2.so.0 (0x00007fb2bfd86000)
libunistring.so.2 => /usr/lib/x86_64-linux-gnu/libunistring.so.2 (0x00007fb2bfc04000)
libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007fb2bfbee000)
libnettle.so.6 => /usr/lib/x86_64-linux-gnu/libnettle.so.6 (0x00007fb2bfbb6000)
libhogweed.so.4 => /usr/lib/x86_64-linux-gnu/libhogweed.so.4 (0x00007fb2bfb7c000)
libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007fb2bfafb000)
libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007fb2bfaf4000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fb2bfad9000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007fb2bfacf000)
检查(或共享)你的 的输出ldd /usr/sbin/cupsd
。也许你使用了相同的库名/usr/local/lib
,并且正在使用最后一个库名,而不是 中的默认库名/lib/x86_64-linux-gnu/
。
我认为你的问题的关键在于ldd /usr/sbin/cupsd
输出。
答案2
我可以删除 CUPS 2.3.1 版本吗?这会让事情变得更糟吗?我运行了代码。我不确定这一切意味着什么。我希望你能帮忙。这是我的输出:
sudo ldd /usr/sbin/cupsd
linux-vdso.so.1 (0x00007ffdc6bba000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f26f5fef000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f26f5fb5000)
libcups.so.2 => /lib/x86_64-linux-gnu/libcups.so.2 (0x00007f26f5f24000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f26f5d33000)
/lib64/ld-linux-x86-64.so.2 (0x00007f26f608c000)
libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f26f5ce6000)
libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f26f5b27000)
libavahi-common.so.3 => /lib/x86_64-linux-gnu/libavahi-common.so.3 (0x00007f26f5b17000)
libavahi-client.so.3 => /lib/x86_64-linux-gnu/libavahi-client.so.3 (0x00007f26f5b04000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f26f5ae8000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f26f5999000)
libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f26f58bc000)
libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f26f588b000)
libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f26f5882000)
libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f26f5873000)
libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f26f573e000)
libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f26f571d000)
libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f26f559b000)
libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f26f5585000)
libnettle.so.6 => /lib/x86_64-linux-gnu/libnettle.so.6 (0x00007f26f554b000)
libhogweed.so.4 => /lib/x86_64-linux-gnu/libhogweed.so.4 (0x00007f26f5513000)
libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f26f5492000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f26f5443000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f26f543d000)
libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f26f5436000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f26f5419000)
libffi.so.6 => /lib/x86_64-linux-gnu/libffi.so.6 (0x00007f26f540f000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f26f5367000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f26f535c000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f26f5335000)
liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f26f5313000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f26f51f5000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f26f51d2000)