阿里巴巴开源镜像站-OPSX镜像站-阿里云开拓者社区
树莓派系统在2022年1月28日迎来了更新,更新了64位的系统,同时也有lite系统供我们利用。32位系统很多软件都用不了,特殊是宝塔面板。下面是安装最新版本系统的步骤。
登录我们的树莓派官网下载系统镜像

https://www.raspberrypi.com/software/operating-systems/
由于我不须要GUI界面,平时也便是ssh登录上就行,以是现在下载raspberry pi os lite
同时也要准备干系的烧录软件,下面是推举软件,如果有其它好用的可以用自己的。下面这个软件烧录的时候要用管理员权限打开,否则可能会烧录失落败
https://www.balena.io/etcher/
2.烧录接下来便是烧录和下载,烧录完成后在SD卡或者是硬盘的root目录下创建没有后缀名的SSH文件,这样就默认打开了SSH,否则可能会无法连接SSH。
烧录过程中涌现问题可以把SD卡插到电脑上检讨一下是否有应有的文件,否则须要重新格式化SD卡,重新刷入系统。
我把我的系统刷到了硬盘中,树莓派是用硬盘启动而不是SD卡,移动硬盘的速率远远大于SD卡的速率,并且十分稳定,关于如何修正启动项,可以参考youtube的一个视频,链接为youtube,可以按照他的操作一步一步试一试,讲的非常清晰。
https://www.youtube.com/watch?v=nFM01mQ9qrk&t=1010s
3.修正镜像
这里我们虽然刷入的是树莓派的镜像,但是我们在apt/source.list中该当利用的是Debian的镜像。我们打开阿里云的Debian镜像官网
debian镜像:https://developer.aliyun.com/mirror/debian
找到下面的Debian11复制到apt/source.list
deb http://mirrors.aliyun.com/debian/ bullseye main non-free contribdeb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contribdeb http://mirrors.aliyun.com/debian-security/ bullseye-security maindeb-src http://mirrors.aliyun.com/debian-security/ bullseye-security maindeb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contribdeb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contribdeb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contribdeb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
然后再利用清华的镜像源,修正/etc/apt/source.list.d/raspi.list
# 编辑 `/etc/apt/sources.list.d/raspi.list` 文件,删除原文件所有内容,用以下内容取代:deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bullseye main
现在更新镜像源就不会碰着GPG公钥无法添加的问题了,完美更新。
然后再利用我的一句话安装(不知道我用不用的上,但是我必须要安装)
sudo apt update && sudo apt upgrade && sudo apt install -y gcc g++ python3-pip openjdk-11-jdk ffmpeg cmatrix sl hollywood samba samba-common tmux vim htop s-tui python3-dev jq proxychains zsh iperf3 unzip curl screenfetch git cmake clang && sudo apt autoremove
接下来就可以畅通无阻的利用树莓派最新的系统了。
本文转自:https://blog.csdn.net/weixin_49249345/article/details/122937598