Can’t upgrade Nextcloud using command line…Attached is a screenshot of the shell with error.
Try sudo -u www-data php occ and make sure you are on the Nextcloud webroot directory
Which version are you running currently?
So, the message tells you it is not possible to update from v25 to v27 directly.
v25 → v26 → v27
Download the next major version, not the latest one.