Bug 577838 - error: %post (packages.i386) scriptlet failed
Summary: error: %post (packages.i386) scriptlet failed
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum
Version: 5.5
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 581474
TreeView+ depends on / blocked
 
Reported: 2010-03-29 12:35 UTC by Petr Sklenar
Modified: 2014-01-21 06:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-29 17:32:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2010-03-29 12:35:46 UTC
Description of problem:
There are some biarch packages in standard rhel-ia64-server-5 channel. If I install some 32 arch packages on ia64 then there is post script error. 

Version-Release number of selected component (if applicable):
rhel55 content from rhn.webqa

I kickstarted ia64 from satellite, this satellite has rhel55 content from rhn.webqa today synced. (dell-pe700-01.rhts.eng.bos.redhat.com synced 2010-03-29)


How reproducible:
always on ia64

Steps to Reproduce:
1.
[root@test01-ia64 ~]# rpm -q --queryformat "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" libgcc
libgcc-4.1.2-48.el5.ia64

2.
[root@test01-ia64 ~]# yum install libgcc
Loaded plugins: rhnplugin, security
rhel-ia64-server-5                                                                                                                                7226/7226
rhn-tools-rhel-ia64-server-5                                                                                                                        423/423
Setting up Install Process
Package libgcc-4.1.2-48.el5.ia64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libgcc.i386 0:4.1.2-48.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================
 Package                          Arch                           Version                                 Repository                                    Size
============================================================================================================================================================
Installing:
 libgcc                           i386                           4.1.2-48.el5                            rhel-ia64-server-5                            95 k

Transaction Summary
============================================================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 95 k
Is this ok [y/N]: y
Downloading Packages:
libgcc-4.1.2-48.el5.i386.rpm                                                                                                         |  95 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : libgcc                                                                                                                               1/1 
error: %post(libgcc-4.1.2-48.el5.i386) scriptlet failed, exit status 255

Installed:
  libgcc.i386 0:4.1.2-48.el5                                                                                                                                

Complete!
[root@test01-ia64 ~]# rpm -q --queryformat "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" libgcc
libgcc-4.1.2-48.el5.ia64
libgcc-4.1.2-48.el5.i386

  
Actual results:
error: %post(libgcc-4.1.2-48.el5.i386) scriptlet failed

Expected results:
no post scripts error

Additional info:
it happens for many other packages like gdb glibc readline etc:

....
(6/7): glibc-2.5-49.i686.rpm                                                                                                         | 5.2 MB     00:01     
(7/7): valgrind-3.5.0-1.el5.i386.rpm                                                                                                 |  20 MB     00:08     
------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                       1.4 MB/s |  29 MB     00:20     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : glibc                                                                                                                                1/7 
error: %post(glibc-2.5-49.i686) scriptlet failed, exit status 255
  Installing     : zlib                                                                                                                                 2/7 
  Installing     : ncurses                                                                                                                              3/7 
  Installing     : readline                                                                                                                             4/7 
error: %post(readline-5.1-3.el5.i386) scriptlet failed, exit status 255
  Installing     : expat                                                                                                                                5/7 
  Installing     : valgrind                                                                                                                             6/7 
  Installing     : gdb                                                                                                                                  7/7 
error: %post(gdb-7.0.1-23.el5.i386) scriptlet failed, exit status 255

Installed:
  gdb.i386 0:7.0.1-23.el5                                                    valgrind.i386 1:3.5.0-1.el5                                                   

Dependency Installed:
  expat.i386 0:1.95.8-8.3.el5_4.2      glibc.i686 0:2.5-49      ncurses.i386 0:5.5-24.20060715      readline.i386 0:5.1-3.el5      zlib.i386 0:1.2.3-3     

Complete!

Comment 1 Alexander Todorov 2010-03-29 12:55:35 UTC
Petr,
is ia32el installed and running?

Comment 2 Petr Sklenar 2010-03-29 13:44:47 UTC
no, ia32el is not installed because it wasn't in standard/default channel.

So its expected to have these errors without ia32el, right?

Comment 3 Alexander Todorov 2010-03-29 13:55:04 UTC
Yes, see https://bugzilla.redhat.com/show_bug.cgi?id=237668#c10

*** This bug has been marked as a duplicate of bug 237668 ***

Comment 4 Jan Hutař 2010-03-29 15:18:35 UTC
Hello,
maybe I'm wrong, but would like to get a comment from yum-crew. If they thinks that this is really a dupe of bug 237668, then sorry and please close this.

IMO yum should not try to install package.i386 when package.ia64 is already installed.

Thanks in advance,
Jan

Comment 5 seth vidal 2010-03-29 15:33:32 UTC
it sure looks like 237668 - ix86 was supposed to be something that could run on ia64 - so yum's arch list shows it as a possible thing to add there.

What makes you think this is NOT like 237668?

Comment 6 James Antill 2010-03-29 17:32:30 UTC
Two things are worth of note here:

1. On RHEL-5 yum is specifically patched so that ia64 is multilib. aware.

2. On RHEL-5 yum is specificlaly patched so that multilib_policy=all is the default (because that's how RHEL-5.0 shipped). This means that "install blah" means install all arches of blah, if the users changes to multilib_policy=best ... it'll do what they want.

Comment 7 Jan Hutař 2010-03-30 07:00:33 UTC
Thank you for the explanation. That explains it perfectly.

Thanks you,
Jan


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