您的位置:首页 > 游戏 > 手游 > 树莓派debain 12更换apt-get源到阿里源

树莓派debain 12更换apt-get源到阿里源

2024/12/24 22:09:07 来源:https://blog.csdn.net/yongjiutongmi53151/article/details/139554472  浏览:    关键词:树莓派debain 12更换apt-get源到阿里源

1、备份

总共需要备份两个文件
a、/etc/apt/sources.list.d/raspi.list
b、/etc/apt/sources.list

2、删除上述两个文件内到所有内容,然后添加如下内容

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

deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib

/etc/apt/sources.list

deb https://mirrors.aliyun.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

3、更新
sudo apt-get update
sudo apt-get upgrade

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com