Bug 26770 - Updates of cups 2.2.13-1.2.mga7 breaks HP DeskJet 2600 PPD
Summary: Updates of cups 2.2.13-1.2.mga7 breaks HP DeskJet 2600 PPD
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-06-11 16:19 CEST by marc fanjoux
Modified: 2020-06-19 21:30 CEST (History)
6 users (show)

See Also:
Source RPM: cups-2.2.13-1.2.mga7.src.rpm
CVE:
Status comment:


Attachments

Description marc fanjoux 2020-06-11 16:19:15 CEST
Well, I think the cup update is out...
first pc M7  printer hp 2600...
I'm printing a test OK.
Updates of cups 2.2.13-1.2.mga7
cups is getting up to date!
I print a test and bam:

DeskJet_2600-175 Inconnu Caché 13k Inconnu arrêté
"Failed to open PPD: /etc/cups/ppd/DeskJet_2600.ppd"

ccm :
the PPD file is damaged

2nd pc M7 same printer...
I'm printing a test OK.
Updates
cups is getting up to date!
I print a test and bam:

DeskJet_2600-175 Inconnu Caché 13k Inconnu arrêté
"Failed to open PPD: /etc/cups/ppd/DeskJet_2600.ppd"

ccm :
the PPD file is damaged
 Cups Version : 2.2.13-1.2.mga7
Comment 1 marc fanjoux 2020-06-11 19:07:43 CEST
update list:

