Cannot upgrade "seems to be managed by a package manager" #2068

Closed
opened 2026-02-16 17:34:01 -05:00 by yindo · 4 comments
Owner

Originally created by @einarpersson on GitHub (Oct 13, 2025).

Originally assigned to: @rekram1-node on GitHub.

I installed opencode with XDG_BIN_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash. As described here it installed in the wrong location, so I moved it to $HOME/.local/bin myself.

Now when I try to upgrade by opencode upgrade I get


  █▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
  █░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
  ▀▀▀▀ █▀▀▀ ▀▀▀ ▀  ▀ ▀▀▀ ▀▀▀▀ ▀▀▀  ▀▀▀

┌  Upgrade
│
■  opencode is installed to /home/einar/.local/bin/opencode and seems to be managed by a package manager
│
└  Done

This is wrong. I used the installation script, not a package manager.

Originally created by @einarpersson on GitHub (Oct 13, 2025). Originally assigned to: @rekram1-node on GitHub. I installed opencode with `XDG_BIN_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash`. As described [here](https://github.com/sst/opencode/issues/3097) it installed in the wrong location, so I moved it to `$HOME/.local/bin` myself. Now when I try to upgrade by `opencode upgrade` I get ``` █▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀ █░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀ ┌ Upgrade │ ■ opencode is installed to /home/einar/.local/bin/opencode and seems to be managed by a package manager │ └ Done ``` This is wrong. I used the installation script, not a package manager.
yindo closed this issue 2026-02-16 17:34:01 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 13, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3097: Wrong installation path - Same user reported XDG_BIN_DIR installation issue

The upgrade error you're seeing is likely a direct consequence of the installation path bug described in #3097. The upgrade mechanism incorrectly detects the manually moved binary as being managed by a package manager.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 13, 2025): This issue might be a duplicate of existing issues. Please check: - #3097: Wrong installation path - Same user reported XDG_BIN_DIR installation issue The upgrade error you're seeing is likely a direct consequence of the installation path bug described in #3097. The upgrade mechanism incorrectly detects the manually moved binary as being managed by a package manager. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 13, 2025):

Hm yeah our logic needs to be updated there...

@rekram1-node commented on GitHub (Oct 13, 2025): Hm yeah our logic needs to be updated there...
Author
Owner

@rekram1-node commented on GitHub (Oct 13, 2025):

This should be an easy fix tho

@rekram1-node commented on GitHub (Oct 13, 2025): This should be an easy fix tho
Author
Owner

@rekram1-node commented on GitHub (Oct 14, 2025):

will be fixed in next release, Ill fix that other issue today probably too

@rekram1-node commented on GitHub (Oct 14, 2025): will be fixed in next release, Ill fix that other issue today probably too
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2068