Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried to use the command "go get -u github.com/gogits/gogs" , but got the below result , is it the internet connection problem or other reason , but I can install package by "yum install package_name" , would what is the reason that I can not use the above command ?
fatal: unable to access 'https://github.com/gogits/gogs/' Could not resolve host: github.com; unknow error
package github.com/gogits/gogs: exit status 128
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by sub320
I tried to use the command "go get -u github.com/gogits/gogs" , but got the below result , is it the internet connection problem or other reason , but I can install package by "yum install package_name" , would what is the reason that I can not use the above command ?
fatal: unable to access 'https://github.com/gogits/gogs/' Could not resolve host: github.com; unknow error
package github.com/gogits/gogs: exit status 128
Based on the fact you refer to the "yum" command, I'm assuming you're using CentOS/RHEL/etc ?
Try the following command:
Code:
ping 8.8.8.8
If that works, it's likely just a DNS issue and you need to therefore make sure that you have a DNS server listed in your /etc/resolv.conf file.
To check "resolv.conf" type the following:
Code:
cat /etc/resolv.conf
Last edited by jsbjsb001; 05-28-2018 at 05:19 AM.
Reason: typo
Based on the fact you refer to the "yum" command, I'm assuming you're using CentOS/RHEL/etc ?
Try the following command:
Code:
ping 8.8.8.8
If that works, it's likely just a DNS issue and you need to therefore make sure that you have a DNS server listed in your /etc/resolv.conf file.
To check "resolv.conf" type the following:
Code:
cat /etc/resolv.conf
I can't ping 8.8.8.8 , the /etc/resolv.conf point to our DNS server correctly , I use vmware , bridged mode .
I tried the below command , it seems work fine to use nslookup to find host where 10.20.1.14 is my dns server .
# nslookup www.google.com
Server: 10.20.1.14
Address: 10.20.1.14#53
I have another installation problem as below , I have the problem to run the below command ( it is strange that I can yum install package ) , would advise what is wrong in my centos , it it have problem in internet connection ?
#go get -u github.com/gogits/gogs
# cd .; git clone https://github.com/gogits/gogs /home/git/go/src/github.com/gogits/gogs
Cloning into '/home/git/go/src/github.com/gogits/gogs'...
fatal: unable to access 'https://github.com/gogits/gogs/': Failed connect to github.com:443; Operation now in progress
package github.com/gogits/gogs: exit status 128
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.