欢迎光临
我们一直在努力

Digitalocean升级内核提示错误Error getting repository data for elrepo-kernel

由于安装Google bbr需要对CentOS 7的内核进行升级,我的VPS是Digitalocean CentOS 7.4 x64,原本内核版本如下:

[michael@centos74 ruisu]$ uname -r
3.10.0-693.21.1.el7.x86_64

执行升级内核命令如下:

yum --enablerepo=elrepo-kernel -y install kernel-ml kernel-ml-devel

结果提示:

[michael@centos74 ~]$ sudo yum --enablerepo=elrepo-kernel -y install kernel-ml kernel-ml-devel
[sudo] password for michael: 
Loaded plugins: fastestmirror

Error getting repository data for elrepo-kernel, repository not found

解决办法:

sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

然后再执行升级内核命令:

yum --enablerepo=elrepo-kernel -y install kernel-ml kernel-ml-devel

这次就能够成功执行了。

参考文章:

  1. How to enable ELRepo repository on CentOS or RHEL
  2. How to Install Linux Kernel 4.0 from Elrepo / Source on Ubuntu / CentOs
  3. 安装 Google BBR 加速VPS网络
赞(0)
未经允许不得转载:Ddmit » Digitalocean升级内核提示错误Error getting repository data for elrepo-kernel

评论 抢沙发

登录

找回密码

注册