安装后操作
1. 备份原来的源,防止换源完毕之后新源不能用
Debian系统中,软件源文件地址为:/etc/apt/sources.list
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
2. 新建/etc/apt/sources.list文件,换新源
sudo vim /etc/apt/sources.list
粘贴进去下方的阿里源。
deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main
deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
3. update操作
sudo apt update
sudo apt upgrade
4. 如果新源不能用就回滚
sudo mv /etc/apt/sources.list.bak /etc/apt/sources.list
5. 其他软件
sudo apt install vim neofetch lolcat openssh-client wget curl git
sudo apt install g++ cmake ninja-build
sudo apt install openjdk-17-jdk
sudo apt install docker.io
标签:初始化,http,mirrors,sudo,apt,debian,笔记,main,Debian
From: https://www.cnblogs.com/SherlockZhang/p/17026525.html