How to solve centos yum segfault problem
Centos yum segfault solution: 1. Execute the "# rm -f /etc/yum.repos.d/soluslabs.repo" command; 2. Re-run yum update.
The operating environment of this article: CentOS 7 system, python2.6, Dell G3 computer.
How to solve centos yum segfault problem?
CentOS yum segmentation fault (core dumped) solution
Today, when yum install or yum update, a segmentation fault (core dumped) is prompted, and then Termination of operation.
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 | 951 B 00:00 soluslabs/primary | 11 kB 00:00 段错误 (core dumped)
Looking for articles about various prawns on Google still doesn’t help, so I have to check the errors carefully! First of all, I determined that it was not due to the Python version, because Python 2.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
Check directly to see if there is a problem with 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 yum clean all didn't help, I suddenly thought that there might be more things 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
I found that there is a soluslabs.repo in it, and the place where I reported errors with the yum command is a resource library. It seems that the problem lies here.
The code is as follows:
soluslabs | 951 B 00:00 soluslabs/primary | 11 kB 00:00 段错误 (core dumped)
The previous line of the segfault is soluslabs, so I directly rm it
The code is as follows:
# rm -f /etc/yum.repos.d/soluslabs.repo
Then again Clean
The code is as follows:
# yum clean all
Okay, 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 00:00 updates | 3.4 kB 00:00 updates/primary_db | 3.9 MB 00:13 Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package bash.x86_64 0:4.1.2-14.el6 will be updated ---> Package bash.x86_64 0: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:
When using the yum command to install something or yum update, the following error is prompted:
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 段错误 (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, copy it like this when assigning libz.so
The code is as follows:
[root@lee ~] cp /usr/lib/libz.so /usr/local/lib/
Then re-yum update.
Recommended tutorial: "centos tutorial"
The above is the detailed content of How to solve centos yum segfault problem. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Backup and Recovery Policy of GitLab under CentOS System In order to ensure data security and recoverability, GitLab on CentOS provides a variety of backup methods. This article will introduce several common backup methods, configuration parameters and recovery processes in detail to help you establish a complete GitLab backup and recovery strategy. 1. Manual backup Use the gitlab-rakegitlab:backup:create command to execute manual backup. This command backs up key information such as GitLab repository, database, users, user groups, keys, and permissions. The default backup file is stored in the /var/opt/gitlab/backups directory. You can modify /etc/gitlab

Improve HDFS performance on CentOS: A comprehensive optimization guide to optimize HDFS (Hadoop distributed file system) on CentOS requires comprehensive consideration of hardware, system configuration and network settings. This article provides a series of optimization strategies to help you improve HDFS performance. 1. Hardware upgrade and selection resource expansion: Increase the CPU, memory and storage capacity of the server as much as possible. High-performance hardware: adopts high-performance network cards and switches to improve network throughput. 2. System configuration fine-tuning kernel parameter adjustment: Modify /etc/sysctl.conf file to optimize kernel parameters such as TCP connection number, file handle number and memory management. For example, adjust TCP connection status and buffer size

The CentOS shutdown command is shutdown, and the syntax is shutdown [Options] Time [Information]. Options include: -h Stop the system immediately; -P Turn off the power after shutdown; -r restart; -t Waiting time. Times can be specified as immediate (now), minutes ( minutes), or a specific time (hh:mm). Added information can be displayed in system messages.

CentOS will be shut down in 2024 because its upstream distribution, RHEL 8, has been shut down. This shutdown will affect the CentOS 8 system, preventing it from continuing to receive updates. Users should plan for migration, and recommended options include CentOS Stream, AlmaLinux, and Rocky Linux to keep the system safe and stable.

The key to installing MySQL elegantly is to add the official MySQL repository. The specific steps are as follows: Download the MySQL official GPG key to prevent phishing attacks. Add MySQL repository file: rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm Update yum repository cache: yum update installation MySQL: yum install mysql-server startup MySQL service: systemctl start mysqld set up booting

Complete Guide to Checking HDFS Configuration in CentOS Systems This article will guide you how to effectively check the configuration and running status of HDFS on CentOS systems. The following steps will help you fully understand the setup and operation of HDFS. Verify Hadoop environment variable: First, make sure the Hadoop environment variable is set correctly. In the terminal, execute the following command to verify that Hadoop is installed and configured correctly: hadoopversion Check HDFS configuration file: The core configuration file of HDFS is located in the /etc/hadoop/conf/ directory, where core-site.xml and hdfs-site.xml are crucial. use

Common problems and solutions for Hadoop Distributed File System (HDFS) configuration under CentOS When building a HadoopHDFS cluster on CentOS, some common misconfigurations may lead to performance degradation, data loss and even the cluster cannot start. This article summarizes these common problems and their solutions to help you avoid these pitfalls and ensure the stability and efficient operation of your HDFS cluster. Rack-aware configuration error: Problem: Rack-aware information is not configured correctly, resulting in uneven distribution of data block replicas and increasing network load. Solution: Double check the rack-aware configuration in the hdfs-site.xml file and use hdfsdfsadmin-printTopo

Building a Hadoop Distributed File System (HDFS) on a CentOS system requires multiple steps. This article provides a brief configuration guide. 1. Prepare to install JDK in the early stage: Install JavaDevelopmentKit (JDK) on all nodes, and the version must be compatible with Hadoop. The installation package can be downloaded from the Oracle official website. Environment variable configuration: Edit /etc/profile file, set Java and Hadoop environment variables, so that the system can find the installation path of JDK and Hadoop. 2. Security configuration: SSH password-free login to generate SSH key: Use the ssh-keygen command on each node
