Install Rstudio
cnliutz@ubuntu:~$ sudo snap install rstudio --classic
## find version
nliutz@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
cnliutz@ubuntu:~$ uname -a
Linux ubuntu 6.8.0-52-generic #53-Ubuntu SMP PREEMPT_DYNAMIC Sat Jan 11 00:06:25 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
cnliutz@ubuntu:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
cnliutz@ubuntu:~$ cat /etc/issue
Ubuntu 24.04.2 LTS \n \l
cnliutz@ubuntu:~$ hostnamectl
Static hostname: ubuntu
Icon name: computer-vm
Chassis: vm 🖴
Machine ID: d5dccf907ca4483793c3149154734375
Boot ID: ca2d21aac26647a4a6e639721efc1952
Virtualization: vmware
Operating System: Ubuntu 24.04.2 LTS
Kernel: Linux 6.8.0-52-generic
Architecture: x86-64
Hardware Vendor: VMware, Inc.
Hardware Model: VMware Virtual Platform
Firmware Version: 6.00
Firmware Date: Thu 2020-11-12
Firmware Age: 4y 4month 3w 6d
To recap, you can check your Ubuntu version using any of the following methods:
- Use the
lsb_release -a
command. - Use the
/etc/lsb-release
or/etc/os-release command.
- Check the /etc/issue file.
- Use the hostnamectl command.
- Check the Ubuntu version in your GUI settings.