$ foomatic-rip -v --ppd ppd-with-pdf-support.ppd dummy.pdf
...
Filetype: PDF
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
Process is dying with "Unable to determine number of pages, page count: -1
", exit stat 3
...
Test 2) Checking before updating ghostscript with test package (thus cups-filters too)
Checking update of cups-filters with apt-get and apt:
$ sudo apt-get install --dry-run ghostscript
...
The following packages will be upgraded:
cups-filters cups-filters-core-drivers ghostscript libgs9 libgs9-common
...
Inst cups-filters [1.8.3-2ubuntu3.4] (1.8.3-2ubuntu3.5 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Inst ghostscript [9.26~dfsg+0-0ubuntu0.16.04.11] (9.26~dfsg+0-0ubuntu0.16.04.11+test20191510b1 mfo-sf246942:16.04/xenial [amd64]) []
...
$ sudo apt install --dry-run ghostscript
...
The following packages will be upgraded:
cups-filters cups-filters-core-drivers ghostscript libgs9 libgs9-common
...
Inst cups-filters [1.8.3-2ubuntu3.4] (1.8.3-2ubuntu3.5 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
Inst ghostscript [9.26~dfsg+0-0ubuntu0.16.04.11] (9.26~dfsg+0-0ubuntu0.16.04.11+test20191510b1 mfo-sf246942:16.04/xenial [amd64]) []
...
Test 3) After updating ghostscript with test package (thus cups-filters too)
Testing on Xenial
---
Files)
$ wget -O ppd-with- pdf-support. ppd 'http:// www.openprintin g.org/ppd- o-matic. php?driver= hl7x0&printer= Brother- HL-1020& show=1'
$ wget -O dummy.pdf https:/ /www.w3. org/WAI/ ER/tests/ xhtml/testfiles /resources/ pdf/dummy. pdf
Test 0) Before updating ghostscript or cups-filters 0-0ubuntu0. 16.04.8
$ dpkg -s cups-filters ghostscript | grep ^Version:
Version: 1.8.3-2ubuntu3.4
Version: 9.26~dfsg+
$ foomatic-rip -v --ppd ppd-with- pdf-support. ppd dummy.pdf
...
Filetype: PDF
File contains 1 pages
Starting renderer with command: <...>
...
Test 1) After updating ghostscript (not cups-filters)
$ dpkg -s cups-filters ghostscript | grep ^Version: 0-0ubuntu0. 16.04.11
Version: 1.8.3-2ubuntu3.4
Version: 9.26~dfsg+
$ foomatic-rip -v --ppd ppd-with- pdf-support. ppd dummy.pdf
...
Filetype: PDF
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
Process is dying with "Unable to determine number of pages, page count: -1
", exit stat 3
...
Test 2) Checking before updating ghostscript with test package (thus cups-filters too)
Checking update of cups-filters with apt-get and apt:
$ sudo apt-get install --dry-run ghostscript core-drivers ghostscript libgs9 libgs9-common 16.04/xenial- updates, Ubuntu: 16.04/xenial- security [amd64]) 0-0ubuntu0. 16.04.11] (9.26~dfsg+ 0-0ubuntu0. 16.04.11+ test20191510b1 mfo-sf246942: 16.04/xenial [amd64]) []
...
The following packages will be upgraded:
cups-filters cups-filters-
...
Inst cups-filters [1.8.3-2ubuntu3.4] (1.8.3-2ubuntu3.5 Ubuntu:
Inst ghostscript [9.26~dfsg+
...
$ sudo apt install --dry-run ghostscript core-drivers ghostscript libgs9 libgs9-common 16.04/xenial- updates, Ubuntu: 16.04/xenial- security [amd64]) 0-0ubuntu0. 16.04.11] (9.26~dfsg+ 0-0ubuntu0. 16.04.11+ test20191510b1 mfo-sf246942: 16.04/xenial [amd64]) []
...
The following packages will be upgraded:
cups-filters cups-filters-
...
Inst cups-filters [1.8.3-2ubuntu3.4] (1.8.3-2ubuntu3.5 Ubuntu:
Inst ghostscript [9.26~dfsg+
...
Test 3) After updating ghostscript with test package (thus cups-filters too)
$ dpkg -s cups-filters ghostscript | grep ^Version: 0-0ubuntu0. 16.04.11+ test20191510b1
Version: 1.8.3-2ubuntu3.5
Version: 9.26~dfsg+
$ foomatic-rip -v --ppd ppd-with- pdf-support. ppd dummy.pdf
...
Filetype: PDF
File contains 1 pages
Starting renderer with command: <...>
...