Bug 62342
Summary: | no /usr/bin/lpr | ||
---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | ellson |
Component: | LPRng | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED RAWHIDE | QA Contact: | Brock Organ <borgan> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.0 | CC: | notting |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-04-02 16:41:44 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
ellson
2002-03-29 21:50:06 UTC
I did the same on my system. I am surprised this had not been reported from -1 to -2. Is there a reason for this name change? What version of chkconfig do you have installed? # chkconfig -v chkconfig version 1.3.4 (Why is run-level relevant?) Hm... was that version installed when you installed LPRng? Judging by the timestamps on the rpms they probably arrived from the Rawhide collection on the same day - Mar 18. Probably I installed them in alphabetic order - i.e. LPRng first. I just tried removing and reinstalling LPRng. I got: # rpm -e LPRng /usr/bin/lpr.LPRng has not been configured as an alternative for print error: execution of %preun scriptlet from LPRng-3.8.9-2 failed, exit status 2 I tried replacing LPRng: # rpm -Uvh --replacepkgs LPRng-3.8.9-2.i386.rpm Preparing... ########################################### [100%] 1:LPRng ########################################### [100%] the primary link for print must be /usr/bin/cancel error: execution of %post scriptlet from LPRng-3.8.9-2 failed, exit status 2 LPRng-3.8.9-2 has 'PreReq: /usr/sbin/alternatives'. Did you use --force when installing LPRng? No. Perhaps that suggests that chkconfig was in fact installed first. /usr/sbin/alternatives is there now, but attempts to remove and reinstall LPRng produce errors as above. It probably needs to prereq chkconfig 1.3.4-1 or greater, as the bugfixes that went in are fairly significant. What you should be able to do is to remove LPRng, remove /var/lib/alternatives/print, and then reinstall LPRng. rm /var/lib/alternatives/print rpm -e LPRng still didn't work because the %preun seems to expect a consistent state of the system. This is a bug IMHO. This worked OK: rm /var/lib/alternatives/print rpm -Uvh --replacepkgs LPRng-3.8.9-2.i386.rpm Now /usr/bin/lpr -> /etc/alternatives/print and /etc/alternatives/print -> /usr/bin/lpr.LPRng (a bit convoluted... but OK) Alternatively you could have used --noscripts. In 3.8.9-3 I'll put in a prereq for chkconfig >= 1.3.4-1. We'll put it down to chkconfig(alternatives) bugs in a version before that I guess. |