Update the CodeDeploy agent on Ubuntu Server
To configure automatic, scheduled updates of the CodeDeploy agent using AWS Systems Manager, follow the steps in Install the CodeDeploy agent with AWS Systems Manager.
If you want to force an update of the CodeDeploy agent, sign in to the instance, and run the following command:
sudo /opt/codedeploy-agent/bin/install auto