Ask Your Question

[Known Issue] Scriptlet errors while installing/upgrading packages using yum/dnf/rpm

asked 2014-01-16 18:57:08 -0500

msmith81886 gravatar image

updated 2014-09-28 12:06:23 -0500

mether gravatar image

I have been having repeated issues on Fedora 20 installing Google Chrome. I keep getting Fatal PREIN script errors on the google-chrome and redhat-lsb rpms. I was wondering if anyone understands what these mean as my knowledge of yum is just not up to this level. I understand the potential for google chrome to have issues. I don't understand how redhat-lsb can have issues. I have attached my output below. Thanks for your help.

[ms6401@ms6401 Downloads]$ sudo yum install google-chrome-stable_current_x86_64.rpm 
Loaded plugins: langpacks, refresh-packagekit
Examining google-chrome-stable_current_x86_64.rpm: google-chrome-stable-32.0.1700.77-1.x86_64
Marking google-chrome-stable_current_x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:32.0.1700.77-1 will be installed
--> Processing Dependency: lsb >= 4.0 for package: google-chrome-stable-32.0.1700.77-1.x86_64
--> Processing Dependency: wget for package: google-chrome-stable-32.0.1700.77-1.x86_64
--> Processing Dependency: for package: google-chrome-stable-32.0.1700.77-1.x86_64
--> Running transaction check
---> Package libXScrnSaver.x86_64 0:1.2.2-6.fc20 will be installed
---> Package redhat-lsb.x86_64 0:4.1-21.fc20 will be installed
---> Package wget.x86_64 0:1.14-9.fc20 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package                  Arch       Version              Repository                                Size
 google-chrome-stable     x86_64     32.0.1700.77-1       /google-chrome-stable_current_x86_64     171 M
Installing for dependencies:
 libXScrnSaver            x86_64     1.2.2-6.fc20         fedora                              24 k
 redhat-lsb               x86_64     4.1-21.fc20          updates                             24 k
 wget                     x86_64     1.14-9.fc20          fedora                             543 k

Transaction Summary
Install  1 Package (+3 Dependent packages)

Total size: 172 M
Total download size: 591 k
Installed size: 173 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): libXScrnSaver-1.2.2-6.fc20.x86_64.rpm                                      |  24 kB  00:00:00     
(2/3): redhat-lsb-4.1-21.fc20.x86_64.rpm                                          |  24 kB  00:00:00     
(3/3): wget-1.14-9.fc20.x86_64.rpm                                                | 543 kB  00:00:00     
Total                                                                    679 kB/s | 591 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : wget-1.14-9.fc20.x86_64                                                               1/4 
warning: %post(wget-1.14-9.fc20.x86_64) scriptlet failed, exit status 127
Non-fatal POSTIN scriptlet failure in rpm package wget-1.14-9.fc20.x86_64
  Installing : libXScrnSaver-1.2.2-6.fc20.x86_64                                                     2/4 
warning: %post(libXScrnSaver-1.2.2-6.fc20.x86_64) scriptlet failed, exit status 127
Non-fatal POSTIN scriptlet failure in rpm package libXScrnSaver-1.2.2-6.fc20.x86_64
error: %pre(redhat-lsb-4.1-21.fc20.x86_64) scriptlet failed, exit status 127
Error in PREIN scriptlet in rpm package redhat-lsb-4.1-21.fc20.x86_64
error: redhat-lsb-4.1-21.fc20.x86_64: install failed
error: %pre(google-chrome-stable-32.0.1700.77-1.x86_64) scriptlet failed, exit status 127
Error in PREIN scriptlet in rpm package google-chrome-stable-32.0.1700.77-1.x86_64
  Verifying  : libXScrnSaver-1.2.2-6.fc20.x86_64                                                     1/4 
  Verifying  : wget-1.14-9.fc20.x86_64                                                               2/4 
  Verifying  : redhat-lsb-4.1-21.fc20.x86_64                                                         3/4 
  Verifying  : google-chrome-stable-32.0.1700.77-1.x86_64                                            4/4 

Dependency Installed:
  libXScrnSaver.x86_64 0:1.2.2-6.fc20                      wget.x86_64 0:1.14-9.fc20                     

  google-chrome-stable.x86_64 0:32.0.1700.77-1              redhat-lsb.x86_64 0:4.1-21.fc20             

[ms6401@ms6401 Downloads]$
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-01-16 19:09:54 -0500

FranciscoD_ gravatar image

updated 2014-01-19 18:51:24 -0500

mether gravatar image

We just diagnosed this. It's caused by a small error in the selinux policy. To correct it you need to update it to the latest version. Please ensure that this installs this version of the package: 'selinux-policy-3.12.1-117.fc20.noarch'. For more details, refer to

edit flag offensive delete link more



Thanks! Worked like a charm.

msmith81886 gravatar imagemsmith81886 ( 2014-01-16 20:22:49 -0500 )edit

You're fortunate! I ran an update with the broken policy and ended up messing up my system beyond repair. I just installed Fedora afresh this morning :/

FranciscoD_ gravatar imageFranciscoD_ ( 2014-01-16 20:37:05 -0500 )edit

Thanks, this fixed my install for lpf-spotify-client

acyclik gravatar imageacyclik ( 2014-01-16 20:45:20 -0500 )edit

This fixed my issue with postgresql93-server

ndobie gravatar imagendobie ( 2014-01-16 21:31:15 -0500 )edit

@FranciscoD_ Thanks this solved the issue with chrome on error: %pre(redhat-lsb-4.1-21.fc20.x86_64) scriptlet failed, exit status 127 Error in PREIN scriptlet in rpm package redhat-lsb-4.1-21.fc20.x86_64 error: redhat-lsb-4.1-21.fc20.x86_64: install failed

naistech gravatar imagenaistech ( 2014-01-17 02:28:51 -0500 )edit

answered 2014-01-18 08:24:18 -0500

ggalt gravatar image

FYI, I tried the above suggestion, but still got errors. I then checked the selinux-policy version installed and found:

rpm -qa | grep selinux-policy

As you can see, there is a version mismatch with "selinux-policy-targeted" that was not corrected by the above suggestion. I forced an install of the correct version with:

sudo setenforce 0
sudo yum update selinux-policy-targeted-3.12.1-117.fc20.noarch
sudo setenforce 1

I then did a forced reinstall of all of the failed packages (42 in my case!!), which succeeded.

edit flag offensive delete link more


On my system, selinux-policy pulled in selinux-policy-targeted. Not sure why this didn't happen on yours.

FranciscoD_ gravatar imageFranciscoD_ ( 2014-01-18 08:45:29 -0500 )edit

This works for me. Thank you.

kopromlask gravatar imagekopromlask ( 2014-01-19 02:36:26 -0500 )edit

selinux-policy was up-to-date on my system, but not selinux-policy-targeted. Once I updated, I was able to complete the update of the remaining failed packages.

snowolfe gravatar imagesnowolfe ( 2014-01-19 04:55:36 -0500 )edit

thanks a bunch this saved me some time ... i tried updated selinux ..and did a reboot ..nothing changed still the error 127.. ll had to do was setenforce 0 rand yum remove ...everthing got cleaned up nicely then setenforce to 1

edwinpattam gravatar imageedwinpattam ( 2014-01-23 23:58:32 -0500 )edit

That worked for me. After doing the update to selinux I was able to do a yum update to all with out issue. Good catch.

shawnwhit gravatar imageshawnwhit ( 2014-01-28 14:45:43 -0500 )edit

Question Tools

1 follower


Asked: 2014-01-16 18:57:08 -0500

Seen: 27,412 times

Last updated: Jan 19 '14