替換安裝包源解決 connect to mirrors.opencas.cn fail問題

在安裝xrdp的時候,一直抱 connect to mirrors.opencas.cn fail,解決方案是替換掉原來的安裝源

1) 修改 /etc/apt/sources.list 文件

sudo vim /etc/apt/sources.list

  1#deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi    <<---屏蔽該源
  2 # Uncomment line below then 'apt-get update' to enable 'apt-get source'
  3 #deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
  4 #替換爲 http://mirrors.shu.edu.cn/raspbian/raspbian/ 

  5 deb http://mirrors.shu.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi    #<---增加

2) 更新列表

sudo apt-get update&& sudo apt-get -y dist-upgrade&&sudo apt-get update 

之後重新安裝xrdp的時候,下載源就更新到了http://mirrors.shu.edu.cn/raspbian/raspbian/ 

還看到一個網友安裝git不成功,通過這個方法解決問題了

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