uin 11 05:33:16 localhost [RPM][26180]: erase cups-2.2.11-2.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: erase msec-gui-2.7-1.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: erase cups-filesystem-2.2.11-2.mga7.noarch: success
juin 11 05:33:16 localhost [RPM][26180]: erase cups-common-2.2.11-2.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: erase lib64cups2-2.2.11-2.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: erase msec-2.7-1.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: erase lib64archive13-3.4.0-1.1.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: erase sudo-1:1.8.28-1.1.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: erase lib64jbig2dec0-0.18-1.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: erase xfsprogs-5.4.0-1.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: erase wpa_supplicant-2.9-1.1.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: install lib64cups2-2.2.13-1.2.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: install cups-common-2.2.13-1.2.mga7.x86_64: success
juin 11 05:33:16 localhost [RPM][26180]: install cups-filesystem-2.2.13-1.2.mga7.noarch: success
juin 11 05:33:17 localhost [RPM][26180]: install msec-2.8-1.mga7.x86_64: success
juin 11 05:33:17 localhost [RPM][26180]: install msec-gui-2.8-1.mga7.x86_64: success
juin 11 05:33:17 localhost [RPM][26180]: install cups-2.2.13-1.2.mga7.x86_64: success
juin 11 05:33:18 localhost [RPM][26180]: install lib64archive13-3.4.3-1.mga7.x86_64: success
juin 11 05:33:18 localhost [RPM][26180]: install sudo-1:1.8.31p1-1.1.mga7.x86_64: success
juin 11 05:33:18 localhost [RPM][26180]: install lib64jbig2dec0-0.18-1.1.mga7.x86_64: success
juin 11 05:33:18 localhost [RPM][26180]: install xfsprogs-5.6.0-1.mga7.x86_64: success
juin 11 05:33:18 localhost [RPM][26180]: install wpa_supplicant-2.9-1.2.mga7.x86_64: success
juin 11 05:33:18 localhost [RPM][26180]: erase cups-2.2.11-2.mga7.x86_64: success
juin 11 05:33:18 localhost [RPM][26180]: erase msec-gui-2.7-1.mga7.x86_64: success
juin 11 05:33:18 localhost [RPM][26180]: erase cups-filesystem-2.2.11-2.mga7.noarch: success
juin 11 05:33:19 localhost [RPM][26180]: erase cups-common-2.2.11-2.mga7.x86_64: success
juin 11 05:33:19 localhost [RPM][26180]: erase lib64cups2-2.2.11-2.mga7.x86_64: success
juin 11 05:33:19 localhost [RPM][26180]: erase msec-2.7-1.mga7.x86_64: success
juin 11 05:33:19 localhost [RPM][26180]: erase lib64archive13-3.4.0-1.1.mga7.x86_64: success
juin 11 05:33:19 localhost [RPM][26180]: erase sudo-1:1.8.28-1.1.mga7.x86_64: success
juin 11 05:33:19 localhost [RPM][26180]: erase lib64jbig2dec0-0.18-1.mga7.x86_64: success
juin 11 05:33:19 localhost [RPM][26180]: erase xfsprogs-5.4.0-1.mga7.x86_64: success
juin 11 05:33:19 localhost [RPM][26180]: erase wpa_supplicant-2.9-1.1.mga7.x86_64: success
juin 11 05:33:20 localhost [RPM][26180]: install lib64cups2-2.2.13-1.2.mga7.x86_64: success
juin 11 05:33:20 localhost [RPM][26180]: install cups-common-2.2.13-1.2.mga7.x86_64: success
juin 11 05:33:20 localhost [RPM][26180]: install cups-filesystem-2.2.13-1.2.mga7.noarch: success
juin 11 05:33:20 localhost [RPM][26180]: install msec-2.8-1.mga7.x86_64: success
juin 11 05:33:20 localhost [RPM][26180]: install msec-gui-2.8-1.mga7.x86_64: success
juin 11 05:33:20 localhost [RPM][26180]: install cups-2.2.13-1.2.mga7.x86_64: success
juin 11 05:33:20 localhost [RPM][26180]: install lib64archive13-3.4.3-1.mga7.x86_64: success
juin 11 05:33:20 localhost [RPM][26180]: install sudo-1:1.8.31p1-1.1.mga7.x86_64: success
juin 11 05:33:20 localhost [RPM][26180]: install lib64jbig2dec0-0.18-1.1.mga7.x86_64: success
juin 11 05:33:20 localhost [RPM][26180]: install xfsprogs-5.6.0-1.mga7.x86_64: success
juin 11 05:33:20 localhost [RPM][26180]: install wpa_supplicant-2.9-1.2.mga7.x86_64: success
juin 11 05:33:20 localhost [RPM][26180]: Transaction ID 5ee1a5fb finished: 0
juin 11 05:33:25 localhost perl[26180]: opening the RPM database
juin 11 05:33:27 localhost perl[26180]: opening the RPM database
juin 11 05:33:43 localhost perl[26180]: opening the RPM database
juin 11 05:33:43 localhost perl[26180]: opening the RPM database
juin 11 05:33:48 localhost mgaapplet-update-checker[9803]: running: urpmi.update --update
juin 11 05:33:48 localhost pkexec[10142]: marco: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/urpmi.update --update]
juin 11 05:39:57 localhost mgaapplet-update-checker[1138]: running: urpmi.update --update
juin 11 05:39:57 localhost pkexec[1140]: marco: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/urpmi.update --update]
juin 11 05:40:17 localhost drakrpm-update[1167]: opening the RPM database
juin 11 05:40:18 localhost drakrpm-update[1167]: opening the RPM database
juin 11 05:40:28 localhost [RPM][1167]: Transaction ID 5ee1a7ab started
juin 11 05:40:28 localhost [RPM][1167]: erase perl-doc-2:5.28.2-2.mga7.noarch: success
juin 11 05:40:28 localhost [RPM][1167]: erase perl-2:5.28.2-2.mga7.x86_64: success
juin 11 05:40:28 localhost [RPM][1167]: erase perl-base-2:5.28.2-2.mga7.x86_64: success
juin 11 05:40:29 localhost [RPM][1167]: install perl-base-2:5.28.3-2.mga7.x86_64: success
juin 11 05:40:32 localhost [RPM][1167]: install perl-2:5.28.3-2.mga7.x86_64: success
juin 11 05:40:32 localhost [RPM][1167]: install perl-doc-2:5.28.3-2.mga7.noarch: success
juin 11 05:40:32 localhost [RPM][1167]: erase perl-doc-2:5.28.2-2.mga7.noarch: success
juin 11 05:40:32 localhost [RPM][1167]: erase perl-2:5.28.2-2.mga7.x86_64: success
juin 11 05:40:32 localhost [RPM][1167]: erase perl-base-2:5.28.2-2.mga7.x86_64: success
juin 11 05:40:32 localhost [RPM][1167]: install perl-base-2:5.28.3-2.mga7.x86_64: success
juin 11 05:40:32 localhost [RPM][1167]: install perl-2:5.28.3-2.mga7.x86_64: success
juin 11 05:40:32 localhost [RPM][1167]: install perl-doc-2:5.28.3-2.mga7.noarch: success
juin 11 05:40:32 localhost [RPM][1167]: Transaction ID 5ee1a7ab finished: 0
juin 11 05:40:36 localhost drakrpm-update[1167]: opening the RPM database
juin 11 05:40:37 localhost drakrpm-update[1167]: opening the RPM database
juin 11 05:40:45 localhost [RPM][1167]: Transaction ID 5ee1a7bd started
juin 11 05:40:45 localhost [RPM][1167]: erase lib64nghttp2_14-1.38.0-1.2.mga7.x86_64: success
juin 11 05:40:45 localhost [RPM][1167]: install lib64nghttp2_14-1.41.0-1.mga7.x86_64: success
juin 11 05:40:45 localhost [RPM][1167]: erase lib64nghttp2_14-1.38.0-1.2.mga7.x86_64: success
juin 11 05:40:45 localhost [RPM][1167]: install lib64nghttp2_14-1.41.0-1.mga7.x86_64: success
Comment 2 Lewis Smith 2020-06-11 19:48:36 CEST
Thank you for the report and package update evidence.
Since you did this on two different systems, that should preclude a corrupt update.
You can get back to working with:
 # urpmi --downgrade cups

