最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(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教程及注意事項(更換為清華源)的評論 (共 條)

分享到微博請遵守國家法律
德清县| 巨鹿县| 长宁区| 锡林浩特市| 镇宁| 象山县| 嘉祥县| 湘潭县| 晋城| 衡水市| 罗城| 南郑县| 棋牌| 镇赉县| 南昌市| 宿迁市| 台州市| 昭觉县| 浦城县| 林芝县| 新化县| 洛南县| 永安市| 织金县| 贞丰县| 汉寿县| 金乡县| 台州市| 凤冈县| 铜陵市| 额敏县| 宁蒗| 花莲市| 洛浦县| 天峨县| 襄城县| 垦利县| 新巴尔虎左旗| 浦东新区| 彭泽县| 西丰县|