eugene-tarassov / vivado-risc-v

Xilinx Vivado block designs for FPGA RISC-V SoC running Debian Linux distro
850 stars 193 forks source link

GPG error when apt update #162

Closed Yuxin-Yu closed 1 year ago

Yuxin-Yu commented 1 year ago

Hi,I boot Debian system with v3.3.0 version.I can ping www.google.com,but when I execute apt update,I get an error:

debian@debian:~$ sudo ping www.google.com
PING www.google.com (142.250.80.4) 56(84) bytes of data.
64 bytes from lga34s33-in-f4.1e100.net (142.250.80.4): icmp_seq=1 ttl=63 time=2.97 ms
64 bytes from lga34s33-in-f4.1e100.net (142.250.80.4): icmp_seq=2 ttl=63 time=2.86 ms
64 bytes from lga34s33-in-f4.1e100.net (142.250.80.4): icmp_seq=3 ttl=63 time=2.33 ms
^C
--- www.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2006ms
rtt min/avg/max/mdev = 2.333/2.722/2.970/0.278 ms
debian@debian:~$ sudo apt update
Get:1 http://deb.debian.org/debian-ports unstable InRelease [107 kB]
Get:2 http://deb.debian.org/debian-ports unreleased InRelease [71.8 kB]
Err:1 http://deb.debian.org/debian-ports unstable InRelease                                                     
  The following signatures were invalid: EXPKEYSIG B523E5F3FC4E5F2C Debian Ports Archive Automatic Signing Key (2023) <ftpmaster@ports-master.debian.org> The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8D69674688B6CB36
Err:2 http://deb.debian.org/debian-ports unreleased InRelease                                                   
  The following signatures were invalid: EXPKEYSIG B523E5F3FC4E5F2C Debian Ports Archive Automatic Signing Key (2023) <ftpmaster@ports-master.debian.org> The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8D69674688B6CB36
Reading package lists... Done
W: GPG error: http://deb.debian.org/debian-ports unstable InRelease: The following signatures were invalid: EXPKEYSIG B523E5F3FC4E5F2C Debian Ports Archive Automatic Signing Key (2023) <ftpmaster@ports-master.debian.org> The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8D69674688B6CB36
E: The repository 'http://deb.debian.org/debian-ports unstable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://deb.debian.org/debian-ports unreleased InRelease: The following signatures were invalid: EXPKEYSIG B523E5F3FC4E5F2C Debian Ports Archive Automatic Signing Key (2023) <ftpmaster@ports-master.debian.org> The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8D69674688B6CB36
E: The repository 'http://deb.debian.org/debian-ports unreleased InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
debian@debian:~$ 

How can I fix it,Thanks @eugene-tarassov

Yuxin-Yu commented 1 year ago

I have found a simplest way to fix this.Add a option in source /etc/apt/souce.list.Which like:

root@debian:/etc# cat apt/sources.list
deb [arch=riscv64 trusted=yes] http://deb.debian.org/debian-ports unstable main

deb [arch=riscv64 trusted=yes] http://deb.debian.org/debian-ports unreleased main