资源打包
https://cloud.189.cn/t/aARbInENZFVb (访问码:goy2)
1.手机系统必须是安卓5.1,否则不开机
链接
2.参考红米2 mobian 刷机工具最终版 debian_哔哩哔哩_bilibili刷入Debian
我这里是刷入的Debian12
3.用ssh链接到手机
4.换源
进入软件包源地址文件:nano /etc/apt/sources.list
删除sources.list中所有内容,输入以下更新源地址(全部复制粘贴写入sources.list文件,任选一个即可):
deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
5.更新源和工具包
apt update
apt upgrade
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun //安装DOcker
//这里安装会提示报错,运行以下代码
cd /var/lib/dpkg
sudo mv info info.baksudo
sudo mkdir info
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun //重新安装
update-alternatives --config iptables //防火墙
//选择1
service docker start //启动docker
资源打包
https://cloud.189.cn/t/aARbInENZFVb (访问码:goy2)
5.1版本刷机包用miflash刷入