[BUG] Claude Code runs the game Pacman in /usr/games/pacman on PopOS

Resolved 💬 3 comments Opened Jan 29, 2026 by delicious-pancakes Closed Jan 29, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Claude Code is running pacman -Qo to check which package owns the binary file. That's an Arch Linux command to query package ownership.

But on Pop!_OS (Ubuntu-based), where pacman isn't the package manager - it's the Pac-Man game at

/usr/games/pacman

So Claude Code thinks it's querying package info, but it's actually launching the game with garbage arguments, which the game ignores and just runs.

This is a bug in Claude Code - it assumes pacman = Arch package manager without checking the distro

What Should Happen?

Claude should use the correct package manager

Error Messages/Logs

Steps to Reproduce

Launch claude code

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

v2.1.23

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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