ubuntu 18.10 禁止内核更新

禁止内核更新

sudo apt-mark hold linux-image-generic linux-headers-generic

更新系统

sudo apt-get update
sudo apt-get upgrade -y

启用内核更新

sudo apt-mark unhold linux-image-generic linux-headers-generic

临时更新内核(只更新一次)

sudo apt-mark hold linux-image-generic linux-headers-generic && sudo apt-get update && sleep 1 && sudo apt-get upgrade -y && sudo apt-mark unhold linux-image-generic linux-headers-generic

添加新评论