Bug 187217 - Squid update via yum is failing on FC4
Squid update via yum is failing on FC4
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: squid (Show other bugs)
4
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Martin Stransky
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-03-29 05:14 EST by Phillip Jones
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-03-29 10:54:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
test script (396 bytes, text/plain)
2006-03-29 05:39 EST, Martin Stransky
no flags Details

  None (edit)
Description Phillip Jones 2006-03-29 05:14:18 EST
Description of problem:

Trying to run yum update is failing with the following message:

[root@totally ~]# yum update
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package squid.i386 7:2.5.STABLE13-1.FC4 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 squid                   i386       7:2.5.STABLE13-1.FC4  updates-released  1.2 M

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       1 Package(s)
Remove       0 Package(s)
Total download size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
error: %pre(squid-2.5.STABLE13-1.FC4.i386) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping squid-2.5.STABLE13-1.FC4

Updated: squid.i386 7:2.5.STABLE13-1.FC4
Complete!
[root@totally ~]#


Version-Release number of selected component (if applicable):

FC4. squid.i386 7:2.5.STABLE13-1.FC4

How reproducible:

Every time

Steps to Reproduce:
1. Run "yum update"
2.
3.
  
Actual results:

Squid is not updated

Expected results:

Squid is updated

Additional info:

[root@totally ~]# yum list squid
Setting up repositories
Reading repository metadata in from local files
Installed Packages
squid.i386                               7:2.5.STABLE11-3.FC4   installed
Available Packages
squid.i386                               7:2.5.STABLE13-1.FC4   updates-released
[root@totally ~]#


Please let me know if you require any additional information. Cheers.
Comment 1 Martin Stransky 2006-03-29 05:39:40 EST
Created attachment 126968 [details]
test script

Could you pelase check this script? It's used in squid %pre section (run it as
root)
Comment 2 Phillip Jones 2006-03-29 06:09:19 EST
Ok, I think this is the problem:

[root@totally ~]# /usr/sbin/useradd -u 23 -d /var/spool/squid -r -s
/sbin/nologin squid
useradd: group squid exists - if you want to add this user to that group, use -g.
[root@totally ~]#
Comment 3 Martin Stransky 2006-03-29 06:50:33 EST
Do you have the squid user (e.g. any entry for squid in /etc/passwd)?
Comment 4 Phillip Jones 2006-03-29 06:54:43 EST
No...

[root@totally ~]# grep squid /etc/passwd
[root@totally ~]# grep squid /etc/group
squid:x:23:
[root@totally ~]#
Comment 5 Martin Stransky 2006-03-29 07:00:58 EST
It's the problem, remove this line from /etc/group and check update again.
Comment 6 Phillip Jones 2006-03-29 07:10:40 EST
The update works now.

Should I close the bug or will you guys modify the pre-script to execute useradd
with different switches if "squid" already exists in /etc/group ?

Thanks.
Comment 7 Martin Stransky 2006-03-29 07:14:50 EST
I'll fix it in rawhide...

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