Raspberry Pi5(树莓派) Ubuntu suto apt update 错误记录

系统换源出现的问题:

W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/bookworm InRelease: Key is stored in legacy trusted.gpg keyring(/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

下载的文件丢失,输入以下指令将文件打开:

sudo nano /etc/apt/sources.list.d/raspi.list

配置文件:

deb http://archive.raspberrypi.com/debian/ bookworm main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.com/debian/ bookworm main
deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bookworm main

按下Ctrl+O保存

打开

sudo nano /etc/apt/sources.list
#deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmw>
#deb http://deb.debian.org/debian-security/ bookworm-security main contrib non->
#deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-fr>
# Uncomment deb-src lines below then 'apt-get update' to enable 'apt-get source'
#deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-f>
#deb-src http://deb.debian.org/debian-security/ bookworm-security main contrib >
#deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free no>

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free>
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib no>
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib >
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main co>
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contri>
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main >
deb https://security.debian.org/debian-security  bookworm-security main contrib>
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-security main c>


按下Ctrl+O进行保存

Ctrl+Alt+T新建命令输入sudo apt update,解决问题。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值