Last active
January 17, 2017 06:11
-
-
Save yangxuan8282/0a4be0b53be984aa394b23e2d623057f to your computer and use it in GitHub Desktop.
change to China mirrors, run with: curl -sSL https://git.io/vMKbc | sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo mv /etc/apt/sources.list /etc/apt/sources.list.orig | |
sudo sh -c 'cat > /etc/apt/sources.list << "EOF" | |
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi | |
#deb-src http://mirrors.neusoft.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi | |
EOF' | |
sudo mv /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.orig | |
sudo sh -c 'cat > /etc/apt/sources.list.d/raspi.list << "EOF" | |
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ jessie main ui | |
#deb-src http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ jessie main ui | |
EOF' | |
sudo apt-get update && sudo apt-get upgrade -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment