![]() PRETTY_NAME="Ubuntu 18.04.1 cat /etc/lsb-releaseĭISTRIB_DESCRIPTION="Ubuntu 18.04. To be clear, the operational 18.04.1 bootable volume that was used when extracting the information above is consistently identifiable via: lsb_release -a The 18.04."something" volume above definitely booted but not 12.04 though it was created using a 12.04 boot volume. (It is of course possible to install each of several OS versions and then compare binaries. Is it possible to definitively determine the actual installed version easily? (especially given that said volume no longer boots) Similarly, to get just the Ubuntu codename, combine the s and c (codename) options: lsbrelease -cs. Alternatively, one can manually check for the version by first finding out the installation directory using: whereis -b cuda cuda: /usr/local/cuda And then cd into that directory and check for the CUDA version. Run the lsbrelease command with -a option to view all details. This utility also reads the content from /etc/lsb-relese file. Alternativeally, Use lsb-release command to view Ubuntu version details. Is inconsistent with the actual boot version which was definitely 18.04."something". To get just the Ubuntu version number, combine the s (short) and d (description) options: lsbrelease -ds. Method 2: Check Ubuntu version with lsb-release Command. The volume OS information extracted as follows: cat etc/lsb-releaseĭISTRIB_DESCRIPTION="Ubuntu 12.04 cat etc/os-releaseĬat: etc/os-release: No such file or cat '/media/ubuntu/Boot18.04/etc/issue' Unfortunately, the accepted answer to the OP does not provide the correct result. (do NOT binaries - this would update LiveCD binaries) and run do-release-upgrade in the chrooted shell.ĭoes the following warrant a re-examination of the original poser's problem for a viable solution (which is required for salvage operations)? For example you can upgrade Ubuntu without booting it: just boot a LiveCD, mount Ubuntu's partition, bind crucial directories like /proc etc. You can use chroot for many other things. It is one of the simplest ways to check the version, just go to the top right corner of the desktop and click, and. lsb_release -a will be executed from your binaries, but will read from files of the dead distro. Check Ubuntu Version using Gnome Graphics UI. Now any command you issue will work as if that partition is your filesystem root. chroot will pretend that given directory is / (so in our case we'll have a shell running in an offline distro, working on its files except for binaries we've bound before) $ chroot /mnt mount -B mounts one directory over the other one virtually replacing its contents, but without physically touching it: $ mount -B /bin /mnt/bin Now bind folders with crucial binaries to replace possibly dead ones. First, mount the partition: $ mount /dev/sda2 /mnt ![]() Let's assume your dead distro is on sda2. You can try chrooting into that system from another Linux or LiveCD.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |