gpt4 book ai didi

linux - 无法获取任何内容 - 适用于 Windows 10 的 WSL,正在尝试为 cLion 安装环境

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:15:54 25 4
gpt4 key购买 nike

我下载了适用于 Windows 10 的 WSL ubuntu 18.04,并以管理员身份运行它。我正在尝试安装环境以使用 cLion this tutorial

我想检查我的 ssh 连接,所以我写道:

ssh user@localhost -p 22

但是出现如下错误:

ssh: connect to host localhost port 22: Connection refused

我在尝试解决这个问题时遇到了很多错误,其中大部分是“无法获取”和“连接被拒绝”。

我在 StackOverflow 的某个地方读到卸载 ssh 然后重新安装它。

卸载很顺利,但是当我尝试重新安装它时:

sudo apt-get install openssh-server

并得到以下错误:

Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 openssh-client amd64 1:7.2p2-4ubuntu2.4
Connection failed [IP: 91.189.88.149 80]
Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 openssh-client amd64 1:7.2p2-4ubuntu2.4
Connection failed [IP: 91.189.88.149 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-client_7.2p2-4ubuntu2.4_amd64.deb Connection failed [IP: 91.189.88.149 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

所以我什至无法重新安装 ssh。

在这里希望得到一些帮助。

谢谢!

最佳答案

它在目标机器上接缝防火墙或你的防火墙被激活并阻止建立连接,首先检查防火墙状态,如果它被激活,将其关闭,然后再试一次,它是通过禁用防火墙建立的连接,尝试将规则添加到你的 ip 表获得许可然后 react 防火墙。

关于linux - 无法获取任何内容 - 适用于 Windows 10 的 WSL,正在尝试为 cLion 安装环境,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51915084/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com