Bug 187217 - Squid update via yum is failing on FC4
Summary: Squid update via yum is failing on FC4
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: squid
Version: 4
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Martin Stransky
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-03-29 10:14 UTC by Phillip Jones
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-29 15:54:15 UTC
Type: ---
Embargoed:


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

Description Phillip Jones 2006-03-29 10:14:18 UTC
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 10:39:40 UTC
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 11:09:19 UTC
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 11:50:33 UTC
Do you have the squid user (e.g. any entry for squid in /etc/passwd)?

Comment 4 Phillip Jones 2006-03-29 11:54:43 UTC
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 12:00:58 UTC
It's the problem, remove this line from /etc/group and check update again.

Comment 6 Phillip Jones 2006-03-29 12:10:40 UTC
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 12:14:50 UTC
I'll fix it in rawhide...


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