Assigning to NicolasL as the apparent Mageia 7 Cups maintainer.

Summary: Updates of cups 2.2.13-1.2.mga7 => Updates of cups 2.2.13-1.2.mga7 breaks HP DeskJet 2600 PPD
Source RPM: (none) => cups-2.2.13-1.2.mga7.src.rpm
Assignee: bugsquad => mageia

Comment 3 marc fanjoux 2020-06-11 19:55:28 CEST
# urpmi --downgrade cups
Afin de poursuivre la mise à jour, le paquetage suivant doit être désinstallé :
cups-2.2.13-1.2.mga7.x86_64
 (pour installer le paquetage cups-2.2.13-1.2.mga7.x86_64) (o/N)

but :

# urpmi --downgrade cups-2.2.11-2.mga7
Afin de poursuivre la mise à jour, les paquetages suivants doivent être désinstallés :
cups-2.2.13-1.2.mga7.x86_64
 (pour installer le paquetage cups-2.2.11-2.mga7.x86_64)
cups-filesystem-2.2.13-1.2.mga7.noarch
 (pour installer le paquetage cups-filesystem-2.2.11-2.mga7.noarch) (o/N) o
Pour satisfaire les dépendances, les paquetages suivants vont être installés :
  Paquetage                      Version      Révision      Arch    
(média « Core Release »)
  cups                           2.2.11       2.mga7        x86_64  
  cups-filesystem                2.2.11       2.mga7        noarch  
un espace de 3.1Ko sera libéré.
6.5Mo de paquets seront récupérés.
Procéder à l'installation des 2 paquetages ? (O/n) o

and now :
[root@localhost ~]# hp-setup

HP Linux Imaging and Printing System (ver. 3.19.5)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Found device: hp:/net/DeskJet_2600_series?ip=192.168.1.124
error:  Printer queue setup failed.   Error : successful-ok-ignored-or-substituted-attributes

Done.
Comment 4 Nicolas Lécureuil 2020-06-11 22:21:13 CEST
what about "urpmf DeskJet_2600.ppd" ?
Comment 5 marc fanjoux 2020-06-12 06:28:40 CEST
 urpmf DeskJet_2600.ppd
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/core/updates/media_info/20200610-234607-files.xml.lzma
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/nonfree/release/media_info/20190628-001219-files.xml.lzma                                                                             
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/nonfree/updates/media_info/20200524-180209-files.xml.lzma                                                                             
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/tainted/release/media_info/20190628-001348-files.xml.lzma                                                                             
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/tainted/updates/media_info/20200515-154301-files.xml.lzma                                                                             
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/../../i586/media/core/updates/media_info/20200610-233950-files.xml.lzma                                                               
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/../../i586/media/nonfree/release/media_info/20190628-001215-files.xml.lzma                                                            
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/../../i586/media/nonfree/updates/media_info/20200524-180207-files.xml.lzma                                                            
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/../../i586/media/tainted/release/media_info/20190628-001342-files.xml.lzma                                                            
    http://mirrors.mageia.org/api/mageia.7.x86_64.list: media/../../i586/media/tainted/updates/media_info/20200515-154254-files.xml.lzma                                                            
