0%

Raspberry PI

[TOC]

Raspberry PI

apt-get

Mirros

  • Official source: http://raspbian.raspberrypi.org/raspbian/
  • 清华源: https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
:~$ echo 'deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi' >> /etc/apt/sources.list
:~$ echo 'deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui' >> /etc/apt/souces.list.d/raspi.list

### `NO_PUBKEY` Error

```sh
:~$ sudo apt-get update
....
....
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://raspbian.raspberrypi.org/raspbian/ stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E
...
# fix the problem
## Method 1
:~$ wget http://raspbian.raspberrypi.org/raspbina.public.key -O | sudo apt-key add -
## Method 2
:~$ wget https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian.public.key -O | sudo apt-key add -

GPIO

GPIO Ports
---- The End Thanks ----
Donate if you like the article.