centos yum 분할 오류에 대한 해결 방법: 1. "# rm -f /etc/yum.repos.d/soluslabs.repo" 명령을 실행합니다. 2. yum 업데이트를 다시 실행합니다.
이 기사의 운영 환경: CentOS 7 시스템, python2.6, Dell G3 컴퓨터.
centos yum segfault 문제를 해결하는 방법은 무엇입니까?
CentOS yum 분할 오류(코어 덤프) 해결 방법
오늘 yum install 또는 yum update 실행 시 분할 오류(코어 덤프)가 발생하고 작업이 종료되었습니다.
코드는 다음과 같습니다.
[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)
구글에서 각종 새우 관련 글을 찾아봐도 여전히 도움이 되지 않아서 오류를 잘 확인해야겠습니다! 우선 Python 2.7.4가 이전에 설치되어 있었기 때문에 Python 버전 때문이 아니라고 판단했습니다.
코드는 다음과 같습니다.
# vim /usr/bin/yum
첫 번째 줄을 보세요
코드는 다음과 같습니다.
#!/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)
첫 번째 줄은
코드는 다음과 같습니다.
#!/usr/bin/python2.6
문제가 있는지 확인하세요. Python2.6을 사용하여 직접
코드는 다음과 같습니다.
[root@lee ~]# /usr/bin/python2.6 -V Python 2.6.6
버전 번호가 올바르게 식별됩니다. 문제 없습니다. yum clean all이 도움이 되지 않았을 때 갑자기 /etc/yum.repos.d/ 디렉토리에 더 많은 것이 있을 수 있다는 생각이 들었습니다.
코드는 다음과 같습니다.
[root@lee ~]# ls /etc/yum.repos.d/ CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo soluslabs.repo
거기에 soluslabs.repo가 있는 것을 발견했는데, 이는 내 yum 명령이 오류를 보고한 리소스 라이브러리와 동일한 것 같습니다.
코드는 다음과 같습니다.
soluslabs | 951 B 00:00 soluslabs/primary | 11 kB 00:00 段错误 (core dumped)
segfault의 이전 줄이 soluslabs이므로 직접 rm 합니다
코드는 다음과 같습니다.
# rm -f /etc/yum.repos.d/soluslabs.repo
그런 다음 다시 정리합니다
코드는 다음과 같습니다.
# yum clean all
좋아, 다시 돌아가 익숙한 yum 업데이트
코드는 다음과 같습니다:
[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
완료, 하루만 기다리세요!
다른 해결 방법:
yum 명령을 사용하여 무언가를 설치하거나 yum 업데이트를 하면 다음 오류가 표시됩니다.
코드는 다음과 같습니다.
[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)
해결 방법:
코드는 다음과 같습니다.
[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 시스템이 CentOS 64비트라면 libz.so를 할당할 때 다음과 같이
코드를 복사하세요.
[root@lee ~] cp /usr/lib/libz.so /usr/local/lib/
그런 다음 다시 yum 업데이트하세요.
추천 튜토리얼: "centos tutorial"
위 내용은 Centos Yum Segfault 문제를 해결하는 방법의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

查版本号的命令:1、“cat /etc/issue”或“cat /etc/redhat-release”,可输出centos版本号;2、“cat /proc/version”、“uname -a”或“uname -r”,可输出内核版本号。

centos重启网卡的方法:1、对于centos6的网卡重启命令是“service network restart”;2、对于centos7的网卡重启命令是“systemctl restart network”。

centos php安装opcache的方法:1、执行“yum list php73* | grep opcache”命令;2、通过“yum install php73-php-opcache.x86_64”安装opcache;3、使用“find / -name opcache.so”查找“opcache.so”的位置并将其移动到php的扩展目录即可。

centos离线安装mysql的方法:1、将lib中的所有依赖上传到linux中,并用yum命令进行安装;2、解压MySQL并把文件复制到想要安装的目录;3、修改my.cnf配置文件;4、复制启动脚本到资源目录并修改启动脚本;5、将mysqld服务加入到系统服务里面;6、将mysql客户端配置到环境变量中,并使配置生效即可。

centos7安装不出现界面的解决办法:1、选择“Install CentOS 7”,按“e”进入启动引导界面;2、 将“inst.stage2=hd:LABEL=CentOS\x207\x20x86_64”改为“linux dd”;3、重新进入“Install CentOS 7”,按“e”将“hd:”后的字符替换成“/dev/sdd4”,然后按“Ctrl+x”执行即可。

centos删除php的方法:1、通过“#rpm -qa|grep php”命令查看全部php软件包;2、通过“rpm -e”命令卸载相应的依赖项;3、重新使用“php -v”命令查看版本信息即可。

方法:1、利用“vim ~/.bashrc”编辑用户目录(~)下的“.bashrc”文件;2、在文件内添加“alias ls="ls --color"”;3、利用“:wq!”命令保存文件内的更改;4、“exit”命令退出终端后重新连接即可。

我们的PC中有一个磁盘驱动器专门用于所有与Windows操作系统相关的安装。该驱动器通常是C驱动器。如果您还在PC的C盘上安装了最新的Windows11操作系统,那么所有系统更新(很可能是您安装的所有软件)都会将其所有文件存储在C盘中。因此,保持此驱动器没有垃圾文件并在C驱动器中拥有足够的存储空间变得非常重要,因为该驱动器拥有的空间越多,您的Windows11操作系统运行起来就越顺畅。但是您可以在磁盘驱动器上增加多少空间以及可以删除多少文件是有限制的。在这种情况下,


핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

WebStorm Mac 버전
유용한 JavaScript 개발 도구

Dreamweaver Mac版
시각적 웹 개발 도구

안전한 시험 브라우저
안전한 시험 브라우저는 온라인 시험을 안전하게 치르기 위한 보안 브라우저 환경입니다. 이 소프트웨어는 모든 컴퓨터를 안전한 워크스테이션으로 바꿔줍니다. 이는 모든 유틸리티에 대한 액세스를 제어하고 학생들이 승인되지 않은 리소스를 사용하는 것을 방지합니다.

VSCode Windows 64비트 다운로드
Microsoft에서 출시한 강력한 무료 IDE 편집기

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

뜨거운 주제