[marco@localhost ~]$ sudo DeskJet_2600.ppd
Comment 6 marc fanjoux 2020-06-12 06:50:42 CEST
when i run # urpmi --downgrade cups-2.2.11-2.mga7
DeskJet_2600.ppd is not created in etc/cups/ppd
Comment 7 Dave Hodgins 2020-06-12 06:53:54 CEST
# urpmf ppd|grep -i deskjet|grep 2600|sort -u
hplip-hpijs-ppds:/usr/share/ppd/HP/hp-deskjet_2600_series.ppd.gz
hplip-hpijs-ppds:/usr/share/ppd/HP/hp-deskjet_d2600_series.ppd.gz
$ rpm -qa|grep hplip-hpijs-ppds
hplip-hpijs-ppds-3.19.5-1.mga7
$ ll /usr/share/ppd/HP/hp-deskjet_2600_series.ppd.gz
-rw-r--r-- 1 root root 3578 May 14  2019 /usr/share/ppd/HP/hp-deskjet_2600_series.ppd.gz

Is that the file that's needed?

Note that the file name has not changed.

CC: (none) => davidwhodgins

Comment 8 marc fanjoux 2020-06-12 08:00:59 CEST
# urpmf ppd|grep -i deskjet|grep 2600|sort -u
hplip-hpijs-ppds:/usr/share/ppd/HP/hp-deskjet_2600_series.ppd.gz
hplip-hpijs-ppds:/usr/share/ppd/HP/hp-deskjet_d2600_series.ppd.gz

$ rpm -qa|grep hplip-hpijs-ppds
hplip-hpijs-ppds-3.19.5-1.mga7

$ ll /usr/share/ppd/HP/hp-deskjet_2600_series.ppd.gz
-rw-r--r-- 1 root root 3578 mai   14  2019 /usr/share/ppd/HP/hp-deskjet_2600_series.ppd.gz


It should be called etc/cups/ppd/DeskJet_2600.ppd
Comment 9 Panos Christeas 2020-06-12 12:03:59 CEST
Early confirmation, same happens here, with an HP-3700-series printer. Will debug later today and update you.

CC: (none) => xrg

Comment 10 David Walser 2020-06-12 21:01:58 CEST
The contents of /etc/cups/ppd are not packaged files.  I believe they are created when you configure the printer (such as via system-config-printer or the CUPS web interface).  Try re-configuring the printer.
Comment 11 marc fanjoux 2020-06-13 07:34:55 CEST
I uninstalled hplip
I uninstalled cups
I restarted the computer.
I reinstalled cups
I reinstalled hplip
and it's the same
Comment 12 Morgan Leijström 2020-06-13 13:08:42 CEST
Were /etc/cups/ppd files deleted before you reinstalled packages?

CC: (none) => fri

Comment 13 Panos Christeas 2020-06-13 13:14:03 CEST
Traced it. It was caused by the strict handling of "Custom" options introduced in 2.2.12 (done for security reasons). 
https://github.com/apple/cups/issues/5639

Solution is to backport commit 2a06655e5c1925f09d5a2

A build is now in my repo:
https://repo.pefnos.com/Mageia/7/RPMS/x86_64/
Comment 14 marc fanjoux 2020-06-13 17:30:28 CEST
Hello.
I think cups file system is missing.

thank you

printers affected :
HP envy 5020
Deskjet 2600 serie
HP-3700-series

the same message:

error:  Printer queue setup failed.   Error : successful-ok-ignored-or-substituted-attributes
Comment 15 Nicolas Lécureuil 2020-06-13 20:01:00 CEST
i added it on our packages.

