[BUG] AutoUpdater calls pacman on Ubuntu, launching Pacman game instead
Bug Report: AutoUpdater calls pacman on Ubuntu, launching Pacman game instead
Summary
Claude Code's AutoUpdater attempts to detect installation method by calling pacman -Qo on all Linux systems, including Ubuntu/Debian. On Ubuntu systems with the pacman game installed, this launches the terminal-based Pacman game for ~5 seconds during startup instead of querying package information.
Environment
- Claude Code Version: 2.1.20
- OS: Ubuntu (Linux 6.8.0-90-generic)
- Installation Method: Native installer
- Package with game:
pacmangame package (/usr/games/pacman)
Steps to Reproduce
- Install Claude Code using the native installer on Ubuntu
- Have the
pacmangame installed:sudo apt install pacman - Launch Claude Code:
claude - Observe Pacman game briefly launches and exits during startup
Expected Behavior
- On Debian/Ubuntu systems, Claude Code should use
dpkg -Sordpkg-queryto query package ownership - No games or unrelated binaries should be executed during startup
- Package manager detection should be OS-aware
Actual Behavior
- AutoUpdater calls
pacman -Qo /home/user/.local/share/claude/versions/2.1.20 - Since Ubuntu uses
apt/dpkg(not Arch'spacman),/usr/bin/pacmandoesn't exist - Shell finds
/usr/games/pacman(the game) in PATH instead - Pacman game launches briefly and exits
Root Cause
From debug logs (claude --debug):
2026-01-27T20:27:22.846Z [DEBUG] AutoUpdaterWrapper: Installation type: native
2026-01-27T20:27:24.536Z [DEBUG] Checking for native installer update to version 2.1.20
2026-01-27T20:27:24.537Z [DEBUG] Found 2.1.20 at /home/user/.local/bin/claude, skipping install
Process monitoring shows:
1412820 1412218 pacman -Qo /home/user/.local/share/claude/versions/2.1.20
Where PID 1412218 is the claude process.
The AutoUpdater is hardcoded to call pacman -Qo regardless of the Linux distribution.
Evidence
Process timeline during startup:
[01:57:16.898] Superpowers session-start hook executed
[01:57:17.488] pacman -Qo spawned by claude process
[01:57:17.488] ripgrep initialization
[01:57:17.488] statusline script execution
PATH resolution:
$ type pacman
pacman is /usr/games/pacman
$ which pacman
/usr/games/pacman
Suggested Fix
The AutoUpdater should detect the OS/distribution before attempting package queries:
# Detect package manager based on OS
if command -v dpkg &> /dev/null; then
# Debian/Ubuntu
dpkg -S /path/to/binary
elif command -v rpm &> /dev/null; then
# RHEL/Fedora
rpm -qf /path/to/binary
elif command -v pacman &> /dev/null && [ -f /etc/arch-release ]; then
# Arch Linux (verify it's actually Arch)
pacman -Qo /path/to/binary
fi
Or use absolute paths:
/usr/bin/pacman -Qo /path/to/binary # Not /usr/games/pacman
Workaround
Users can remove the conflicting game:
sudo apt remove pacman
Or create a shell alias to prevent the game from running:
alias pacman='echo "pacman not available on this system"'
Related Issues
- #13243 - Feature request for system package manager support
- #15910 - Similar issue where KDE kcalc (Calculator) launches (wrong binary being executed)
Additional Context
This issue affects any Ubuntu/Debian user who has the pacman game installed (which is in the default Ubuntu repositories). The AutoUpdater should be distribution-aware when querying package information.
---
Impact: Medium - Causes confusion and minor startup delay, but doesn't break functionality
Frequency: Every Claude Code startup on affected systems
Platform: Linux (Ubuntu/Debian with pacman game installed)
6 Comments
Found 1 possible duplicate issue:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
That linked ticket is not related.
Instead https://github.com/anthropics/claude-code/issues/21216 is a better match, but that ticket was closed with workaround by the author. The bug is genuine and would require a fix, to avoid confusion for users having claude in Ubuntu.
Well that's not correct! We'll get this fixed
This issue was introduced in v2.1.20, consider downgrading to 2.1.19 for the meantime
you should stop vibe coding claude code and only vibe reviewing it... thats really unprofessional and i think about canceling my max and api accounts.
This should be resolved in 2.1.30+
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.