记录一下失败的经历 最后电脑内核崩溃
关于在linux上安装mysqlclient库参考了很多文章,但是都不行,主要是有很多依赖包的问题。
学习了很多CSDN的博文,最后成功的让我的虚拟机内核崩溃死掉了,于是来记录一下,希望大家不要步我的后尘
最后选择了这篇文章,提示了我可以使用yum去安装。
于是我开始了安装yum的过程。
ubuntu安装yum
1.直接安装
sudo apt-get install yum
直接报错:原因是ubuntu的源的问题,其实yum好像就是和ubuntu过不去
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package yum
2.查了一下其他博主的,什么代码都试了试(下面两行就是很多人解决问题的代码),我试了的方法不止这些,有些方法我看见别人都行,但是我什么都不行:
sudo apt-get update
sudo apt-get upgrade
3.搞了很久都没有搞出来,最后用了一下这个博主的方法成功了!!!,但是也有点点区别的。
sudo gedit /etc/apt/sources.list
复制以下代码到最后一行:
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://