樹莓派4B安裝Ubuntu 18.04.4 LTS (or)Ubuntu 19.10

工具準備:

  • SD卡
  • 讀卡器
  • 鏡像

1、鏡像下載

https://ubuntu.com/

在這裏插入圖片描述

在這裏插入圖片描述

在這裏插入圖片描述

選擇想要的版本下載
Ubuntu 18.04.4 LTS for raspberry pi:這個版本將會長時間支持更新,持續到2023年4月份

Ubuntu 19.10 for raspberry pi :僅支持9個月的更新,持續到2020年6月份

所以本文首選Ubuntu 18.04.4 LTS鏡像安裝演示

下載連接:

Ubuntu Server 18.04.4 for Raspberry Pi 4 64-bit :ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img.xz

Ubuntu Server 18.04.4 for Raspberry Pi 4 32-bit :ubuntu-18.04.4-preinstalled-server-armhf+raspi3.img.xz

Ubuntu Server 19.10 for Raspberry Pi 4 64-bit:ubuntu-19.10.1-preinstalled-server-arm64+raspi3.img.xz

Ubuntu Server 19.10 for Raspberry Pi 4 32-bit:ubuntu-19.10.1-preinstalled-server-armhf+raspi3.img.xz

2、鏡像燒錄

鏡像燒錄教程傳送門:樹莓派4b之鏡像燒錄(手把手完整版)

3、系統登陸

默認賬號:ubuntu 默認密碼:ubuntu

4、換源

編輯 apt 源文件,更新爲國內鏡像源(注意:路徑節點不是 ubuntu,而是 ubuntu-ports)

sudo nano /etc/apt/sources.list

阿里雲源

deb https://mirrors.aliyun.com/ubuntu-ports/ disco main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ disco main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ disco-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ disco-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ disco-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ disco-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ disco-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ disco-backports main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu-ports/ disco-proposed main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu-ports/ disco-proposed main restricted universe multiverse

中科大源

deb https://mirrors.ustc.edu.cn/ubuntu-ports/ disco main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ disco main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ disco-proposed main restricted universe multiverse

清華源

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ disco-proposed main restricted universe multiverse

5. 安裝桌面環境(可選擇:xubuntu-desktop、lubuntu-desktop、kubuntu-desktop)

sudo apt-get install xubuntu-desktop

6. 重啓系統

reboot

7. 安裝 Docker

sudo apt install docker.io

8.、安裝桌面環境(可選擇:gnome xubuntu-desktop、lubuntu-desktop、kubuntu-desktop)

安裝最新的gnome3.34c
因爲網絡原因,如果提示有安裝出錯,請再安裝一次:

sudo apt-get install gnome --fix-missing

我們也可以安裝更簡單的圖形界面 xubuntu-desktop

sudo apt-getinstall xinint
sudo apt-getxubuntu-desktop

參考資料
https://www.jianshu.com/p/3b60f8a778a7(本人的簡書哦,整理原來的內容,並添加一些內容,然後貼在這裏)
https://www.cnblogs.com/jinzesudawei/p/11701669.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章