oven-sh/bun · error
Unsupported distro: ${distro}
Error message
Unsupported distro: ${distro} What it means
Error "Unsupported distro: ${distro}" thrown in oven-sh/bun.
Source
Thrown at scripts/utils.mjs:1577
* @returns {string}
*/
export function getUsernameForDistro(distro) {
if (/windows/i.test(distro)) {
return "administrator";
}
if (/alpine|centos/i.test(distro)) {
return "root";
}
if (/debian/i.test(distro)) {
return "admin";
}
if (/ubuntu/i.test(distro)) {
return "ubuntu";
}
if (/amazon|amzn|al\d+|rhel/i.test(distro)) {
return "ec2-user";
}
throw new Error(`Unsupported distro: ${distro}`);
}
/**
* @returns {string | undefined}
*/
export function getDistro() {
if (isMacOS) {
return "macOS";
}
if (isLinux) {
const alpinePath = "/etc/alpine-release";
if (existsSync(alpinePath)) {
return "alpine";
}
const releasePath = "/etc/os-release";
if (existsSync(releasePath)) {View on GitHub (pinned to 8c5296ac45)
When it happens
Trigger: Thrown at scripts/utils.mjs:1577 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/7c5a11b119dd8ebd.
Report an issue: GitHub.