侧边栏壁纸
博主头像
★街角晚灯★博主等级

博观而约取 厚积而薄发

  • 累计撰写 450 篇文章
  • 累计创建 183 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

Ubuntu更换国内镜像源|Ubuntu换源|换源

WinJay
2023-04-21 / 0 评论 / 0 点赞 / 64 阅读 / 7396 字 / 正在检测是否收录...
温馨提示:
文章发布较早,内容可能过时,阅读注意甄别。。。。

Ubuntu换源

image-20230421100532927

echo 'deb https://mirrors.aliyun.com/debian/ stretch main non-free contrib\\r\\ndeb-src https://mirrors.aliyun.com/debian/ stretch main non-free contrib\\r\\ndeb https://mirrors.aliyun.com/debian-security stretch/updates main\\r\\ndeb-src https://mirrors.aliyun.com/debian-security stretch/updates main\\r\\ndeb https://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib\\r\\ndeb-src https://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib\\r\\n' > /etc/apt/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


---
echo 'deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib' > /etc/apt/sources.list
echo 'deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib' >>  /etc/apt/sources.list
echo 'deb https://mirrors.aliyun.com/debian-security/ bullseye-security main' >>  /etc/apt/sources.list
echo 'deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main' >>  /etc/apt/sources.list
echo 'deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib' >>  /etc/apt/sources.list
echo 'deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib' >>  /etc/apt/sources.list
echo 'deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib' >>  /etc/apt/sources.list
echo 'deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib' >>  /etc/apt/sources.list



---


echo 'deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib\r\ndeb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib\r\ndeb https://mirrors.aliyun.com/debian-security/ bullseye-security main\r\ndeb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main\r\ndeb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib\r\ndeb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib\r\ndeb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib\r\ndeb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib' > /etc/apt/sources.list



echo 'deb https://mirrors.aliyun.com/debian/ stretch main non-free contrib 
deb-src https://mirrors.aliyun.com/debian/ stretch main non-free contrib 
deb https://mirrors.aliyun.com/debian-security stretch/updates main ' > Test-sources.list


###安装视频转码组件FFmpeg###
RUN apt-get update -y && \
	apt-get upgrade -y && \
	apt install ffmpeg -y



echo 'deb https://mirrors.aliyun.com/debian/ stretch main non-free contrib' > /etc/apt/sources.list
echo 'deb-src https://mirrors.aliyun.com/debian/ stretch main non-free contrib' >> /etc/apt/sources.list
echo 'deb https://mirrors.aliyun.com/debian-security stretch/updates main' >> /etc/apt/sources.list 
echo 'deb-src https://mirrors.aliyun.com/debian-security stretch/updates main' >> /etc/apt/sources.list 
echo 'deb https://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib' >> /etc/apt/sources.list 
echo 'deb-src https://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib' >> /etc/apt/sources.list 
#deb https://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
#deb-src https://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
cat <<eof> /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
eof
cat <<eof> /etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-proposed main restricted universe multiverse
eof
cat <<EOF> /etc/apt/sources.list
deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
EOF
0
  1. 支付宝打赏

    qrcode alipay
  2. 微信打赏

    qrcode weixin

评论区