Please test new cups when it hits mirrors.
Comment 16 marc fanjoux 2020-06-14 06:55:20 CEST
everything's running smoothly on my two PC

Thank you !
Comment 17 marc fanjoux 2020-06-14 06:56:29 CEST
everything's running fine on my two PC

Thank you !
Comment 18 Nicolas Lécureuil 2020-06-14 14:36:51 CEST
i think we need to validate this update quickly then :)


marc confirmed this is fixed.

Can someone else too before validating ?
Comment 19 marc fanjoux 2020-06-14 15:26:32 CEST
I confirm on my 2 pc !
Comment 20 marc fanjoux 2020-06-14 15:27:28 CEST
Lenovo g70-70
cg intel 810 / ssd SanDisk 250Go
Mageia 7.1 plasma 64b

Packard Bell ls11hr
cg intel 810 / ssd SanDisk 128Go
Mageia 7.1 plasma 64b
Comment 21 marc fanjoux 2020-06-14 20:12:28 CEST
fixed !

Lenovo g70-70
cg intel 810 / ssd SanDisk 250Go
Mageia 7.1 plasma 64b
deskjet 2600 serie

Packard Bell ls11hr
cg intel 810 / ssd SanDisk 128Go
Mageia 7.1 plasma 64b
deskjet 2600 serie

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 22 Nicolas Lécureuil 2020-06-14 21:34:49 CEST
no, please do not close as long it is not in updates

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 23 marc fanjoux 2020-06-14 21:51:36 CEST
ok excuse me ...
Comment 24 Morgan Leijström 2020-06-14 23:40:06 CEST
Thank you all for the quick fixing and testing :)
Comment 25 Nicolas Lécureuil 2020-06-15 12:11:45 CEST
Advisory:

A regression in cups 2.2.13 made it impossible to understand some
ppd files.
This update fixes this.
Nicolas Lécureuil 2020-06-15 12:20:00 CEST

Keywords: (none) => advisory

Comment 26 James Kerr 2020-06-16 11:58:09 CEST
(In reply to Nicolas Lécureuil from comment #18)
> i think we need to validate this update quickly then :)
> 
> 
> marc confirmed this is fixed.
> 
> Can someone else too before validating ?

The bug should probably be assigned to QA. They will need a list of the updated rpm's to be tested.

CC: (none) => jim

Nicolas Lécureuil 2020-06-16 12:03:39 CEST

Assignee: mageia => qa-bugs

Comment 27 Thomas Andrews 2020-06-16 14:25:22 CEST
I do not own one of the known affected printers, but a test to see that other HP printers still work after this update is, of course, still valuable.

Using the list of rpms from http://madb.mageia.org/tools/listRpmsForQaBug/bugnum/26770/application/0 in QARepo, because there is no list in the bug itself as yet. 

The following 4 packages are going to be installed:

- cups-2.2.13-1.4.mga7.x86_64
- cups-common-2.2.13-1.4.mga7.x86_64
- cups-filesystem-2.2.13-1.4.mga7.noarch
- lib64cups2-2.2.13-1.4.mga7.x86_64

No installation issues. Tested on a Deskjet 5650 and a Laserjet CP1215. Both printers still work.

If that is sufficient, I would be fine with giving this an OK and validating it.

CC: (none) => andrewsfarm

Comment 28 James Kerr 2020-06-16 15:27:07 CEST
I did not experience the bug either. Perhaps the test by the bug reporter is enough.
Comment 29 marc fanjoux 2020-06-17 06:42:49 CEST
now it is ok with HP envy 5020
Comment 30 Thomas Andrews 2020-06-17 13:45:27 CEST
Time to send this one on. Validating.

CC: (none) => sysadmin-bugs
Keywords: (none) => validated_update
Whiteboard: (none) => MGA7-64-OK

Comment 31 Mageia Robot 2020-06-19 12:26:30 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0146.html

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 32 marc fanjoux 2020-06-19 21:30:52 CEST
update OK ... fine ! Thank you

Note You need to log in before you can comment on or make changes to this bug.