Автор Тема: Evince and Atril fail PDF printing with "null print job total=0" while lp works  (Прочитано 115 раз)

Оффлайн Δημητριος

  • Участник
  • *
  • Сообщений: 332
Printing PDFs from Evince and Atril fails with error:

"Υπήρξε πρόβλημα κατά την επεξεργασία του αρχείου (job X)"

CUPS logs show:
"ERROR: null print job total=0"

System printing works correctly using command line:
- lp /path/to/file.pdf prints successfully without errors

CUPS status:
- printer is HP Deskjet 3520-series
- connection via USB using HPLIP backend
- cups-filters and ghostscript are installed and up to date
- printing system is otherwise fully functional

Issue appears only when printing from GTK-based applications (Evince and Atril).

Additionally, in the print dialog inside both Evince and Atril, there is an extra printer option shown that corresponds to an LPR connection. This LPR printer does not actually exist or is not configured in the system, and selecting it appears misleading as there is no real LPR backend configured.

The issue only appears when printing from GUI applications; command-line printing bypasses the problem completely.


Оффлайн yaleks

  • Мастер
  • ***
  • Сообщений: 6 551
"Υπήρξε πρόβλημα κατά την επεξεργασία του αρχείου (job X)" == "There was a problem processing the file (job X)"

Is printing from the web-browser (Firefox, Chromium, etc..) works?

Оффлайн Δημητριος

  • Участник
  • *
  • Сообщений: 332
"Υπήρξε πρόβλημα κατά την επεξεργασία του αρχείου (job X)" == "There was a problem processing the file (job X)"

Is printing from the web-browser (Firefox, Chromium, etc..) works?

yes  working 

*my distro is Simple Linux P11
« Последнее редактирование: 16.04.2026 16:38:18 от Δημητριος »

Оффлайн SerW

  • Участник
  • *
  • Сообщений: 248
    • Вперед, в Интернет!
Код: (bash) [Выделить]
# hp-setup -i
dragonserw.ru/wiki:basealt

Оффлайн Δημητριος

  • Участник
  • *
  • Сообщений: 332
# hp-setup -i

I did that but it didn't work, but I did the following and it worked.

sudo apt-get remove ghostscript-cups foomatic-filters
sudo apt-get remove ghostscript-cups foomatic-filters Reading Package Lists... Done Building Dependency Tree... Done Selecting cups-filters for 'ghostscript-cups' Selecting cups-filters for 'foomatic-filters' The following packages will be REMOVED: cups foo2zjs lz11-V2 printer-drivers-base cups-filters hplip printer-driver-ptouch system-config-printer cups-pdf hplip-hpcups printer-driver-splix 0 upgraded, 0 newly installed, 11 removed and 0 not upgraded. Need to get 0B of archives. After unpacking 53,8MB disk space will be freed. Do you want to continue? [Y/n] y Committing changes... Preparing... ################################# [100%] Cleaning up / removing... 1: printer-drivers-base-3.0-alt6 ################################# [ 9%] 2: foo2zjs-20200207-alt1 ################################# [ 18%] 3: hplip-1:3.25.8-alt3 ################################# [ 27%] 4: hplip-hpcups-1:3.25.8-alt3 ################################# [ 36%] 5: printer-driver-splix-2.0.1-alt3.svn3################################# [ 45%] 6: printer-driver-ptouch-1.7-alt1 ################################# [ 55%] 7: lz11-V2-1.2-alt1.qa2 ################################# [ 64%] 8: cups-pdf-3.0.1-alt2 ############################warning: file /etc/cups/cups-pdf.conf: remove failed: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος ##### [ 73%] 9: system-config-printer-1.5.18-alt3 ################################# [ 82%] 10: cups-2.4.16-alt2 ################################# [ 91%] warning: file /etc/cups/ssl: remove failed: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος warning: file /etc/cups/snmp.conf: remove failed: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος warning: /etc/cups/cupsd.conf saved as /etc/cups/cupsd.conf.rpmsave warning: file /etc/cups/cups-files.conf: remove failed: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος 11: cups-filters-2.0.1-alt1 ################################# [100%] Done.
sudo apt-get install cups cups-filters system-config-printer
$ sudo apt-get install cups cups-filters system-config-printer Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: cups cups-filters system-config-printer 0 upgraded, 3 newly installed, 0 removed and 0 not upgraded. Need to get 662kB/2224kB of archives. After unpacking 13,8MB of additional disk space will be used. Get:1 http://mirror.yandex.ru p11/branch/x86_64/classic system-config-printer 1.5.18-alt3:p11+356646.11000.27.1@1729418002 [662kB] Fetched 662kB in 3s (200kB/s) Committing changes... Preparing... ################################# [100%] Updating / installing... 1: cups-filters-2.0.1-alt1 ################################# [ 33%] 2: cups-2.4.16-alt2 ################################# [ 67%] 3: system-config-printer-1.5.18-alt3 ################################# [100%] Done. [hp@hp-PC ~]$ sudo apt-get install hplip hplip-hpcups Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: hplip hplip-hpcups 0 upgraded, 2 newly installed, 0 removed and 0 not upgraded. Need to get 0B/21,3MB of archives. After unpacking 30,9MB of additional disk space will be used. Committing changes... Preparing... ################################# [100%] Updating / installing... 1: hplip-hpcups-1:3.25.8-alt3 ################################# [ 50%] 2: hplip-1:3.25.8-alt3 ################################# [100%] Done.


Restore default config
sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf

Fix permissions
sudo chown root:lp /etc/cups/cupsd.conf
sudo chmod 644 /etc/cups/cupsd.conf

Start CUPS
sudo systemctl start cups
Check
systemctl status cups
as for the  LPR printer

ls /usr/lib*/gtk-3.0/*/printbackends/ libprintbackend-cups.so libprintbackend-file.so libprintbackend-lpr.so
libprintbackend-cups.so → normal printers
libprintbackend-file.so → “print to file

The file:

libprintbackend-lpr.so

is part of the GTK printing stack and adds an option:

 “Print to LPR/LPD server”

i delete libprintbackend-lpr.so

Цитировать
sudo rm /usr/lib*/gtk-3.0/*/printbackends/libprintbackend-lpr.so


and everything works for the time being :-)