blog/_posts/Linux/ubuntu/update-snap.md
2023-10-24 10:54:34 +08:00

43 lines
889 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Ubuntu 22.04.1 snap-store自身更新&禁止自动更新
date: 2022-10-05
tags: Ubuntu
---
## snap-store自身更新
目前开发的笔记本使用的是ubuntu22.04.1 版本默认内置snap商店无法完成自身更新所以小记一下解决办法。
解决办法如下:
```shell
# root 账号无需加上sudo
sudo killall snap-store
sudo snap refresh snap-store
```
<!--more-->
## 禁止自动更新
> 目前snap 稳定版本通道已经支持禁止自动更新如果下述命令不起作用或报错请先同上述进行snap-store自身更新
### 全部自动禁止更新
```sh
snap refresh --hold
```
### 禁用某个软件更新比如火狐firefox
```sh
snap refresh --hold firefox
```
### 通过 --unhold 参数重新启用自动更新
```sh
snap refresh --unhold
# 同理恢复某个软件更新,如火狐
snap refresh --unhold firefox
```