In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
LINUX in uninstalling elfutils-libelf caused rpm tools are not available how to do, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.
On April 24th, 2021, a novice practices mysql database installation. One of the steps is to install the elfutils-libelf-devel-0.164-2.el6.x86_64.rpm elfutils-libelf-0.164-2.el6.x86_64.rpm package. During the installation process, an error version conflict is reported:
[root@centos] # rpm-ivh elfutils-libelf-devel-0.164-2.el6.x86_64.rpm elfutils-libelf-0.164-2.el6.x86_64.rpm
Preparing... # [100%]
File / usr/lib64/libelf.so.1 from install of elfutils-libelf-0.164-2.el6.x86_64 conflicts with file from package elfutils-libelf-0.152-1.el6.x86_64
File / usr/share/locale/de/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.164-2.el6.x86_64 conflicts with file from package elfutils-libelf-0.152-1.el6.x86_64
File / usr/share/locale/en@boldquot/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.164-2.el6.x86_64 conflicts with file from package elfutils-libelf-0.152-1.el6.x86_64
File / usr/share/locale/en@quot/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.164-2.el6.x86_64 conflicts with file from package elfutils-libelf-0.152-1.el6.x86_64
File / usr/share/locale/es/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.164-2.el6.x86_64 conflicts with file from package elfutils-libelf-0.152-1.el6.x86_64
File / usr/share/locale/ja/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.164-2.el6.x86_64 conflicts with file from package elfutils-libelf-0.152-1.el6.x86_64
File / usr/share/locale/pl/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.164-2.el6.x86_64 conflicts with file from package elfutils-libelf-0.152-1.el6.x86_64
File / usr/share/locale/uk/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.164-2.el6.x86_64 conflicts with file from package elfutils-libelf-0.152-1.el6.x86_64
[root@centos ~] #
Then he uninstalled the local lower version of elfutils-libelf:
[root@centos] # rpm-e-nodeps elfutils-libelf
Next, execute the rpm-ivh elfutils-libelf-devel-0.164-2.el6.x86_64.rpm elfutils-libelf-0.164-2.el6.x86_64.rpm error:
[root@centos] # rpm-ivh elfutils-libelf-devel-0.164-2.el6.x86_64.rpm elfutils-libelf-0.164-2.el6.x86_64.rpm
Rpm: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory
At this point, the rpm has been corrupted and the missing libelf.so.1 cannot be used.
It's also easy to fix the rpm package by assigning libelf.so.1 from other machines under / usr/lib64/ (I copied it from rhel5's machine):
[root@centos ~] # cp libelf.so.1 / usr/lib64/
After executing the rpm command, the following output indicates that the rpm tool has been fixed:
[root@centos ~] # rpm
RPM version 4.8.0
Copyright (C) 1998-2002-Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
Usage: rpm [- aKfgpWHqVcdilsKiv?] [- a |-- all] [- f |-- file] [- g |-- group] [--p |-- package] [--W |-- ftswalk] [--pkgid] [--hdrid] [--fileid] [--specfile] [--triggeredby]
[--whatrequires] [--whatprovides] [--nomanifest] [- c |-- configfiles] [- d |-- docfiles] [--dump] [- l |-- list] [--queryformat=QUERYFORMAT] [- s |-- state]
[--nofiledigest] [--nomd5] [--nofiles] [--nodeps] [--noscript] [--comfollow] [--logical] [--nochdir] [--nostat] [--physical] [--seedot] [--xdev]
[--whiteout] [--addsign] [--K |-- checksig] [--delsign] [--import] [--resign] [--nodigest] [--nosignature] [--initdb] [--rebuilddb] [--aid] [--allfiles]
[--allmatches] [--badreloc] [- e |-- erase +] [--excludedocs] [--excludepath=] [--fileconflicts] [--force] [- F |-- freshen +]
[- h |-- hash] [--ignorearch] [--ignoreos] [--ignoresize] [- I |-- install] [--justdb] [--nodeps] [--nofiledigest] [--nomd5] [--nocontexts] [--noorder]
[--nosuggest] [--noscripts] [--notriggers] [--oldpackage] [--percent] [--prefix=] [--relocate==] [--replacefiles] [--replacepkgs]
[--test] [- U |-- upgrade +] [--quiet] [- D |-- define 'MACRO EXPR'] [- E |-- eval' EXPR'] [--macros=] [--nodigest] [--nosignature]
[--rcfile=] [--root ROOT] [--querytags] [--showrc] [--quiet] [- v |-- verbose] [--version] [- -? |-- help] [--usage] [--scripts] [--setperms]
[--setugids] [--conflicts] [--obsoletes] [--provides] [--requires] [--info] [--changelog] [--xml] [--triggers] [--last] [--dupes] [--filesbypkg]
[--fileclass] [--filecolor] [--fscontext] [--fileprovide] [--filerequire] [--filecaps]
[root@centos ~] #
LINUX rpm-e-- nodeps is dangerous and must be used with caution, otherwise the host kernel will be destroyed.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.