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

AI Hentai Generator
Generate AI Hentai for free.

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



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.

The key differences between CentOS and Ubuntu are: origin (CentOS originates from Red Hat, for enterprises; Ubuntu originates from Debian, for individuals), package management (CentOS uses yum, focusing on stability; Ubuntu uses apt, for high update frequency), support cycle (CentOS provides 10 years of support, Ubuntu provides 5 years of LTS support), community support (CentOS focuses on stability, Ubuntu provides a wide range of tutorials and documents), uses (CentOS is biased towards servers, Ubuntu is suitable for servers and desktops), other differences include installation simplicity (CentOS is thin)

Steps to configure IP address in CentOS: View the current network configuration: ip addr Edit the network configuration file: sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0 Change IP address: Edit IPADDR= Line changes the subnet mask and gateway (optional): Edit NETMASK= and GATEWAY= Lines Restart the network service: sudo systemctl restart network verification IP address: ip addr

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

CentOS installation steps: Download the ISO image and burn bootable media; boot and select the installation source; select the language and keyboard layout; configure the network; partition the hard disk; set the system clock; create the root user; select the software package; start the installation; restart and boot from the hard disk after the installation is completed.

Restarting the network in CentOS 8 requires the following steps: Stop the network service (NetworkManager) and reload the network module (r8169), start the network service (NetworkManager) and check the network status (by ping 8.8.8.8)

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
