Skip to content

fix(setup): probe the distro's cpupower package name so Debian installs don't fail - #337

Merged
VijitSingh97 merged 1 commit into
developfrom
fix/327-debian-deps
Aug 2, 2026
Merged

fix(setup): probe the distro's cpupower package name so Debian installs don't fail#337
VijitSingh97 merged 1 commit into
developfrom
fix/327-debian-deps

Conversation

@VijitSingh97

Copy link
Copy Markdown
Contributor

Closes #327

Problem

_detect_pkg_manager's apt branch listed linux-tools-common unconditionally. That package is Ubuntu-only — Debian ships cpupower as linux-cpupower — and apt's install transaction is all-or-nothing, so the one unknown name failed the ENTIRE dependency install on Debian: git, build-essential and cmake never arrived either (E: Unable to locate package linux-tools-common). Found on Debian trixie during the pithead#797 R0 recon, but it breaks plain DIY installs on Debian too.

Fix

Probe with apt-cache show — the same guard the kernel-versioned linux-tools-$(uname -r) package two lines down already uses — and add only the name this distro actually ships: linux-tools-common (Ubuntu) or linux-cpupower (Debian). When neither exists, warn and carry on: cpupower is a tuning aid, never worth losing the compiler toolchain over.

Tests

bash tests/run.sh: 1612 passed, 0 failed. shellcheck -S warning rigforge.sh: clean.

🤖 Generated with Claude Code

…ls don't fail (#327)

The apt dependency list named linux-tools-common unconditionally, but that
package is Ubuntu-only — Debian ships cpupower as linux-cpupower — and apt's
install transaction is all-or-nothing, so the one unknown name failed the
ENTIRE dependency install: git, build-essential and cmake never arrived
either. Probe with apt-cache show (the same guard the kernel-versioned
linux-tools-$(uname -r) package already had) and add whichever name the
distro actually ships; when neither exists, warn and carry on — cpupower is
a tuning aid, never worth losing the compiler toolchain over.

Closes #327

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@VijitSingh97
VijitSingh97 merged commit 5ee5af9 into develop Aug 2, 2026
9 checks passed
@VijitSingh97
VijitSingh97 deleted the fix/327-debian-deps branch August 2, 2026 15:10
VijitSingh97 added a commit that referenced this pull request Aug 2, 2026
…ls don't fail (#327) (#337)

The apt dependency list named linux-tools-common unconditionally, but that
package is Ubuntu-only — Debian ships cpupower as linux-cpupower — and apt's
install transaction is all-or-nothing, so the one unknown name failed the
ENTIRE dependency install: git, build-essential and cmake never arrived
either. Probe with apt-cache show (the same guard the kernel-versioned
linux-tools-$(uname -r) package already had) and add whichever name the
distro actually ships; when neither exists, warn and carry on — cpupower is
a tuning aid, never worth losing the compiler toolchain over.

Closes #327

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debian: dependency install fails — linux-tools-common does not exist (apt transaction is all-or-nothing)

1 participant