一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

服務器之家:專注于服務器技術(shù)及軟件下載分享
分類導航

Linux|Centos|Ubuntu|系統(tǒng)進程|Fedora|注冊表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服務器之家 - 服務器系統(tǒng) - Centos - CentOS yum 段錯誤 (core dumped)解決方法

CentOS yum 段錯誤 (core dumped)解決方法

2019-09-25 15:26CentOS之家 Centos

這篇文章主要介紹了CentOS yum 段錯誤 (core dumped)解決方法,本文給出了兩個解決方法,需要的朋友可以參考下

今天在yum install 或者yum update的時候都提示段錯誤(core dumped),然后終止運行了。
 

復制代碼

代碼如下:


[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版本的原因,因為之前安裝了一個Python2.7.4。

復制代碼

代碼如下:


# 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


發(fā)現(xiàn)里邊有一個soluslabs.repo跟我yum命令報錯的地方都是一個資源庫,看來問題就在這了。

復制代碼

代碼如下:


soluslabs | 951 B 00:00 
soluslabs/primary | 11 kB 00:00 
段錯誤 (core dumped)


段錯誤的上一行是soluslabs,于是我直接rm它

復制代碼

代碼如下:


# rm -f /etc/yum.repos.d/soluslabs.repo


然后再clean下

復制代碼

代碼如下:


# yum clean all


好滴,我們再回到熟悉的yum update

復制代碼

代碼如下:


[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.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 update時都提示以下錯誤:
 

復制代碼

代碼如下:


[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


我的系統(tǒng)是CentOS 64位,如果是32位的在賦值libz.so時這么復制

復制代碼

代碼如下:


[root@lee ~] cp /usr/lib/libz.so /usr/local/lib/


然后重新yum update就可以了

延伸 · 閱讀

精彩推薦
  • Centoscentos不小心刪除/root目錄該如何解決?

    centos不小心刪除/root目錄該如何解決?

    一些朋友最近在問小編centos不小心刪除/root目錄該如何解決?今天小編就為大家分享centos不小心刪除/root目錄解決辦法;希望對大家會有幫助,有需要的朋友...

    腳本之家8022019-05-29
  • CentosCentOS下Uptime命令詳解

    CentOS下Uptime命令詳解

    在Linux下,我們可以使用uptime命令,而且此命令不必使用root權(quán)限。uptime命令在系統(tǒng)中已經(jīng)默認安裝了。今天小編為大家?guī)淼氖荂entOS下Uptime命令詳解;希望...

    CentOS之家11482019-06-19
  • Centoscentos 安裝與操作方法

    centos 安裝與操作方法

    這篇文章主要介紹了centos 安裝與操作方法,需要的朋友可以參考下...

    centos之家5272019-07-11
  • CentosCentos7運用/dev/shm進行網(wǎng)站優(yōu)化

    Centos7運用/dev/shm進行網(wǎng)站優(yōu)化

    這篇文章主要介紹了LINUX中Centos7運用/dev/shm進行網(wǎng)站優(yōu)化相關(guān)知識點,對此有興趣的朋友參考學習下。...

    彬菌9912022-03-02
  • CentosCentOS6.5下Redis安裝與配置詳細步驟

    CentOS6.5下Redis安裝與配置詳細步驟

    本篇文章主要介紹了CentOS6.5下Redis安裝與配置詳細步驟,詳細介紹redis單機單實例安裝與配置,服務及開機自啟動。有興趣的可以了解一下。...

    飛流11452021-12-24
  • CentosCentOS7設(shè)置日期和時間方法以及基本概念介紹

    CentOS7設(shè)置日期和時間方法以及基本概念介紹

    這篇文章主要介紹了CentOS7設(shè)置日期和時間方法以及基本概念介紹,本文講解使用CentOS7中的新命令timedatectl設(shè)置日期時間方法,需要的朋友可以參考下 ...

    CentOS之家6522019-09-19
  • CentosCentOS 6.6實現(xiàn)永久修改DNS地址的方法

    CentOS 6.6實現(xiàn)永久修改DNS地址的方法

    這篇文章主要介紹了CentOS 6.6實現(xiàn)永久修改DNS地址的方法,涉及針對CentOS配置文件的相關(guān)設(shè)置技巧,具有一定參考借鑒價值,需要的朋友可以參考下 ...

    Linux社區(qū)4472020-08-21
  • CentosCentos 7開啟網(wǎng)卡自動獲取IP的詳細方法

    Centos 7開啟網(wǎng)卡自動獲取IP的詳細方法

    本篇文章主要介紹了Centos 7開啟網(wǎng)卡自動獲取IP的詳細方法,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧...

    凌鋒8972021-12-29
主站蜘蛛池模板: jzjzjz日本在线观看 | 91精品综合国产在线观看 | 天堂在线中文无弹窗全文阅读 | 精品女同一区二区三区免费站 | 99精品久久精品一区二区 | 免费理伦片在线观看全网站 | 天天爱天天操天天射 | 精品视频一区二区三区免费 | 成人曼画| 黄色aaa| 午夜影院网站 | 午夜宅男在线观看 | 人人人人人看碰人人免费 | 欧美一区精品二区三区 | 99热这里只有精品在线播放 | 视频一区二区国产无限在线观看 | 草莓香蕉榴莲丝瓜秋葵绿巨人在线看 | 欧美日韩视频在线第一区二区三区 | 暖暖的免费观看高清视频韩国 | 国产精品高清在线 | 欧美3p大片在线观看完整版 | 扒开老师两片湿漉的肉 | 亚洲男人网| 国产九九在线 | 2021麻豆剧果冻传媒入口永久 | 金莲一级淫片aaaaaa | 婷婷久久精品 | 日本一区视频在线 | 好吊色青青青国产综合在线观看 | 色婷婷影院在线视频免费播放 | 日本暖暖在线视频 | 国产在线欧美日韩精品一区二区 | 午夜影院费试看黄 | 国产麻豆剧果冻传媒观看免费视频 | 草啪啪 | 啊啊啊好大好爽视频 | 欧美va在线播放免费观看 | 蜜桃破解版免费看nba | 狠狠色婷婷日日综合五月 | 狠狠做五月深爱婷婷天天综合 | 色悠久久久久综合网小说 |