I had the same sort of issues with 2.2.1:
$ juju upgrade-juju no prepackaged tools available, using local agent binary 2.2.1.1 ERROR no matching agent binaries available
Fixed with providing --agent-version=2.2.1 but was weird.
I had the same sort of issues with 2.2.1:
$ juju upgrade-juju
no prepackaged tools available, using local agent binary 2.2.1.1
ERROR no matching agent binaries available
Fixed with providing --agent- version= 2.2.1 but was weird.