Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[BUG] apm self-update fails

Open Beginner friendly
#3,268 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
61/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
cli

Research direction

Start by tracing the apm self-update flow to the installer step that rejects /usr/local/lib/apm as not writable, searchable, or owned by the current user. Check the existing tests for self-update and installer permissions, then reproduce the failure with an existing bundle owned by another user. Done means self-update handles this installation state correctly and the relevant tests pass.

Written by the indexing model from the issue text.

Description

type/bug

Describe the bug

The self-update from 0.28.0 fails

apm self-update
[i] Current version: 0.28.0
[>] Checking for updates...
[*] Latest version available: 0.33.0
[>] Downloading and installing update...
[i] Installer release: v0.33.0
[*] Running installer...

+--------------------------------------------------------------+
|                         APM Installer                        |
|              The NPM for AI-Native Development               |
+--------------------------------------------------------------+

Detected platform: darwin-arm64
Target binary: apm-darwin-arm64.tar.gz
Version: v0.33.0
Download URL: https://github.com/microsoft/apm/releases/download/v0.33.0/apm-darwin-arm64.tar.gz
Fetching archive checksum...
Downloading APM...
################################################################################################################################################################################# 100.0%
[+] Download successful
Verifying archive checksum...
[+] Archive checksum verified
Extracting binary...
[+] Extraction successful
Testing binary...
[+] Binary test successful
Installing APM CLI to /usr/local/bin...
[x] Existing bundle /usr/local/lib/apm is not writable, searchable, or owned by this user. Ask its owner to update it; no files were removed.
[x] Installation failed - see output above for details

To Reproduce
Steps to reproduce the behavior:

  1. Run apm self-update
  2. Watch it fails
Dominant language
Python
Stars
4k
Forks
393
Avg merge
4d 12h
Merged PRs (30d)
70

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/apm

All issues in microsoft/apm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.