Amp tools does not upgrade

OS Name/Version: Ubuntu 20.4

Product Name/Version: (Always use the full version number - not ‘Latest’)
AMP Instance Manager v2.4.1.2 built 21/12/2022 17:55
AMP Release “Callisto”

v2.5.1, built 06/07/2024 22:13

Problem Description:
I am on 2.5.1 but the tools/ADS is still on 2.4.1.2 and will not upgrade. The upgrade steps provided How to update AMP to the latest version do not work.

Steps to reproduce:

$ ampinstmgr upgrade ADS
[Info] AMP Instance Manager v2.4.1.2 built 21/12/2022 17:55
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Stopping Instance: 'ADS01'
[Info] Stopping instance ADS01...
[Info] Requesting soft-stop...
[Info] Waiting for instance to stop...
[Info] Instance was shut down gracefully.
[Info] Instance ADS01 has stopped.
[Info] Upgrading instance ADS01
[Info] Using cached archive: /home/amp/.ampdata/instances/AMPCache-Mainline-25012.zip
[Info] Upgrade successful
[Info] Waiting for AMP instance to start...
[Notice] AMP instance ADS01 is now running.
$ ^[[A^[[A^C
$ ampinstmgr -V
[Info] AMP Instance Manager v2.4.1.2 built 21/12/2022 17:55
$ ampinstmgr upgrade ADS
[Info] AMP Instance Manager v2.4.1.2 built 21/12/2022 17:55
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Stopping Instance: 'ADS01'
[Info] Stopping instance ADS01...
[Info] Requesting soft-stop...
[Info] Waiting for instance to stop...
[Info] Instance was shut down gracefully.
[Info] Instance ADS01 has stopped.
[Info] Upgrading instance ADS01
[Info] No cache exists for Mainline-25012
[Info] Downloading AMP from https://cubecoders.com/Downloads/Release/AMP_Latest_Release.zip...

[Info] Complete
[Info] Upgrade successful
[Info] Waiting for AMP instance to start...
[Notice] AMP instance ADS01 is now running.
$ ampinstmgr -V
[Info] AMP Instance Manager v2.4.1.2 built 21/12/2022 17:55
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV

Actions taken to resolve so far:
I have done all steps in link provided and removed cached version “/home/amp/.ampdata/instances/AMPCache-Mainline-25012.zip” with no luck

That command only updates instances, not the system tools (two different things)

Run bash <(wget -qO- getamp.sh) addRepo as root
Then run apt update && apt upgrade ampinstmgr

Then after that try and update the instance
(Unless I’m misunderstanding ofc)

That did it, thanks!. I am guessing the repo that I had on the system was not correct. Did not know about the “bash <(wget -qO- getamp.sh) addRepo” command. Thanks again

Yeah for sure! The repo key expired awhile back, so some old installs get a bit stuck