wimpysworld / deb-get

apt-get for .debs published via GitHub or direct download 📦
MIT License
1.27k stars 124 forks source link

Detecting debian bookworm insetad of sid #674

Open bompus opened 1 year ago

bompus commented 1 year ago

I came across this issue today, after using the official debian-installer instructions and then switching to unstable (sid) using apt full-upgrade.

UPSTREAM_CODENAME=$(cut -d / -f 1 /etc/debian_version)

For me, /etc/debian_version contains bookworm/sid, so the script is detecting this as bookworm due to the cut that happens. You might need to carve out a condition that if it only contains sid or ends with /sid, then it is indeed sid, otherwise fallback to the other detection.

System information

/etc/debian_version

bookworm/sid

/etc/os-release

PRETTY_NAME="Debian GNU/Linux bookworm/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

/etc/lsb-release

cat: /etc/lsb-release: No such file or directory

lsb_release -a

Distributor ID: Debian
Description:    Debian GNU/Linux bookworm/sid
Release:    n/a
Codename:   bookworm

deb-get version

0.3.6

github-actions[bot] commented 1 year ago

Hello there 👋 Thanks for submitting your first issue to the deb-get project 🐛 We'll try and take a look at your issue soon ⏲

In the meantime you might want to join the Wimpys World Discord 🗣 where we have a large community of Linux 🐧 enthusiasts and passionate open source developers 🧑‍💻

You might also be interested in following Wimpys World Twitch 📡 channel where Wimpy streams let's code video, including this project, several times a week. A back catalog of past live stream and other Linux related content is available on Wimpys World YouTube 📺 channel.

iacchi commented 10 months ago

I'm having the same issue, with the difference that I installed Debian starting from the Testing netinst image, so my system is trixie/sid. Due to this I cannot configure deb-get during installation or run it at all, because I get the error "ERROR! Debian Trixie is not supported because it is not derived from a supported Debian or Ubuntu release."