Apt to get/apt software source for debian/ubuntu Linux distributions, the domestic software source mainly: tsinghua university, ali cloud, USTC, tsinghua university, for example, https://mirrors.tuna.tsinghua.edu.cn/, after opening , find Raspbian, there are detailed instructions
Choose your Debian version: ( see you version of system image, I download the 2019-09-26 - raspbian - arcade. Img, so choosing Debian 10 arcade, here it is important to note that's why I according to the data editor before not successful reason
# sudo vi/etc/apt/sources list file, delete all content of the original file, use the following instead:
Deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/arcade main non - free contrib
Deb - SRC http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/arcade main non - free contrib
# sudo vi/etc/apt/sources list. D/raspi. List file, delete all content of the original file, use the following instead:
Deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/arcade main UI
Note: url raspbian repeat twice is a must, at the end of APT for raspbian warehouse, in addition to the software source also contains other code, APT source software is not in the root directory of the warehouse, and in raspbian/subdirectory,
Edit image after standing, please use the sudo apt - get the update command, update software source list, check your editor whether it is right at the same time,
More generally the default is to use the vi editor, might not be adapt to many novice, for who is familiar with the Windows or use gedit editor
Installation: sudo apt install gedit
Use gedit editor to modify the file sudo gedit/etc/apt/sources list - & gt; Sudo gedit/etc/apt/sources list. D/raspi. List, after opening like a text editor window to make it,
CodePudding user response:
Good, thanks for sharing