# 错误：升级失败：另一个操作（安装/升级/回滚）正在进行中

- **ID:** `kubernetes/helm-upgrade-failed-dependency`
- **领域:** kubernetes
- **类别:** build_error
- **验证级别:** ai_generated
- **修复率:** 82%

## 根因

Helm 发布版本由于之前的安装、升级或回滚操作未完成（通常由于崩溃或超时）而处于待处理状态。

## 解决方案

1. ```
   Force unlock the release: 'helm rollback <release> <revision> --force' to rollback to a previous revision, which clears the pending state.
   ```
2. ```
   Manually delete the pending release secret: 'kubectl delete secret -n <namespace> sh.helm.release.v1.<release>.v<revision>' then retry the upgrade.
   ```

## 无效尝试

- **Run the same upgrade command again with --atomic flag** — The pending lock isn't released by retrying; the operation still fails with the same error. (90% 失败率)
- **Delete the Helm release and reinstall** — Deleting the release loses all release history and secrets; it's destructive and may cause data loss. (50% 失败率)
