更新源
sudo nano /etc/apt/sources.list
删除原来的内容改为
deb http://deb.debian.org/debian-ports sid main
deb http://deb.debian.org/debian-ports unreleased main
deb-src http://deb.debian.org/debian sid main
升级系统
sudo apt-get update
sudo apt-get upgrade
问题
如果提示如下错误
Err:1 http://deb.debian.org/debian-ports sid 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
Get:3 http://deb.debian.org/debian sid InRelease [199 kB]
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
解决办法
gpg --keyserver hkps://keys.openpgp.org --recv-keys 01C2D6F3D1A46AD1C0DC2F3D8D69674688B6CB36
gpg --export 01C2D6F3D1A46AD1C0DC2F3D8D69674688B6CB36 | apt-key add -
or
wget -O - https://www.ports.debian.org/archive_2023.key | apt-key add -
参考
https://www.ports.debian.org/archive
https://wiki.debian.org/RISC-V