禁止内核更新

在Software & Updates 上把 update下面的勾全不勾,貌似可以

 

原文链接:

https://blog.csdn.net/weixin_40522162/article/details/80302735

内容(效果貌似不佳):

 

查看已安装内核

dpkg --get-selections |grep linux-image
1
查看正在使用的内核

uname -a
1
删除旧内核

sudo apt-get remove linux-image-x.xx.x-xx-generic
sudo apt-get remove linux-image-extra-x.xx.x-xx-generic
1
2
或用这个命令移除

sudo dpkg --purge linux-image-x.x.x-xx-generic
1
禁止更新内核,需时间来验证

sudo apt-mark hold linux-image-x.xx.x-xx-generic
sudo apt-mark hold linux-image-extra-x.xx.x-xx-generic
1
2
如果需要恢复原来的设定的话即允许更新内核,执行如下命令即可:

sudo apt-mark unhold linux-image-x.xx.x-xx-generic
sudo apt-mark unhold linux-image-extra-x.xx.x-xx-generic
1
2
ubuntu14.04 修改配置文件 禁止系统自动更新
1修改配置文件
修改配置文件/etc/apt/apt.conf.d/10periodic 然后0是关闭,将所有值改为0
vim etc/apt/apt.conf.d/10periodic

APT::Periodic::Update-Package-Lists “0”;
APT::Periodic::Download-Upgradeable-Packages “0”;
APT::Periodic::AutocleanInterval “0”;

 

版权声明:本文为CSDN博主「无驰复逸」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_40522162/article/details/80302735

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值