claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Auto-update fails for claude-code on Ubuntu 25.04

Open mattgodbolt opened this issue 7 months ago • 2 comments

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.

mattgodbolt avatar Jun 21 '25 18:06 mattgodbolt

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.

Josemboa avatar Jun 23 '25 07:06 Josemboa

I had the same issue, re-install Node JS as per the Claude instructions..problem went away for me. Try that

dgtise25 avatar Jun 23 '25 20:06 dgtise25

For me it was fixed by running the /migrate-installer command

etrupja avatar Aug 01 '25 13:08 etrupja

I am facing the same issue. I tried the /migrate-installer but it created new problem:

Image

I solved it by logging out and reinstalling. This needs to be resolved

jyotiprajapati98 avatar Aug 06 '25 08:08 jyotiprajapati98

I am facing the same issue. I tried the /migrate-installer but it created new problem:

Image 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.

Paulitos avatar Aug 11 '25 19:08 Paulitos