Quoting from the third link in your question:
Refresh hold
The new hold feature allows system administrators and end users to
stop or postpone their snap updates for as long as necessary.
Searching around a bit, The snapd roadmap indicates that the refresh --hold
feature was added in version 2.58. Meanwhile, Ubuntu 22.04 currently provides 2.56 at the latest:
$ apt policy snapd
snapd:
Installed: 2.56.2+22.04ubuntu1
Candidate: 2.56.2+22.04ubuntu1
Version table:
*** 2.56.2+22.04ubuntu1 500
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.55.3+22.04 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
So, your version simply doesn't support the feature.
In Ubuntu 22.10:
$ apt policy snapd
snapd:
Installed: 2.57.5+22.10ubuntu0.1
Candidate: 2.57.5+22.10ubuntu0.1
Version table:
*** 2.57.5+22.10ubuntu0.1 500
500 http://archive.ubuntu.com/ubuntu kinetic-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu kinetic-security/main amd64 Packages
100 /var/lib/dpkg/status
2.57.4+22.10ubuntu1 500
500 http://archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
So, even Ubuntu 22.10 does not have this option.
--hold
option insnap
AFAIK. Did you look at the man documentation? – FedKad Dec 21 '22 at 15:38--hold
option. But if you look at the linked thread there are answers there suggesting it's use. – Daniel Dec 21 '22 at 15:57$ snap --version
). Strange that others are mentioning the use of--hold
in relation to Ubuntu. Maybe they're using Ubuntu 22.10 or another distro but still dropping comments on AskUbuntu. – Daniel Dec 21 '22 at 19:32--hold
isn't working in 22.04. – Daniel Dec 21 '22 at 19:36snap --version
at Ubuntu 22.10 issnap 2.57.6 snapd 2.57.6
. – FedKad Dec 22 '22 at 09:55