---
title: 更新錯誤
description: 為什麼 NexCMP 更新會失敗 — 授權權限、下載驗證、簽章、重新啟動 — 以及如何復原或回復。
url: https://nexcmp.com/zh-tw/docs/troubleshooting/update-errors/
applies_to: NexCMP 1.6.1
updated: 2026-11-02
---

# 更新錯誤 {#update-errors}

> **管理員位置：**System › Admin › License & updates（`/license`）

更新說明請參閱 [Updating NexCMP](https://nexcmp.com/zh-tw/docs/getting-started/updating/)。當更新卡片或 `sudo nexcmp update` 回報錯誤時：

| 訊息 | 原因 | 修正方式 |
|---|---|---|
| `update plan expired — renew on the license page to receive this feature release` | 您的「更新期限」早於發布日期。安全性修修正仍會提供；功能更新則否 | 請至 [nexcmp.com/licenses](https://nexcmp.com/licenses) 進行續約（NexCMP Free 為每年 $99），然後再次檢查。軟體在此期間會繼續運行。 |
| `sha256 mismatch (downloaded …, expected …)` | 下載受損或遭到篡改 | 請重試。若持續發生，請檢查路徑上的代理伺服器。 |
| `downgrade/same version rejected: X is not newer than Y` | 所選版本並不比目前執行的版本新 | 無需動作 — 您已是最新版本。 |
| `extraction failed / main binary missing` | 壓縮檔受損或磁碟空間已滿 | 請檢查 `df -h`；然後重試。 |
| `systemctl restart failed` | 取代二進位檔後服務無法重新啟動 | `journalctl -u nexcmp -n 80`；先前的二進位檔會保留為 `/opt/nexcmp/bin/nexcmp.bak` — 請參閱下方的回復說明。 |
| 連線更新伺服器時發生伺服器錯誤 | 找不到通往 `nexcmp.com` 的路由或授權權杖已過期 | 請檢查對外 HTTPS 連線；按一下授權卡片上的 **Check now**。 |

## 回復 {#roll-back}

如果新版本運作異常：

```bash
sudo systemctl stop nexcmp-vmd nexcmp
sudo cp /opt/nexcmp/bin/nexcmp.bak /opt/nexcmp/bin/nexcmp
echo <previous-version> | sudo tee /opt/nexcmp/VERSION
sudo systemctl start nexcmp nexcmp-vmd
```

若資料庫遷移已執行，請一併還原您在更新前所建立的 [備份](https://nexcmp.com/zh-tw/docs/getting-started/backup-and-restore/)。

## `sudo nexcmp update` 顯示找不到安裝程式 {#sudo-nexcmp-update-says-it-cannot-find-the-installer}

`nexcmp update` 會執行內嵌於已安裝版本中的安裝程式（`/opt/nexcmp/releases/<version>/share/install.sh`）。如果該檔案遺失，請再次從您的授權頁面執行安裝指令。
