Can't upgrade nextcloud using sudo snap refresh nextcloud

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 22.2.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): 8.0.11

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):N

Steps to replicate it:

  1. set snap proxy to get access to enternet
  2. sudo snap refresh nextcloud
  3. get full download of new version nextcloud(22.2.3)
    4.get failed error

error: cannot perform the following tasks:

  • Run pre-refresh hook of “nextcloud” snap if present (run hook “pre-refresh”: Unable to refresh: seems to be down, please try again later)