在进入linux系统时无法更新系统,换源后还是如此,
并出现failed to fetch XXX,这是dns设置问题需要自己设置下所在地的dns
vim /etc/resolv.conf
nameserver 223.5.5.5
nameserver 223.6.6.6
我用的是阿里dns,
也可以选自己区域的电信/联通/移动的dns,看宽带了。
apt update
之后看能不能更新了
换源:清华源比较详细可以直接换,还有使用帮助
debian | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
发现远程使用此debian系统,比较复杂所以补充一下
openssh安装失败记录
安装openssh
apt install openssh-server
输入检查有没有安装完成
service ssh status
生成公钥和私钥
ssh-keygen -t rsa
然后会询问保存到哪个位置
我的显示是在/root/.ssh里
cd /root/.ssh
cat id_rsa
cat id_rsa.pub
id_rsa是私钥.pub是公钥
在使用密钥链接ssh时遇到了问题
./path/path.c:546: Comparison compare_paths2(const char *, size_t, const char *, size_t):
assertion "length1 > 0" failed proot warning: signal 6 received from process 30380 #159
查看ssh端口
netstat -nlp|grep ssj