先從官網下載它的64-bit PC (AMD64) Desktop Image iso (ubuntu-22.04.4-desktop-amd64.iso),然後用balena etcher寫到USB flash disk上 (超過5Gb的容量)。
用做好的USB flash disk開機進行安裝。從GRUB選單中,選擇Try or Install Ubuntu,語系選English,Install type選Normal Installation,核取Download updates while installing Ubuntu以及Install third-party software for graphics and Wi-Fi hardware and additional media formats。
下一個選單,因為這個SSD裡面的東西已經不要了,我們選取Erase disk and install Ubuntu。
# update indices $ sudo apt update -qq # install two helper packages we need $ sudo apt install --no-install-recommends software-properties-common dirmngr # add the signing key (by Michael Rutter) for these repos # To verify key, run gpg --show-keys /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc # Fingerprint: E298A3A825C0D65DFD57CBB651716619E084DAB9 $ wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc # add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed $ sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" #installation $ sudo apt install --no-install-recommends r-base