Bug#991517: cups: CUPS cant access library files because they have different names

2021-07-26 Thread Didier 'OdyX' Raboud
Control: tags -1 +moreinfo

26 juillet 2021 12:36 "Anthony Gaudino"  a écrit:
> Package: cups
> Version: 2.3.3op2-3+deb11u1
> Severity: important
> X-Debbugs-Cc: anthonygaudin...@gmail.com
> 
> Dear Maintainer,
> 
> When I try to print anything with CUPS I had the following 2 errors on
> the CUPS log:
> 
> ```
> E [23/Jul/2021:17:37:03 +0100] [Job 27] libcups.so load failure
> E [23/Jul/2021:17:37:03 +0100] [Job 27] Unable to open raster stream - : 
> Broken pipe
> ```
> 
> The printer would not print anything.
> 
> After investigating, I found out that CUPS is trying to access
> `/usr/lib/x86_64-linux-gnu/libcups.so` and 
> `/usr/lib/x86_64-linux-gnu/libcupsimage.so`
> but Debian has these files named as `libcups.so.2` and
> `libcupsimage.so.2` instead.

Hello Anthony, and thanks for your report.

It seems you're trying to use a proprietary driver looking for the libcups.so 
filename. What driver are you trying to use?

> I solved the problem for myself by just copying those files and saving
> with the names CUPS was looking for.

.so files are not meant to be files, but symlinks, and these are shipped by 
libcups2-dev.

Isn't your issue solved by merely installing libcups2-dev ?

Best,

Didier


> -- System Information:
> Debian Release: 11.0
> APT prefers stable-updates
> APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'stable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 5.10.0-8-amd64 (SMP w/16 CPU threads)
> Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_OOT_MODULE, 
> TAINT_UNSIGNED_MODULE
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
> LANGUAGE=en_US:en
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages cups depends on:
> ii cups-client 2.3.3op2-3+deb11u1
> ii cups-common 2.3.3op2-3+deb11u1
> ii cups-core-drivers 2.3.3op2-3+deb11u1
> ii cups-daemon 2.3.3op2-3+deb11u1
> ii cups-filters 1.28.7-1
> ii cups-ppdc 2.3.3op2-3+deb11u1
> ii cups-server-common 2.3.3op2-3+deb11u1
> ii debconf [debconf-2.0] 1.5.77
> ii ghostscript 9.53.3~dfsg-7
> ii libavahi-client3 0.8-5
> ii libavahi-common3 0.8-5
> ii libc6 2.31-13
> ii libcups2 2.3.3op2-3+deb11u1
> ii libgcc-s1 10.2.1-6
> ii libstdc++6 10.2.1-6
> ii libusb-1.0-0 2:1.0.24-3
> ii poppler-utils 20.09.0-3.1
> ii procps 2:3.3.17-5
> 
> Versions of packages cups recommends:
> ii avahi-daemon 0.8-5
> ii colord 1.4.5-3
> 
> Versions of packages cups suggests:
> pn cups-bsd 
> pn cups-pdf 
> pn foomatic-db-compressed-ppds | foomatic-db 
> pn smbclient 
> ii udev 247.3-6
> 
> -- debconf information:
> cupsys/raw-print: true
> cupsys/backend: lpd, socket, usb, snmp, dnssd



Bug#991517: cups: CUPS cant access library files because they have different names

2021-07-26 Thread Anthony Gaudino
Package: cups
Version: 2.3.3op2-3+deb11u1
Severity: important
X-Debbugs-Cc: anthonygaudin...@gmail.com

Dear Maintainer,

When I try to print anything with CUPS I had the following 2 errors on
the CUPS log:

```
E [23/Jul/2021:17:37:03 +0100] [Job 27] libcups.so load failure
E [23/Jul/2021:17:37:03 +0100] [Job 27] Unable to open raster stream - : Broken 
pipe
```

The printer would not print anything.

After investigating, I found out that CUPS is trying to access
`/usr/lib/x86_64-linux-gnu/libcups.so` and 
`/usr/lib/x86_64-linux-gnu/libcupsimage.so`
but Debian has these files named as `libcups.so.2` and
`libcupsimage.so.2` instead.

I solved the problem for myself by just copying those files and saving
with the names CUPS was looking for.


-- System Information:
Debian Release: 11.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/16 CPU threads)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cups depends on:
ii  cups-client2.3.3op2-3+deb11u1
ii  cups-common2.3.3op2-3+deb11u1
ii  cups-core-drivers  2.3.3op2-3+deb11u1
ii  cups-daemon2.3.3op2-3+deb11u1
ii  cups-filters   1.28.7-1
ii  cups-ppdc  2.3.3op2-3+deb11u1
ii  cups-server-common 2.3.3op2-3+deb11u1
ii  debconf [debconf-2.0]  1.5.77
ii  ghostscript9.53.3~dfsg-7
ii  libavahi-client3   0.8-5
ii  libavahi-common3   0.8-5
ii  libc6  2.31-13
ii  libcups2   2.3.3op2-3+deb11u1
ii  libgcc-s1  10.2.1-6
ii  libstdc++6 10.2.1-6
ii  libusb-1.0-0   2:1.0.24-3
ii  poppler-utils  20.09.0-3.1
ii  procps 2:3.3.17-5

Versions of packages cups recommends:
ii  avahi-daemon  0.8-5
ii  colord1.4.5-3

Versions of packages cups suggests:
pn  cups-bsd   
pn  cups-pdf   
pn  foomatic-db-compressed-ppds | foomatic-db  
pn  smbclient  
ii  udev   247.3-6

-- debconf information:
  cupsys/raw-print: true
  cupsys/backend: lpd, socket, usb, snmp, dnssd