0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

git pullしたらCould not resolve host: gitlab.com; Unknown error

Last updated at Posted at 2022-07-19

朝起きていつもどおりgit pull origin masterしたところ

fatal: unable to access 'https://gitlab.com/プロジェクトURL/': 
Could not resolve host: gitlab.com; Unknown error

できません!

sudo git pull origin masterも同じくエラーです。。
SSH鍵再設定したりも無駄で、逆にSSH鍵外したり。
仮想サーバー関連じゃないかなとアドバイスありまして、、

sudo vi /etc/resolv.conf

で中身チェック

# Generated by NetworkManager
nameserver 10.0.2.3
~
~
~
~

インサートモードにして
nameserver 8.8.8.8を追加。
nameserver 8.8.8.4も一応...

# Generated by NetworkManager
nameserver 10.0.2.3
nameserver 8.8.8.8
nameserver 8.8.8.4
~
~

保存して再度git pull origin master
SSH鍵外したまま(Gitlab上)ですがきっちり動きました。。

DNSサーバー追加のみでいけたという事の議事録でした。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?