why is /etc/debian_version wrong?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
MellowTigger
Level 1
Level 1
Posts: 49
Joined: Fri Jul 25, 2014 5:52 pm
Location: Minneapolis, MN, USA
Contact:

why is /etc/debian_version wrong?

Post by MellowTigger »

I got a VPN client via work, and I tried to run the installer for the Debian/Ubuntu version on my home Linux Mint machine. It fails. I found where in the script it is failing. It's trying to check the Debian version number using this command (piped to other commands to strip out the actual major version number):

Code: Select all

cat /etc/debian_version
But it returns "stretch/sid", which obviously isn't any kind of Debian version.

I thought Linux Mint was based on Ubuntu which was based on Debian. So... why doesn't this work? I tried a few of the alternatives described here, but they also don't return any Debian-specific information.
https://linuxconfig.org/check-what-debi ... nux-system

I'm using Linux Mint 18.3, which I thought was a stable release? Apparently that text result is supposed to mean that I'm using a test version? What gives? I'm very confused and don't know how to tease this script into working for me.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: why is /etc/debian_version wrong?

Post by Hoser Rob »

Which VPN client?

BTW Stretch/sid is perfectly valid, at least on a Debian system. Are you sure the package was for Ubuntu?
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
User avatar
MellowTigger
Level 1
Level 1
Posts: 49
Joined: Fri Jul 25, 2014 5:52 pm
Location: Minneapolis, MN, USA
Contact:

Re: why is /etc/debian_version wrong?

Post by MellowTigger »

It shouldn't matter what VPN client in order for that command to work?

But, yes, the filename name specifically says "ubuntu-debian", and the instructions specifically mention Debian/Ubuntu too.
https://kb.pulsesecure.net/articles/Pul ... le/KB40126
User avatar
MellowTigger
Level 1
Level 1
Posts: 49
Joined: Fri Jul 25, 2014 5:52 pm
Location: Minneapolis, MN, USA
Contact:

Re: why is /etc/debian_version wrong?

Post by MellowTigger »

p.s. So I guess my followup question is... how do I tell from within my Linux Mint environment which major Debian version my system is currently based on? I'm willing to manually alter the install script to use that method instead of its current one, but I don't know how to retrieve that major version number? Some of those other methods in that article I linked in the original post also do not return Debian-specific information.

But my original question remains, shouldn't "/etc/debian_version" be the canonical (joke) source of that information, since "debian" is right there in the filename?
User avatar
Pjotr
Level 24
Level 24
Posts: 20129
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: why is /etc/debian_version wrong?

Post by Pjotr »

Both stretch and sid are official Debian code names. Check what they pointed to in January, 2016 and you should have your answer.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Locked

Return to “Other topics”