error: trying to remove "yum", which is protected
Trying to update one of the my VPS today with sudo yum update
command and encounter this funky error message :
error: trying to remove "yum", which is protected
From the output :
--> Finished Dependency Resolution
Error: Package: coreutils-libs-8.4-31.el6_5.2.x86_64 (@updates)
Requires: coreutils = 8.4-31.el6_5.2
Removing: coreutils-8.4-31.el6_5.2.x86_64 (@updates)
coreutils = 8.4-31.el6_5.2
Updated By: coreutils-8.4-37.el6.x86_64 (base)
coreutils = 8.4-37.el6
You could try using --skip-broken to work around the problem
** Found 31 pre-existing rpmdb problem(s), 'yum check' output follows:
and issuing the sudo yum --skip-broken
command will work but give this hint for what is causing the funky error :
error: Failed dependencies:
coreutils-libs = 8.4-31.el65.2 is needed by (installed) coreutils-8.4-31.el65.2.x86_64
seems like the package coreutils-8.4-31.el6_5.2.x86_64
is causing the problem with dependencies issue
SOLUTION :
To fix this funky error, use the rpm- e --justdb <package name>
command and in my own example here, I'll just issue
> sudo rpm -e --justdb coreutils-libs-8.4-37.el6.x86_64
and than
> sudo yum update
bingo! all packages updated.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+14.2k Golang : How to determine if user agent is a mobile device example
+4.7k Golang : PGX CopyFrom to insert rows into Postgres database
+23.6k Golang : Use regular expression to validate domain name
+13.7k Golang: Pad right or print ending(suffix) zero or spaces in fmt.Printf example
+7k Golang : How to fix html/template : "somefile" is undefined error?
+11.9k Golang : md5 hash of a string
+20.2k Nginx + FastCGI + Go Setup.
+6.4k Golang : Skip or discard items of non-interest when iterating example
+14.6k Golang : How to check for empty array string or string?
+5.1k Javascript : Shuffle or randomize array example
+5.2k How to check with curl if my website or the asset is gzipped ?
+34.2k Golang : How to stream file to client(browser) or write to http.ResponseWriter?