Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1354078 - Error in PREIN scriptlet in rpm package coreutils
Summary: Error in PREIN scriptlet in rpm package coreutils
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 24
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2016-07-09 08:06 UTC by Tomas Dabašinskas
Modified: 2016-07-11 15:35 UTC (History)
8 users (show)

Fixed In Version: coreutils-8.25-12.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2016-07-11 15:35:05 UTC

Attachments (Terms of Use)

Description Tomas Dabašinskas 2016-07-09 08:06:28 UTC
Hi, I'm running fedora live and am getting an error when trying to install coreutils: 

[root@localhost liveuser]# dnf --installroot=/tmp --releasever=24 install coreutils
Last metadata expiration check performed 0:02:08 ago on Sat Jul  9 03:58:19 2016.
Dependencies resolved.
 Package                             Arch                             Version                                  Repository                        Size
 coreutils                           x86_64                           8.25-5.fc24                              fedora                           1.1 M

Transaction Summary
Install  1 Package

Total download size: 1.1 M
Installed size: 5.3 M
Is this ok [y/N]: y
Downloading Packages:
coreutils-8.25-5.fc24.x86_64.rpm                                                                                      2.5 MB/s | 1.1 MB     00:00    
Total                                                                                                                 704 kB/s | 1.1 MB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
error: %prein(coreutils-8.25-5.fc24.x86_64) scriptlet failed, exit status 126
Error in PREIN scriptlet in rpm package coreutils
Error in PREIN scriptlet in rpm package coreutils
coreutils-8.25-5.fc24.x86_64 was supposed to be installed but is not!
  Verifying   : coreutils-8.25-5.fc24.x86_64                                                                                                      1/1 

  coreutils.x86_64 8.25-5.fc24                                                                                                                        


I'd appreciate if you could please tell me if there's a dnf flag to enable scritlet output to the shell, atm I'm only seeing status 126 (Command invoked cannot execute)

Comment 1 Tomas Dabašinskas 2016-07-09 09:27:40 UTC
disabled selinux, works fine now.

Comment 2 Kamil Dudka 2016-07-11 12:31:59 UTC
The %pre scriptlet is no longer necessary.  I forgot to remove it while removing the other shutils/textutils/fileutils migration code:

Removing the %pre scriptlet completely will make the installation smooth even with SELinux running in the enforcing mode.

Comment 3 Kamil Dudka 2016-07-11 15:35:05 UTC
fixed in coreutils-8.25-12.fc25

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