My dual boot Ubuntu system has its Ubuntu OS corrupted. Efforts to fix it via changing source.list
and other means proved in vain. Now I want to re-install Ubuntu on that partition with a USB stick. Will my files on that partition and other partitions be left intact? I just wanna fix the OS. Wanna confirm this as I am using the computer for many things and cant afford to have it screwed up. Thanks.
J. Doe's questions
I am diving into Linux on BBB, following this page. Can someone explain to me what export and unexport do, and why they are needed? Can't you just write straight into the virtual file system with out those two steps? Thanks.
I am following this guide to install Linaro on my Ubuntu 18.04 machine (64-bit Duo core). Unlike the guide, I want to have the latest Linaro version. Thus, these are the commands I use:
sudo apt-get install aptitude
sudo apt-get install gcc-multilib
wget -c https://releases.linaro.org/components/toolchain/binaries/latest/arm-linux-gnueabihf/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz --no-check-certificate
tar xf gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz
export CC=`pwd`/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
{CC}gcc --version
It fails at the last line, complaining:
{CC}gcc: command not found
Can somebody enlighten me? What have I done wrong? This process previously failed when I used Linaro 6.4.1 as in the guide. Thank you so much in advance.
As N0rbert pointed out, I put the $
in there. The output is:
gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Linaro is nowhere to be found. How does that export
command work, and why is not not doing what it should?