樹莓派3B新版raspbian系統換國內源

來源:互聯網
上載者:User

標籤:ras   教程   系統   決定   upd   lis   err   asp   剩餘空間   

樹莓派新版系統更換了專門最佳化過的案頭環境PIXEL,正好手頭有個閑置的TF卡決定刷上新版系統玩玩。下載刷系統過程很多教程頁很簡單。插卡,上電開機,釋放卡上的剩餘空間都很正常,因為樹莓派官方源訪問很慢下一步就是換成國內源,以前一直在用中科大的源,於是開始按照以前的方法修改/etc/apt/sources.list換源。可是換完發現還會從官方源更新,直到找到了/etc/apt/sources.d/raspi.list。

網上教程一般只更換/etc/apt/sources.list裡面的源地址,當按照之前的方法更換/etc/apt/sources.d/raspi.list裡面的網址之後,發現更新失敗了...

直到從網上尋找資料之後發現正確的方法:

 

1.修改之前,先備份下設定檔。

 

cp /etc/apt/sources.listcp /etc/apt/sources.d/raspi.list

 


2.
修改/etc/apt/sources.list或者直接修改原檔案,把原有的配置全部注釋掉(使用#注釋)。

#deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi# Uncomment line below then ‘apt-get update‘ to enable ‘apt-get source‘#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi#科大源deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi

 

 

3.修改/etc/apt/sources.list.d/raspi.list

#deb http://archive.raspberrypi.org/debian/ jessie main ui# Uncomment line below then ‘apt-get update‘ to enable ‘apt-get source‘#deb-src http://archive.raspberrypi.org/debian/ jessie main ui#科大源deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ jessie main ui

 

實際是將archive.raspberrypi.org替換為mirrors.ustc.edu.cn/archive.raspberrypi.org就可以了。

樹莓派3B新版raspbian系統換國內源

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.