In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about the CentOS yum paragraph error core dumped solution is how, the editor thinks it is very practical, so share with you to learn, I hope you can learn something after reading this article, say no more, follow the editor to have a look.
Today, both yum install and yum update prompted a segment error (core dumped), and then stopped running.
The code is as follows:
[root@lee ~] # yum-y update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
* base: mirror.esocc.com
* extras: mirror.esocc.com
* soluslabs: mirror.us1.soluslabs.net
* updates: mirror.esocc.com
Base | 3.7 kB 00:00
Base/primary_db | 4.4 MB 00:14
Extras | 3.4 kB 00:00
Extras/primary_db | 18 kB 00:00
Soluslabs | 951B 00:00
Soluslabs/primary | 11 kB 00:00
Segment error (core dumped)
It is still useless to find all kinds of prawns articles on Google, so we have to check the errors carefully! First of all, I made sure that it was not because of the Python version, because a Python2.7.4 was installed before.
The code is as follows:
# vim / usr/bin/yum
View the first line
The code is as follows:
#! / usr/bin/python2.6
Import sys
Try:
Import yum
Except ImportError:
Print > > sys.stderr, ""\ "
There was a problem importing one of the Python modules
Required to run yum. The error leading to this problem was:
% s
Please install a package which provides this module, or
Verify that the module is installed correctly.
It's possible that the above module doesn't match the
Current version of Python, which is:
% s
If you cannot solve this problem yourself, please go to
The yum faq at:
Http://yum.baseurl.org/wiki/Faq
""% (sys.exc_value, sys.version)
Sys.exit (1)
Sys.path.insert (0,'/ usr/share/yum-cli')
Try:
Import yummain
Yummain.user_main (sys.argv [1:], exit_code=True)
Except KeyboardInterrupt, e:
Print > > sys.stderr, "\ n\ nExiting on user cancel."
Sys.exit (1)
The first line is
The code is as follows:
#! / usr/bin/python2.6
Look directly at whether there is a problem with this Python2.6.
The code is as follows:
[root@lee] # / usr/bin/python2.6-V
Python 2.6.6
Correctly identify the version number, no problem. When it didn't help after yum clean all, it occurred to me whether there was something in the / etc/yum.repos.d/ directory.
The code is as follows:
[root@lee ~] # ls / etc/yum.repos.d/
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo soluslabs.repo
Found that there is a soluslabs.repo and I yum command error is a resource library, it seems that this is the problem.
The code is as follows:
Soluslabs | 951B 00:00
Soluslabs/primary | 11 kB 00:00
Segment error (core dumped)
The last line of the paragraph error is soluslabs, so I rm it directly
The code is as follows:
# rm-f / etc/yum.repos.d/soluslabs.repo
And then clean.
The code is as follows:
# yum clean all
OK, let's go back to the familiar yum update.
The code is as follows:
[root@lee ~] # yum-y update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
Base | 3.7 kB 00:00
Base/primary_db | 4.4 MB 00:20
Extras | 3.4 kB 00:00
Extras/primary_db | 18 kB 00:00
Updates | 3.4 kB 00:00
Updates/primary_db | 3.9MB 00:13
Setting up Update Process
Resolving Dependencies
-> Running transaction check
-> Package bash.x86_64 0vl 4.1.2-14.el6 will be updated
-> Package bash.x86_64 0vl 4.1.2-15.el6_4 will be an update
-> Package bind-libs.x86_64 32 9.8.2-0.17.rc1.el6_4.4 will be updated
Done, call it a day!
Another solution:
The following error is prompted when installing something or yum update using the yum command:
The code is as follows:
[root@lee ~] # yum update
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* soluslabs: mirror.eu1.soluslabs.net
* updates: mirrors.tuna.tsinghua.edu.cn
Segment error (core dumped)
Solution:
The code is as follows:
[root@lee] # rpm-Q zlib zlib-devel
Zlib-1.2.3-29.el6.x86_64
Zlib-devel-1.2.3-29.el6.x86_64
[root@lee ~] # cp / usr/lib64/lib
Display all 1910 possibilities? (y or n)
[root@lee ~] # cp / usr/lib64/libz.so / usr/local/lib64/
[root@lee ~] # cd / usr/local/lib64/
[root@lee lib64] # ln-sf libz.so libz.so.1
[root@lee lib64] # yum clean all
My system is CentOS 64-bit. If it is 32-bit, it is copied when assigning libz.so.
The code is as follows:
[root@lee ~] cp / usr/lib/libz.so / usr/local/lib/
Then re-yum update will be fine.
The above is how to solve the CentOS yum paragraph error core dumped. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.