禁止内核更新
在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
總結
- 上一篇: linux 查看库的安装信息
- 下一篇: 联想电脑 Realtek RTL8821