ubuntu内核更新_如何在Ubuntu中隐藏内核更新

ubuntu内核更新

ubuntu内核更新

Ubuntu’s Update Manager is a great utility that keeps all of your software up-to-date. If you’re using the default sources, updates have been tested and should work with no problems.

Ubuntu的Update Manager是一个很棒的实用程序,可以使您的所有软件保持最新状态。 如果您使用的是默认来源,则更新已经过测试,应该可以正常工作。

However, one item that you may not want to upgrade is the Linux kernel that powers your computer. Maybe you’ve customized your kernel, are annoyed with constantly cleaning up your Grub boot menu, or have had issues with video and audio drivers not working after kernel updates.

但是,您可能不想升级的一项是为计算机供电Linux内核。 也许您已经自定义了内核,不厌其烦地不断清理Grub引导菜单,或者在内核更新后视频和音频驱动程序无法正常工作。

The following steps will show you how to hide kernel upgrades in Ubuntu while still allowing you to use Update Manager to get other software updates.

以下步骤将向您展示如何在Ubuntu中隐藏内核升级,同时仍然允许您使用Update Manager来获取其他软件更新。

upd1

APT (Advanced Packaging Tool) is the system that Ubuntu uses to manage all of the software installed on a system. It allows you to “pin” a package to a certain version, so that it won’t be updated when you the Update Manager runs.

APT(高级打包工具)是Ubuntu用于管理系统上安装的所有软件的系统。 它允许您将程序包“固定”到特定版本,以便在运行更新管理器时不会对其进行更新。

To pin your kernel packages, first you must determine what version your kernel is. One way to do this is to open the Synaptic Package Manager in System > Administration.

要固定内核软件包,首先必须确定内核的版本。 一种方法是在“系统”>“管理”中打开Synaptic软件包管理器。

upd2

Type in “linux-generic” in the Quick search text field and hit enter.

在快速搜索文本字段中输入“ linux-generic”,然后按Enter。

upd3

Make a note of the number listed in the “Installed Version” column. We’ll use it in the next step.

记下“已安装版本”列中列出的数字。 我们将在下一步中使用它。

Next, we need to edit the file /etc/apt/preferences. Open it by pressing Alt+F2 to bring up the Run Application window and entering in:

接下来,我们需要编辑文件/ etc / apt / preferences。 通过按Alt + F2打开“运行应用程序”窗口并输入以下内容来打开它:

gksudo gedit /etc/apt/preferences

gksudo gedit / etc / apt / preferences

upd4

This will open up a gedit window. Most likely the window will be blank, unless you’ve played around with APT before.

这将打开一个gedit窗口。 除非您之前曾使用过APT,否则该窗口很可能将是空白的。

In the window, type in the following, replacing the version number with the version number you found in the Synaptic Package Manager.

在窗口中,键入以下内容,将版本号替换为您在Synaptic软件包管理器中找到的版本号。

Package: linux-generic linux-headers-generic linux-image-generic linux-restricted-modules-genericPin: version <insert version here>Pin-Priority: 1001

软件包:linux-generic linux-headers-generic linux-image-generic linux-restricted-modules-genericPin:版本<在此处插入版本> Pin优先级:1001

upd5

Save the file and close gedit. If you open the Update Manager, you should see that the Linux kernel updates are now hidden!

保存文件并关闭gedit。 如果打开更新管理器,您应该看到Linux内核更新现在已隐藏!

upd6

And that’s it!

就是这样!

Note: Make sure that you update your kernel every now and then, as even Linux suffers security issues occasionally.

注意:请确保您不时更新内核,因为即使Linux也会偶尔遇到安全问题。

翻译自: https://www.howtogeek.com/howto/10606/how-to-hide-kernel-updates-in-ubuntu/

ubuntu内核更新

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值