大神们,debian sources.list怎么修改保存
debian吧
全部回复
仅看楼主
level 1
小白一枚,刚安装debian系统,但安装任何软件都安装不上,就显示依赖源问题,想修改依赖源文件,一下午没成功,debian sources.list怎么修改保存,按照百度搜出来的,每次都另存为sources.list.save文件
2018年01月04日 09点01分 1
level 2
那是你没权限, su root 然后输入密码
vim /etc/apt/sources.list
修改后 esc :wq就好了
2018年01月04日 09点01分 2
那怎么修改呢
2018年01月11日 02点01分
level 3
我也想知道
2018年01月11日 02点01分 3
level 9
vi *.list 按i 或者 a进行编辑,编辑完成后先按ESC然后按冒号,是冒号哦,然后输入wq! 回车!
2018年01月11日 15点01分 4
root权限下哦!
2018年01月11日 15点01分
大佬牛,真保存上了
2021年03月18日 12点03分
[真棒]
2024年09月26日 07点09分
level 13
[小乖]先学点编辑器的知识吧,学会了就知道怎么修改了
2018年01月13日 03点01分 5
level 10
apt edit-sources
2018年01月13日 07点01分 6
level 7
sudo apt edit-sources 或是 sudoedit /etc/apt/sources.list
这是我的:
deb https://mirrors.ustc.edu.cn/debian unstable main contrib non-free
deb https://mirrors.ustc.edu.cn/debian experimental main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ buster-proposed-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debiancn/ buster main
deb https://mirrors.ustc.edu.cn/deb-multimedia/ buster main non-free
前两个需要设置优先级权值 后两个需要下载各自keyring安装 如果不懂就只看中间四个好了 注意把版本号调成你自己需要的
2018年01月13日 12点01分 7
好顶赞
2020年05月23日 15点05分
level 1
用gedit,不用专门学都会,比vi好用。
#gedit /etc/apt/sources.list
2018年01月14日 16点01分 8
正解,不熟悉命令行的,采用gedit
2018年01月30日 06点01分
level 1
把其他的全部注释掉(#),用163的镜像,速度嗖嗖的。
deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
2018年01月14日 16点01分 9
level 6
超级用户权限之下才可以
2018年01月27日 00点01分 10
level 1
直接用自带的那什么软件该就好了
2018年01月29日 06点01分 11
level 11
还有一种方法就是 新立得>设置>软件库>NEW 填入DEB地址,发行版本,组别,就OK了
2018年01月31日 09点01分 12
level 10
nano编辑器了解一下,绝对比vi vim编辑器好用的很。
2020年05月23日 19点05分 13
level 9
nano大法好[滑稽]
2020年05月24日 03点05分 14
level 7
su
nano /etc/apt/soucre.list
2021年03月28日 23点03分 15
1