Bug 2346160 - Problem updating alternatives when upgrading from 41 to 42
Summary: Problem updating alternatives when upgrading from 41 to 42
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-17 18:23 UTC by Villy Kruse
Modified: 2025-03-15 00:26 UTC (History)
2 users (show)

Fixed In Version: cups-2.4.11-13.fc43 cups-2.4.11-13.fc42
Clone Of:
Environment:
Last Closed: 2025-02-20 08:08:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Villy Kruse 2025-02-17 18:23:51 UTC
When updating the cups-client package from release 41 to release 42 there is a small problem with updateing the alternatives setting.  Specifically, the command lpc was moved from /usr/sbin/lpc to /usr/bin/lpc and the alternatives --install command can not handle this.  As a workaround you need to run

 /usr/sbin/alternatives --remove print /usr/bin/lpr.cups

and then you can upgrade or re-install cups-client.

To test you should be able to re-install cups-client after normal upgrade has completed, and the error should be visible.  In the normal update, the error would most likely be missed.

Reproducible: Always

Comment 1 Villy Kruse 2025-02-17 18:34:06 UTC
Result of upgrading cups-client before fixing it.


Total size of inbound packages is 73 KiB. Need to download 73 KiB.
After this operation, 0 B extra will be used (install 203 KiB, remove 203 KiB).
Is this ok [y/N]: y
[1/1] cups-client-1:2.4.11-10.fc42.x86_64                                          100% | 328.2 KiB/s |  73.2 KiB |  00m00s
---------------------------------------------------------------------------------------------------------------------------
[1/1] Total                                                                        100% | 147.3 KiB/s |  73.2 KiB |  00m00s
Running transaction
[1/4] Verify package files                                                         100% | 333.0   B/s |   1.0   B |  00m00s
[2/4] Prepare transaction                                                          100% |  10.0   B/s |   2.0   B |  00m00s
[3/4] Reinstalling cups-client-1:2.4.11-10.fc42.x86_64                             100% |   4.6 MiB/s | 207.4 KiB |  00m00s
>>> Running post-install scriptlet: cups-client-1:2.4.11-10.fc42.x86_64                                                    
>>> Finished post-install scriptlet: cups-client-1:2.4.11-10.fc42.x86_64                                                   
>>> Scriptlet output:                                                                                                      
>>> link /usr/bin/lpc incorrect for follower print-lpc (/usr/sbin/lpc print-lpc)                                           
>>>                                                                                                                        
[4/4] Removing cups-client-1:2.4.11-10.fc42.x86_64                                 100% | 133.0   B/s |  45.0   B |  00m00s
Complete!

Comment 2 Zdenek Dohnal 2025-02-19 08:52:13 UTC
Hi Villy!

Thank you for reporting the issue and for finding the workaround!

I have added %pre scriptlet for client subpackage to remove the lpc follower, which looks working as well - the PR is here https://src.fedoraproject.org/rpms/cups/pull-request/36 .

Do let me know if there is issue with the PR.

Thank you in advance!


Zdenek

Comment 3 Villy Kruse 2025-02-19 10:10:26 UTC
(In reply to Zdenek Dohnal from comment #2)


> 
> Do let me know if there is issue with the PR.
> 


Not as far as I can see.

Comment 4 Zdenek Dohnal 2025-02-19 12:35:37 UTC
Thank you, Villy!

Comment 5 Fedora Update System 2025-02-19 12:49:36 UTC
FEDORA-2025-fcde67aadc (cups-2.4.11-12.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-fcde67aadc

Comment 6 Fedora Update System 2025-02-19 13:02:04 UTC
FEDORA-2025-3aff2b6f50 (cups-2.4.11-12.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3aff2b6f50

Comment 7 Fedora Update System 2025-02-20 00:46:07 UTC
FEDORA-2025-3aff2b6f50 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-3aff2b6f50`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-3aff2b6f50

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2025-02-20 06:40:18 UTC
FEDORA-2025-343fa10617 (cups-2.4.11-13.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-343fa10617

Comment 9 Fedora Update System 2025-02-20 08:08:47 UTC
FEDORA-2025-343fa10617 (cups-2.4.11-13.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2025-02-21 02:58:05 UTC
FEDORA-2025-6b729d6cea has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-6b729d6cea`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-6b729d6cea

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2025-03-15 00:26:55 UTC
FEDORA-2025-6b729d6cea (cups-2.4.11-13.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


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