今天良心(腾讯)云轻量型云服务器打折了,所以就入手了一台,重装了Debian10系统,为什么不装centos?因为要停止维护了,就尝试使用Debian。
在安装宝塔7.7.0面板时频繁报错,当初以为是端口没有放行,就去放行端口,后来还是不行,最后看终端中一堆404,立马就明白是软件源的问题。
添加国内的软件源 直接编辑/etc/apt/sources.list
文件
需要sudo权限
sudo vim /etc/apt/sources.list
按i
键添加以下内容:
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
粘贴完以上代码按esc
键退出编辑模式,输入:wq!
退出并保存。
最后运行sudo apt-get update
使其生效。
Comments | NOTHING