@文心快码debian12换源 文心快码 在Debian 12(也称为bookworm)中更换软件源是一个常见的操作,用于提高软件包下载的速度和稳定性。以下是更换Debian 12软件源的步骤,包含代码片段和清晰的解释: 1. 备份原有的源列表文件 在进行任何更改之前,备份/etc/apt/sources.list文件是一个好习惯。这可以在出现问题时帮助恢复...
apt配置文件添加国内源 使用下面的内容替换/etc/api/sources.list文件的内容。 deb http://mirrors.aliyun.com/debian/ bookworm main non-free contrib deb http://mirrors.aliyun.com/debian/ bookworm-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ bookworm-backports main non-free ...
腾讯云站点 deb https://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib deb-src https://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib deb https://mirrors.tencent.com/debian-security/ bookworm-security main deb-src https://mirrors.tencen...
1.换源 输入 sudo nano /etc/apt/sources.list 在第一行同时按下ctrl+shift+6,鼠标滚轮向下滚动选中全部,按下ctrl+K全部剪切,换上中科大的镜像源。 deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main...
腾讯云源 把本地光盘当做源来使用 更新源 修改源 vim /etc/apt/sources.list 阿里云源 deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib ...
将里面的源网址替换成清华镜像源http://mirror.tuna.tsinghua.edu.cn/raspberrypi/网址,其他的不动 deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ bookworm main 保存退出 4.控制台输入以下指令添加公钥 gpg --keyserver keyserver.ubuntu.com --recv-keys 9165938D90FDDD2E ...
4.清空信息源,写入新源信息 deb https://mirrors.tencent.com/debian/ bookworm main non-free non-...
直接输入ggdG,清空信息源 ggdG 阿里软件源 deb https://mirrors.aliyun.com/debian/bookworm main non-free non-free-firmware contrib deb-src https://mirrors.aliyun.com/debian/bookworm main non-free non-free-firmware contrib deb https://mirrors.aliyun.com/debian-security/bookworm-security main ...
注意,海外不要删除,不然就废了。大陆要换成 aliyun 、中科大等 apt 镜像源的才需要这样操作 完整的: FROM python:3.11.5-bookworm RUN rm -rf /etc/apt/sources.list.d/* RUN echo "deb http://mirror.sjtu.edu.cn/debian bookworm main non-free contrib" > /etc/apt/sources.list ...
将想要的源复制黏贴其中,这里用了阿里云的源 退出保存后执行: sudo apt-get update sudo apt-get upgrade Debian全球镜像站列表:https://www.debian.org/mirror/list 阿里云站点 debhttps://mirrors.aliyun.com/debian/bookwormmainnon-freenon-free-firmwarecontribdeb-srchttps://mirrors.aliyun.com/debian/bookwo...