Page 1 of 1

Identifying OS fully

Posted: Sat Nov 18, 2017 6:47 am
by PlanB
I've got a version of Jessie lite that responds to cat /etc/os-release with
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"

Trouble is it wouldn't let me apt-get install libopencv-dev or libusb-1.0-0-dev until I overhauled it with
apt-get autoremove && sudo apt-get -f install && sudo apt-get update && sudo apt-get upgrade -y

Thing is the overhauled version still identifies the same as before. Is there some other cmd to pin down different variants of the OS? I'm troubled that sd cards with different behaviours can't be labeled in some way.

Re: Identifying OS fully

Posted: Sat Nov 18, 2017 8:47 am
by ghans

Code: Select all

cat /boot/issue.txt
lsb_release -a

Re: Identifying OS fully

Posted: Sat Nov 18, 2017 10:52 am
by PlanB
Same result for both

Re: Identifying OS fully

Posted: Sat Nov 18, 2017 10:57 am
by ghans
Please post the full output of all three commands mentioned in this thread.

ghans

Re: Identifying OS fully

Posted: Sat Nov 18, 2017 1:09 pm
by PlanB
root@raspberrypi:/home/pi# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

root@raspberrypi:/home/pi# cat /boot/issue.txt
Raspberry Pi reference 2016-05-27
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 5add7283d4db4eaad785de41a6750e909e5a04cf, stage2

root@raspberrypi:/home/pi# lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie

Re: Identifying OS fully

Posted: Fri Nov 24, 2017 1:46 pm
by topguy
PlanB wrote:
Sat Nov 18, 2017 6:47 am
Trouble is it wouldn't let me apt-get install libopencv-dev or libusb-1.0-0-dev until I overhauled it with
apt-get autoremove && sudo apt-get -f install && sudo apt-get update && sudo apt-get upgrade -y

Thing is the overhauled version still identifies the same as before.
If you needed to run those commands it was most likely because of other "apt-get" commands from earlier that had not completed properly.

Also starting with "apt-get update" is a good idea. But none of these commands will change the observed OS version, you have just upgraded a few components of that OS. So the word "overhauling" has no meaning in this context.