Open CubeBag opened 1 week ago
Hey, thanks for bringing this up. This has been on my list for some time. Apologies for the trouble. I can't recall if I tested this already or not, but what does the following print for you?
. /etc/os-release
echo "Distro: $ID"
Edit: remembered my concern ... https://www.linux.org/docs/man5/os-release.html states that 'If not set, defaults to "ID=linux".' That and for distros like Ubuntu the value is not, say, 'debain'. In which case we'd also have to parse ID_LIKE
per https://www.man7.org/linux/man-pages/man5/os-release.5.html. Hmm....
What are the steps to reproduce this issue?
sudo dnf install apt-utils
What happens?
Installer incorrectly recognizes the computer as Debian-based (due to the presence of the
apt
command), attempts to install all dependencies withapt
, dies.What were you expecting to happen?
Installer script should realize that the host machine is actually Red Hat based (Fedora) and install the dependencies with
dnf
instead.Paste any relevant logs, error output, etc.
Additional context
Line 325 of
install-theos
(the installer script) performs the check for if the commandapt
exists. I installedapt-utils
since it provides theapt-ftparchive
command (useful for messing with debs) but this package also includesapt
which causes the Line 325 check to mis-identify this computer as Debian.I confirmed that this is actually the root cause of the problem by inserting
echo $DISTRO
at line 336, and the installer script will proceed to outputdebian
to the screen.I think there ought to be a more robust method for determining the primary package manager that is meant to be used on the current device than simply seeing which command exists.
OS: Fedora Linux Asahi Remix 40 (KDE Plasma) aarch64 Host: Apple MacBook Pro (16-inch, M1 Max, 2021) Kernel: 6.11.8-400.asahi.fc40.aarch64+16k
What OS are you seeing the problem on?
Linux/WSL
What OS version does it have installed?
Fedora Linux Asahi Remix 40
What toolchain and version are you using?
N/A
Which SDK version are you using?
N/A
What OS is your client device running?
iOS
What OS version does it have installed?
N/A
Which device model is it?
N/A
Which jailbreak is it using (if relevant)?
No response