• 欢迎访问好鸭博客网站,WordPress信息,WordPress教程,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站,欢迎加入 QQ群
  • Git主题现已支持滚动公告栏功能,兼容其他浏览器,看到的就是咯,在后台最新消息那里用li标签添加即可。

腾讯云轻量国内机dd网络重装debian并改回内网软件源

未分类 haoduck 3年前 (2021-02-19) 574次浏览 4个评论

dd脚本

wget https://cdn.jsdelivr.net/gh/hiCasper/Shell@master/AutoReinstall.sh && chmod +x AutoReinstall.sh && bash AutoReinstall.sh

脚本来源:https://github.com/hiCasper/Shell

原系统建议使用Ubuntu18.04镜像,运行脚本后选择Debian10

改回内网软件源

cat <<EOF > /etc/apt/sources.list
deb http://mirrors.tencentyun.com/debian/ buster main contrib non-free
deb http://mirrors.tencentyun.com/debian/ buster-updates main contrib non-free
deb http://mirrors.tencentyun.com/debian/ buster-backports main contrib non-free
deb http://mirrors.tencentyun.com/debian-security buster/updates main contrib non-free
deb-src http://mirrors.tencentyun.com/debian/ buster main contrib non-free
deb-src http://mirrors.tencentyun.com/debian/ buster-updates main contrib non-free
deb-src http://mirrors.tencentyun.com/debian/ buster-backports main contrib non-free
deb-src http://mirrors.tencentyun.com/debian-security buster/updates main contrib non-free
EOF
apt-get update

参考:http://mirrors.cloud.tencent.com/

内网软件源的好处是速度更快,不会占用公网带宽。


极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:腾讯云轻量国内机dd网络重装debian并改回内网软件源
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(4)个小伙伴在吐槽
  1. 这个安装后的系统 curl 怎么没了软件包 怎么再下载安装?
    112021-03-25 21:51 Reply
    • apt-get update && apt-get install curl -y
      haoduck2021-03-27 01:56 Reply
  2. tx轻量香港机 能用吗?
    七七2021-03-25 21:57 Reply
  3. Password: Pwd@Linux
    gggg2021-12-12 21:08 Reply