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

相关推荐
穷儒公羊24 分钟前
第一部分——Docker篇 第六章 容器监控
运维·后端·学习·docker·云原生·容器
krack716x40 分钟前
服务器信息收集
运维·服务器
Brandon汐1 小时前
Linux文件传输:让数据飞起来!
linux·运维·网络
AI服务老曹1 小时前
包含网络、平台、数据及安全四大体系的智慧快消开源了
运维·人工智能·安全·开源·音视频
开发小能手-roy2 小时前
linux Ubuntu 用户权限设置
linux·运维·ubuntu
小白探索世界欧耶!~2 小时前
【踩坑】GitHub Actions 运行的 Linux 环境中,文件名是大小写敏感的
linux·运维·服务器·前端·vue.js·笔记·github
lyingcloud2 小时前
debian系统中文输入法失效解决
linux·运维·debian
韩zj2 小时前
springboot调用python文件,python文件使用其他dat文件,适配windows和linux,以及docker环境的方案
windows·spring boot·python
whoarethenext2 小时前
基于libevent写一个服务器(附带源码)
linux·运维·服务器·c++·后端
饥饿仙人3 小时前
docker+frp 打通开发内网环境到公网进行测试 o( ̄▽ ̄)d
运维