[BUG] Claude Code launches Pacman game on Ubuntu when checking installation method

Resolved 💬 2 comments Opened Jan 27, 2026 by Reworr-R Closed Jan 27, 2026

Description

On Ubuntu/Debian systems with the pacman game package installed (https://packages.ubuntu.com/noble/pacman / https://manpages.ubuntu.com/manpages/resolute/en/man6/pacman.6.html), Claude Code accidentally launches the game instead of detecting the Arch Linux package manager.

Steps to Reproduce

  1. Install the pacman game on Ubuntu: sudo apt install pacman
  2. Run claude
  3. A Pacman game window opens

Root Cause

Claude Code runs pacman -Qo <binary_path> to detect if it was installed via the Arch Linux package manager. However, on Ubuntu with the game installed, /usr/games/pacman (the arcade game) is found in PATH instead.

The game receives -Qo /path/to/claude as arguments, ignores them, and launches normally.

Suggested Fix

Check if running on Arch-based distro before calling pacman.

Environment

  • OS: Ubuntu 24.04
  • Claude Code: 2.1.20
  • Installed packages: pacman (game, version 10-19)

---

UPD: This is a rare edge case. I'll just remove the game myself.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