

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 更新 Ubuntu Server 上的 CodeDeploy 代理程式
<a name="codedeploy-agent-operations-update-ubuntu"></a>

若要使用 設定 CodeDeploy 代理程式的自動排程更新 AWS Systems Manager，請遵循[使用 安裝 CodeDeploy 代理程式 AWS Systems Manager](https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install-ssm.html)中的步驟。

對於 2.0.x 版和更新版本，若要強制更新，請執行：

```
sudo /opt/codedeploy-agent/bin/codedeploy-agent update
```

或者，重新下載並執行區域`latestv2/install`指令碼。如需安裝指示，請參閱[安裝適用於 Ubuntu Server 的 CodeDeploy 代理程式](codedeploy-agent-operations-install-ubuntu.md)。

對於 1.8.x 版和更早版本，若要強制更新，請執行：

```
sudo /opt/codedeploy-agent/bin/install auto
```

**重要**  
目前沒有從 1.8.x 版到 2.0.0 版的自動更新路徑。若要升級至 2.0.0，請手動執行區域`latestv2/install`指令碼。如需說明，請參閱[安裝適用於 Ubuntu Server 的 CodeDeploy 代理程式](codedeploy-agent-operations-install-ubuntu.md)。