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 please read how to get help
Post Reply
MellowTigger
Level 1
Level 1
Posts: 14
Joined: Fri Jul 25, 2014 5:52 pm

why is /etc/debian_version wrong?

Post by MellowTigger » Wed Dec 06, 2017 11:10 pm

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.

Hoser Rob
Level 10
Level 10
Posts: 3394
Joined: Sat Dec 15, 2012 8:57 am

Re: why is /etc/debian_version wrong?

Post by Hoser Rob » Thu Dec 07, 2017 9:46 am

Which VPN client?

BTW Stretch/sid is perfectly valid, at least on a Debian system. Are you sure the package was for Ubuntu?

MellowTigger
Level 1
Level 1
Posts: 14
Joined: Fri Jul 25, 2014 5:52 pm

Re: why is /etc/debian_version wrong?

Post by MellowTigger » Thu Dec 07, 2017 11:10 am

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

MellowTigger
Level 1
Level 1
Posts: 14
Joined: Fri Jul 25, 2014 5:52 pm

Re: why is /etc/debian_version wrong?

Post by MellowTigger » Thu Dec 07, 2017 11:19 am

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 20
Level 20
Posts: 10055
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: why is /etc/debian_version wrong?

Post by Pjotr » Thu Dec 07, 2017 11:56 am

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 18.3 Sylvia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Post Reply

Return to “Other topics”