Upgrade to latest version

I think when I moved from ownCloud to nextCloud I made mistakes as I’m getting popups re. versions of ownCloud. (see attached). I’m sure , though, that I changed to nextCloud about a year ago as I have the original ownCloud backup timestamped.

How can I upgrade to the latest version of nextCloud?