• 陪伴互联网运营小白共同探索成长,与IT爱好者共享探索乐趣
  • 建站只为分享,欢迎在PC端文章面打赏支持
  • 使用Ctrl+D 可收藏本站

Debian11 zerotier nat转发遇到的部分问题

好物文案 陆子方 2年前 (2022-05-03) 736次浏览 0个评论 扫描二维码
文章目录[隐藏]

iptables 错误

遇到错误:iptables command not found
解决方案:如果是使用Debian11操作系统最小化安装,默认是不带iptables的,请自己安装一下。 使用如下命令:<apt install iptables>

GPG错误

错误提示:W: GPG error: http://download.zerotier.com/debian/bullseye bullseye InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 1657198823E52A61 E: The repository ‘http://download.zerotier.com/debian/bullseye bullseye InRelease’ is not signed.
解决方案:这个问题就是开头子方说的了。目前测试在Ubuntu上不会报错,如果是Debian10、Debian11,都建议按上面的方式,先安装签名。

sudo报错:

错误提示:bash: sudo: command not found
解决方法:Debian11在安装时,虽然创建了个人账户,但其实没有安装sudo。需要先切换到root进行安装。有的人又说root一直进不去。那说明还是太小白了。系统在安装后默认禁用了root远程ssh登录,如果是在实体机前可以登录,透过ssh就不行了。可以使用自己的个人账户登录,通过以下命令切换到root,并安装sudo。安装之后,就可以sudo apt xxx

su -
apt install sudo

解析错误

错误提示:sudo unable to resolve host name or service not known
解决方法:一般出现在主机名称和host文件不一致,通过下面命令查看,并修改为一样的即可。

cat /etc/hostname
cat /etc/hosts

例如hostname为lzf
则/etc/hosts

# Host addresses
127.0.0.1  localhost
127.0.1.1  lzf
::1        localhost ip6-localhost ip6-loopback
ff02::1    ip6-allnodes
ff02::2    ip6-allrouters

子方有料原创丨转载请注明原文链接
期待您的评论或捐赠,这是最好的鼓励和支持!
喜欢 (0)
[赞赏使我快乐]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到