$ 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:
$ sudo apt install --dry-run ghostscript
...
The following packages will be upgraded:
cups-filters ghostscript libgs9 libgs9-common
...
Inst cups-filters [1.20.2-0ubuntu3] (1.20.2-0ubuntu3.1 Ubuntu:18.04/bionic-updates, Ubuntu:18.04/bionic-security [amd64])
Inst ghostscript [9.26~dfsg+0-0ubuntu0.18.04.11] (9.26~dfsg+0-0ubuntu0.18.04.11+test20191510b1 mfo-sf246942:18.04/bionic [amd64]) []
...
Checking update of cups-filters with apt-get:
$ sudo apt-get install --dry-run ghostscript
...
The following packages will be upgraded:
cups-filters ghostscript libgs9 libgs9-common
...
Inst cups-filters [1.20.2-0ubuntu3] (1.20.2-0ubuntu3.1 Ubuntu:18.04/bionic-updates, Ubuntu:18.04/bionic-security [amd64])
Inst ghostscript [9.26~dfsg+0-0ubuntu0.18.04.11] (9.26~dfsg+0-0ubuntu0.18.04.11+test20191510b1 mfo-sf246942:18.04/bionic [amd64]) []
...
Test 3) After updating ghostscript with test package (thus cups-filters too)
Testing on Bionic
---
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
$ dpkg -s cups-filters ghostscript | grep ^Version: 0-0ubuntu0. 18.04.8
Version: 1.20.2-0ubuntu3
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. 18.04.11
Version: 1.20.2-0ubuntu3
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:
$ sudo apt install --dry-run ghostscript 18.04/bionic- updates, Ubuntu: 18.04/bionic- security [amd64]) 0-0ubuntu0. 18.04.11] (9.26~dfsg+ 0-0ubuntu0. 18.04.11+ test20191510b1 mfo-sf246942: 18.04/bionic [amd64]) []
...
The following packages will be upgraded:
cups-filters ghostscript libgs9 libgs9-common
...
Inst cups-filters [1.20.2-0ubuntu3] (1.20.2-0ubuntu3.1 Ubuntu:
Inst ghostscript [9.26~dfsg+
...
Checking update of cups-filters with apt-get:
$ sudo apt-get install --dry-run ghostscript 18.04/bionic- updates, Ubuntu: 18.04/bionic- security [amd64]) 0-0ubuntu0. 18.04.11] (9.26~dfsg+ 0-0ubuntu0. 18.04.11+ test20191510b1 mfo-sf246942: 18.04/bionic [amd64]) []
...
The following packages will be upgraded:
cups-filters ghostscript libgs9 libgs9-common
...
Inst cups-filters [1.20.2-0ubuntu3] (1.20.2-0ubuntu3.1 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. 18.04.11+ test20191510b1
Version: 1.20.2-0ubuntu3.1
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: <...>
...