debian apt 更改阿里源

  1. 备份文件

cp /etc/apt/sources.list /etc/apt/sources.list.bak

  1. 更改 sources.list文件内容为:

    deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
    deb http://mirrors.aliyun.com/debian-security buster/updates main
    deb-src http://mirrors.aliyun.com/debian-security buster/updates main
    deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
    deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
    deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib

  2. 更新

apt-get update -y

相关推荐
有谁看见我的剑了?14 分钟前
ubuntu 22.04 wifi网卡配置地址上网
linux·运维·ubuntu
iangyu20 分钟前
【windows server脚本每天从网络盘复制到本地】
开发语言·windows·php
码农新猿类21 分钟前
Ubuntu摄像头打开失败
linux·运维·ubuntu
PWRJOY44 分钟前
Ubuntu磁盘空间分析:du命令及常用组合
linux·运维·ubuntu
wanhengidc1 小时前
SCDN能够运用在物联网加速当中吗?
运维·服务器·网络
zuozewei1 小时前
安全扫描之 Linux 杀毒软件 Clamav 安装
linux·运维·安全
wangchen_01 小时前
linux-信号保存和处理
linux·运维·服务器
love530love2 小时前
家用或办公 Windows 电脑玩人工智能开源项目配备核显的必要性(含 NPU 及显卡类型补充)
人工智能·windows·python·开源·电脑
Menior_3 小时前
[Linux] vim及gcc工具
linux·运维·vim
不念霉运3 小时前
2025年中国DevOps工具选型指南:主流平台能力横向对比
运维·ci/cd·团队开发·devops