相关疑难解决方法(0)

无法解析主机名,ping工作

我已经安装了RasPi Raspbian,现在我无法执行ssh或git clone,只看到本地主机名正在解析.然而ping工作:

pi ~ $ ssh test.com
ssh: Could not resolve hostname test.com: Name or service not known

pi ~ $ git clone gitosis@test.com:test.git
Cloning into 'test'...
ssh: Could not resolve hostname test.com: Name or service not known
fatal: The remote end hung up unexpectedly

pi ~ $ ping test.com
PING test.com (174.36.85.72) 56(84) bytes of data.
Run Code Online (Sandbox Code Playgroud)

我通过使用http://github.com代替来解决github的问题git://github.com,但这不正常,我想指出问题所在.

谷歌搜索类似的问题,但提供的解决方案是拼写错误纠正,或添加域到主机文件.

networking

9
推荐指数
1
解决办法
4万
查看次数

尝试安装RVM时无法解析主机

我正按照RVM页面上的说明尝试在我的环境中安装RVM

curl -L https://get.rvm.io | bash -s stable --ruby
Run Code Online (Sandbox Code Playgroud)

但我总是得到这个:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0    198      0 --:--:-- --:--:-- --:--:--   246
100  9979  100  9979    0     0   3821      0  0:00:02  0:00:02 --:--:-- 14740
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
curl: (6) Could not resolve host: github.com; nodename nor servname provided, or …
Run Code Online (Sandbox Code Playgroud)

ruby macos rvm

5
推荐指数
1
解决办法
6674
查看次数

标签 统计

macos ×1

networking ×1

ruby ×1

rvm ×1