五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

樹莓派換源2023教程及注意事項(更換為清華源)

2023-02-16 09:20 作者:TOP_SC  | 我要投稿

###### 為啥要換源? :@(吐血倒地)?

 說白了就是為了加速。樹莓派系統(tǒng)默認(rèn)下載軟件的服務(wù)器在國外,經(jīng)常出現(xiàn)下載慢、無法更新的情況。(這個經(jīng)常訪問github的同志應(yīng)該很清楚 :@(邪惡) )這就需要更換為國內(nèi)的鏡像站來加快速度。

###### 換源前的準(zhǔn)備事項

 樹莓派系統(tǒng)是是基于debian改造出來的,隨著debian的版本更替,不同版本的樹莓派要換的源也不同,但樹莓派系統(tǒng)的換源流程大致一樣的。這里是樹莓派清華源的換源介紹文檔 :@(鼓掌)? [樹莓派清華源](https://mirrors.tuna.tsinghua.edu.cn/help/raspbian/)?

###### 換源的步驟

1、使用 `lsb_release -a` 命令查看樹莓派的版本,使用 `uname -m` 查看樹莓派的架構(gòu)。

?![樹莓派版本和架構(gòu)](https://png.cxing.top/i/2023/02/10/wagc8x.png)?

 像我這里的版本是基于debian 11的bullseye版本,為aarch64架構(gòu),此時打開[樹莓派清華源](https://mirrors.tuna.tsinghua.edu.cn/help/raspbian/)的教程,找到對應(yīng)的版本和換源教程。 ![清華源樹莓派換源](https://png.cxing.top/i/2023/02/10/wbf709.png)

2、有了清華源的教程,我們使用一下命令進(jìn)入Raspbian源。

```c

sudo nano /etc/apt/sources.list

```

 改為清華源提供的以下內(nèi)容,再crtl+x保存退出。

```c

# 默認(rèn)注釋了源碼鏡像以提高 apt update 速度,如有需要可自行取消注釋

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

```

3、使用以下命令進(jìn)入樹莓派基金會維護(hù)軟件的源。

```c

sudo nano /etc/apt/sources.list.d/raspi.list

```

 改為清華源提供的以下內(nèi)容,再crtl+x保存退出。

?


```c

# 對于兩個架構(gòu),編輯 `/etc/apt/sources.list.d/raspi.list` 文件,刪除原文件所有內(nèi)容,用以下內(nèi)容取代:

deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bullseye main

```


{message type="warning" content="個人建議可以先把樹莓派官方的給加#注釋掉,以免改錯還能原封不動改回來。"/}

###### 效果如下

![樹莓派換源成功圖1](https://png.cxing.top/i/2023/02/10/x717mq.png)?

![樹莓派換源成功圖2](https://png.cxing.top/i/2023/02/10/x7pzch.png)?


{message type="success" content="其余版本的換源以上述步驟為參考即可完成"/}

 最后使用以下兩個命令更新一下數(shù)據(jù),不出現(xiàn)報錯恭喜換源成功。 :@(喜極而泣)?

```c

sudo apt-get update

sudo apt-get upgrade?

```

復(fù)制鏈接打開查看源站??https://cxing.top/archives/21.html




樹莓派換源2023教程及注意事項(更換為清華源)的評論 (共 條)

分享到微博請遵守國家法律
大渡口区| 乌兰察布市| 弥勒县| 隆化县| 奎屯市| 霍邱县| 乌鲁木齐县| 密山市| 客服| 北辰区| 政和县| 孝义市| 崇礼县| 云阳县| 永胜县| 万山特区| 尼玛县| 岗巴县| 湟中县| 元氏县| 霍州市| 尚义县| 辽阳县| 右玉县| 乌鲁木齐县| 阿鲁科尔沁旗| 郎溪县| 理塘县| 田阳县| 濉溪县| 六枝特区| 江达县| 鹤峰县| 邳州市| 怀化市| 潜山县| 东平县| 琼中| 大足县| 鹤山市| 盖州市|