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.
Created attachment 126968 [details] test script Could you pelase check this script? It's used in squid %pre section (run it as root)
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 ~]#
Do you have the squid user (e.g. any entry for squid in /etc/passwd)?
No... [root@totally ~]# grep squid /etc/passwd [root@totally ~]# grep squid /etc/group squid:x:23: [root@totally ~]#
It's the problem, remove this line from /etc/group and check update again.
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.
I'll fix it in rawhide...