Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧
<p>Ubuntu 系统使用 apt-get 升级时,想要实现保留部分软件为当前版本,不参与升级,该怎么设置呢?下面我们就来看看使用命令来实现的方法,详细请看下文介绍。</p>
<p>
<strong>一、不升级指定软件的技巧 </strong></p>
<p>
1、以synergy为例,需使用sudo 或 root</p>
<p>
打开终端,输入:</p>
<p>
<strong>sudo echo synergy hold | sudo dpkg --set-selections</strong></p>
<p align="center">
<img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" alt="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" src="https://zhuji.jb51.net/uploads/img/202305/7266d8a58e0b5a812e55ad2442d34e4c.jpg"></p>
<p>
2、查询Ubuntu系统被锁定不更新的软件包状态(hold), 命令为:</p>
<p>
<span><strong>sudo dpkg --get-selections | grep hold</strong></span> 查看是否锁定成功</p>
<p>
或者使用</p>
<p>
<strong>sudo dpkg --get-selections | more</strong> 查询系统所有软件状态</p>
<p align="center">
<img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" alt="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" src="https://zhuji.jb51.net/uploads/img/202305/d061de013e5badc45ee48bcc5642ec2c.jpg"></p>
<p>
3、是被锁定(hold)的软件包恢复可升级状态,命令:</p>
<p>
<span><strong>sudo echo synergy install | sudo dpkg --set-selections</strong></span></p>
<p align="center">
<img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" alt="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" src="https://zhuji.jb51.net/uploads/img/202305/35971901717c3fd4b97544d332c0070c.jpg"></p>
<p>
<strong>二、关闭自动检测更新</strong></p>
<p>
1、启动Ubuntu之后,我们点击屏幕右上角的设置按钮,如图示。</p>
<p align="center">
<img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" alt="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" src="https://zhuji.jb51.net/uploads/img/202305/f54da90a0a680b4fe57832d68c66229d.jpg"></p>
<p>
2、在下拉出来的菜单中,我们需要选择“<strong>系统设置</strong>”,如图示。</p>
<p align="center">
<img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" alt="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" src="https://zhuji.jb51.net/uploads/img/202305/1f392f7edf56c98c0bef349a12be15b2.jpg"></p>
<p>
3、进入全部设置之后,我们找到系统,在系统下面,我们找到“<span><strong>软件和更新</strong></span>”。</p>
<p align="center">
<img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" alt="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" src="https://zhuji.jb51.net/uploads/img/202305/f414a404eb18636b10f46e5fae833745.jpg"></p>
<p>
4、点击打开之后,我们可以看到如图示界面,我们点击“<span><strong>更新</strong></span>”选项。</p>
<p align="center">
<img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" alt="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" src="https://zhuji.jb51.net/uploads/img/202305/07c7ec3e081e95c1303bc0fac02e40ac.jpg"></p>
<p>
5、在自动检查更新中,我们点击之后,选择“<span><strong>从不</strong></span>”,如图示。</p>
<p align="center">
<img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" alt="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" src="https://zhuji.jb51.net/uploads/img/202305/bf48f72f4ca5fe3681f2ff1bbd5371b5.jpg"></p>
<p>
6、之后,因为Ubuntu是一个非常安全的系统,所以我们需要授权,我们这里输入密码之后,点击“<span><strong>授权</strong></span>”。</p>
<p align="center">
<img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" alt="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" src="https://zhuji.jb51.net/uploads/img/202305/13ea89488de332edd707a5c6e2f12dbd.jpg"></p>
<p>
7、授权之后,我们再点击下方的“<strong>关</strong>闭”即可。</p>
<p align="center">
<img style="max-width:100%!important;height:auto!important;"title="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" alt="Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧" src="https://zhuji.jb51.net/uploads/img/202305/9b1b9087ebbc2c5e93e38385982587fd.jpg"></p>
<p>
以上就是Ubuntu系统不升级指定软件的技巧,,希望大家喜欢,请继续关注。</p>
頁:
[1]