- deb http://mirrors.tencentyun.com/debian bullseye main contrib non-free
#deb-src http://mirrors.tencentyun.com/debian bullseye main contrib non-free
deb http://mirrors.tencentyun.com/debian bullseye-updates main contrib non-free
#deb-src http://mirrors.tencentyun.com/debian bullseye-updates main contrib non-free
deb http://mirrors.tencentyun.com/debian-security bullseye-security main contrib non-free
#deb-src http://mirrors.tencentyun.com/debian-security bullseye-security main contrib non-free
#deb http://mirrors.tencentyun.com/debian bullseye-backports main contrib non-free
#deb-src http://mirrors.tencentyun.com/debian bullseye-backports main contrib non-free
#deb http://mirrors.tencentyun.com/debian bullseye-proposed-updates main contrib non-free
#deb-src http://mirrors.tencentyun.com/debian bullseye-proposed-updates main contrib non-free
我想在SSH把这些代码,一键替换到/etc/apt/sources.list 文件里
热议
推荐楼 zxxx
推荐楼 lastfree 昨天19:57
cp -r /etc/apt/sources.list /etc/apt/sources.list.bak;echo -e "deb http://deb.debian.org/debian/ buster main contrib non-free\ndeb-src http://deb.debian.org/debian/ buster main contrib non-free\ndeb http://deb.debian.org/debian/ buster-updates main contrib non-free\ndeb-src http://deb.debian.org/debian/ buster-updates main contrib non-free\ndeb http://deb.debian.org/debian/ buster-backports main contrib non-free\ndeb-src http://deb.debian.org/debian/ buster-backports main contrib non-free\ndeb http://deb.debian.org/debian-security/ buster/updates main contrib non-free\ndeb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free" > /etc/apt/sources.list;cat /etc/apt/sources.list;apt-get update;
一键换官方源,自己修改一下吧,无需vi 或者 nano
2楼 雨墨 昨天19:41
finalshell
/**
* 大风起兮云飞扬,意大利炮轰他娘
*
* Link https://greasyfork.org/zh-CN/scripts/396933-hostloc-zsbd
*/
3楼 0.0 昨天19:42
直接替换文件就完事了, 不用修改
4楼 hostlocmjj 昨天19:43
vim
5楼 HOH 昨天19:43
nano呗
6楼 louiejordan 昨天19:43
7楼 小猪佩奇 昨天19:45
CTRL+A CTRL+C
vi /etc/apt/sources.list
Ins
CTRL+A Delete
Esc
:wq
-----------------------------------------------------------------------------------------------------
鼠标复制直接sftp,宝塔
8楼 今晚不吃饭 昨天19:45
不行咱就学一下
9楼 ningfeng.im 昨天19:46
CTRL+A CTRL+C
vi /etc/apt/sources.list
Ins
你这要先安装宝塔啊,我想先换源更新系统之后,再安装宝塔
12楼 Caxen 昨天19:49
sftp进去直接当txt改
13楼 emptysuns 昨天19:49
sed
14楼 zxxx 昨天19:54
nano 很不错
15楼 白嫖 昨天19:57
直接把这些echo到source.list
16楼 lastfree 昨天19:57
cp -r /etc/apt/sources.list /etc/apt/sources.list.bak;echo -e "deb http://deb.debian.org/debian/ buster main contrib non-free\ndeb-src http://deb.debian.org/debian/ buster main contrib non-free\ndeb http://deb.debian.org/debian/ buster-updates main contrib non-free\ndeb-src http://deb.debian.org/debian/ buster-updates main contrib non-free\ndeb http://deb.debian.org/debian/ buster-backports main contrib non-free\ndeb-src http://deb.debian.org/debian/ buster-backports main contrib non-free\ndeb http://deb.debian.org/debian-security/ buster/updates main contrib non-free\ndeb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free" > /etc/apt/sources.list;cat /etc/apt/sources.list;apt-get update;
一键换官方源,自己修改一下吧,无需vi 或者 nano
17楼 qq53988545 昨天20:01
cat <<EOF > /etc/apt/sources.list
要写入的内容
EOF
18楼 伴之则安 昨天20:02
sed
HostCramRN$10.28款 $16.88款DC02 24.88刀
19楼 jackyjack 昨天20:02
一键替换那就是sed命令了
22楼 梁静茹 昨天20:06
cat
这个不错,又学到了
24楼 u78 昨天20:09
ningfeng.im 发表于 2022-12-31 19:46
你这要先安装宝塔啊,我想先换源更新系统之后,再安装宝塔
什么还有人用后门塔?
申明:本文内容由网友收集分享,仅供学习参考使用。如文中内容侵犯到您的利益,请在文章下方留言,本站会第一时间进行处理。
评论前必须登录!
立即登录 注册