[BUG] Auto-update fails for claude-code on Ubuntu 25.04
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [x] Other: Ubuntu 25.04
- Claude CLI version: 1.0.31
- Operating System: Ubuntu 25.04
- Terminal: Gnome terminal, vscode, intellij
Bug Description
Auto-update stopped working as of around 1.0.30.
$ claude doctor
⚠ Configuration inconsistency detected
Running from local installation but config status is 'not_configured'. Expected status: 'migrated'
✓ Local installation: OK
You are running Claude Code from your local installation (~/.claude/local). This installation method does not depend on global npm permissions.
If auto-updates aren't working, you can force update with:
cd ~/.claude/local && npm update @anthropic-ai/claude-code
Press Enter to continue…
Claude doctor gives me this. This may be linked to #2417 but also #1676 which still happens and is driving me quite quite bonkers.
I'm using Claude Code on WSL 2 (Ubuntu). A faced a similar issue regarding auto-update, but when I start Claude Code using sudo claude it is able to auto update. For my case I think it was a permission issue, that is solved using sudo. I don't know if it is the best approach in terms of Security.
I had the same issue, re-install Node JS as per the Claude instructions..problem went away for me. Try that
For me it was fixed by running the /migrate-installer command
I am facing the same issue. I tried the /migrate-installer but it created new problem:
I solved it by logging out and reinstalling. This needs to be resolved
I am facing the same issue. I tried the /migrate-installer but it created new problem:
I solved it by logging out and reinstalling. This needs to be resolved
Right, they certainly should. You didn't need to reinstall. When doing the /migrate-installer you then sudo npm uninstall -g --force @anthropic-ai/claude-code to uninstall the duplicate global installation and keep your working local one.
I solved it by logging out and reinstalling. This needs to be resolved