Ubuntu 14.04 : Cannot access internet via terminal
up vote
1
down vote
favorite
I am able to connect to both wired and wireless networks and able to browse via a browser. So I don't think there's any network issue.
However I cannot run any internet based command from my terminal
even a sudo apt-get update
command gets stuck showing
`0% [Connecting to 7.1.1.12 (7.1.1.12)] [Connecting to 7.1.1.12 (7.1.1.12)]`
and get stuck there.
I tried doing sudo iptables -F
after following another answer but to no good.
Please help me with this.
Output of
ping google.com
PING google.com (216.58.220.14) 56(84) bytes of data.<b>
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=1 ttl=58 time=1.91 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=2 ttl=58 time=2.04 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=3 ttl=58 time=1.73 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=4 ttl=58 time=1.75 ms
Output of
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=59 time=1.62 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=59 time=5.49 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=59 time=1.39 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=59 time=1.39 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=59 time=1.46 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=59 time=1.44 ms
Output of
env | grep -i proxy
http_proxy=http:// 7.1.1.12:3128/
ftp_proxy=ftp:// 7.1.1.12:3128/
socks_proxy=socks:// 7.1.1.12:3128/
https_proxy=https:// 7.1.1.12:3128/
command-line networking wireless iptables
|
show 3 more comments
up vote
1
down vote
favorite
I am able to connect to both wired and wireless networks and able to browse via a browser. So I don't think there's any network issue.
However I cannot run any internet based command from my terminal
even a sudo apt-get update
command gets stuck showing
`0% [Connecting to 7.1.1.12 (7.1.1.12)] [Connecting to 7.1.1.12 (7.1.1.12)]`
and get stuck there.
I tried doing sudo iptables -F
after following another answer but to no good.
Please help me with this.
Output of
ping google.com
PING google.com (216.58.220.14) 56(84) bytes of data.<b>
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=1 ttl=58 time=1.91 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=2 ttl=58 time=2.04 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=3 ttl=58 time=1.73 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=4 ttl=58 time=1.75 ms
Output of
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=59 time=1.62 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=59 time=5.49 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=59 time=1.39 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=59 time=1.39 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=59 time=1.46 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=59 time=1.44 ms
Output of
env | grep -i proxy
http_proxy=http:// 7.1.1.12:3128/
ftp_proxy=ftp:// 7.1.1.12:3128/
socks_proxy=socks:// 7.1.1.12:3128/
https_proxy=https:// 7.1.1.12:3128/
command-line networking wireless iptables
Are you using a proxy server in your GUI applications that you haven't told the command-line applications about?
– Oli♦
Mar 29 '15 at 9:56
No proxies in use. The browsers are using the default configurations only.
– tejaskhot
Mar 29 '15 at 10:02
1
Are you sure it is supposed to be connecting to US Department of Defence? They don't seem to have any web server on that address, so I am suspecting it isn't legit. Somebody may have been forging some DNS replies.
– kasperd
Mar 29 '15 at 10:07
I am a naive user and have no clue of what's happening to be honest. I haven't changed any settings on my part. Could you tell me how to reset the whole thing ?
– tejaskhot
Mar 29 '15 at 10:08
what are you trying to do? ... maybe "internet based command" is not for naïve users
– Skaperen
Mar 29 '15 at 10:19
|
show 3 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am able to connect to both wired and wireless networks and able to browse via a browser. So I don't think there's any network issue.
However I cannot run any internet based command from my terminal
even a sudo apt-get update
command gets stuck showing
`0% [Connecting to 7.1.1.12 (7.1.1.12)] [Connecting to 7.1.1.12 (7.1.1.12)]`
and get stuck there.
I tried doing sudo iptables -F
after following another answer but to no good.
Please help me with this.
Output of
ping google.com
PING google.com (216.58.220.14) 56(84) bytes of data.<b>
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=1 ttl=58 time=1.91 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=2 ttl=58 time=2.04 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=3 ttl=58 time=1.73 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=4 ttl=58 time=1.75 ms
Output of
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=59 time=1.62 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=59 time=5.49 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=59 time=1.39 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=59 time=1.39 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=59 time=1.46 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=59 time=1.44 ms
Output of
env | grep -i proxy
http_proxy=http:// 7.1.1.12:3128/
ftp_proxy=ftp:// 7.1.1.12:3128/
socks_proxy=socks:// 7.1.1.12:3128/
https_proxy=https:// 7.1.1.12:3128/
command-line networking wireless iptables
I am able to connect to both wired and wireless networks and able to browse via a browser. So I don't think there's any network issue.
However I cannot run any internet based command from my terminal
even a sudo apt-get update
command gets stuck showing
`0% [Connecting to 7.1.1.12 (7.1.1.12)] [Connecting to 7.1.1.12 (7.1.1.12)]`
and get stuck there.
I tried doing sudo iptables -F
after following another answer but to no good.
Please help me with this.
Output of
ping google.com
PING google.com (216.58.220.14) 56(84) bytes of data.<b>
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=1 ttl=58 time=1.91 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=2 ttl=58 time=2.04 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=3 ttl=58 time=1.73 ms
64 bytes from bom05s05-in-f14.1e100.net (216.58.220.14): icmp_seq=4 ttl=58 time=1.75 ms
Output of
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=59 time=1.62 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=59 time=5.49 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=59 time=1.39 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=59 time=1.39 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=59 time=1.46 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=59 time=1.44 ms
Output of
env | grep -i proxy
http_proxy=http:// 7.1.1.12:3128/
ftp_proxy=ftp:// 7.1.1.12:3128/
socks_proxy=socks:// 7.1.1.12:3128/
https_proxy=https:// 7.1.1.12:3128/
command-line networking wireless iptables
command-line networking wireless iptables
edited Mar 29 '15 at 15:59
terdon♦
63.9k12135212
63.9k12135212
asked Mar 29 '15 at 9:53
tejaskhot
176310
176310
Are you using a proxy server in your GUI applications that you haven't told the command-line applications about?
– Oli♦
Mar 29 '15 at 9:56
No proxies in use. The browsers are using the default configurations only.
– tejaskhot
Mar 29 '15 at 10:02
1
Are you sure it is supposed to be connecting to US Department of Defence? They don't seem to have any web server on that address, so I am suspecting it isn't legit. Somebody may have been forging some DNS replies.
– kasperd
Mar 29 '15 at 10:07
I am a naive user and have no clue of what's happening to be honest. I haven't changed any settings on my part. Could you tell me how to reset the whole thing ?
– tejaskhot
Mar 29 '15 at 10:08
what are you trying to do? ... maybe "internet based command" is not for naïve users
– Skaperen
Mar 29 '15 at 10:19
|
show 3 more comments
Are you using a proxy server in your GUI applications that you haven't told the command-line applications about?
– Oli♦
Mar 29 '15 at 9:56
No proxies in use. The browsers are using the default configurations only.
– tejaskhot
Mar 29 '15 at 10:02
1
Are you sure it is supposed to be connecting to US Department of Defence? They don't seem to have any web server on that address, so I am suspecting it isn't legit. Somebody may have been forging some DNS replies.
– kasperd
Mar 29 '15 at 10:07
I am a naive user and have no clue of what's happening to be honest. I haven't changed any settings on my part. Could you tell me how to reset the whole thing ?
– tejaskhot
Mar 29 '15 at 10:08
what are you trying to do? ... maybe "internet based command" is not for naïve users
– Skaperen
Mar 29 '15 at 10:19
Are you using a proxy server in your GUI applications that you haven't told the command-line applications about?
– Oli♦
Mar 29 '15 at 9:56
Are you using a proxy server in your GUI applications that you haven't told the command-line applications about?
– Oli♦
Mar 29 '15 at 9:56
No proxies in use. The browsers are using the default configurations only.
– tejaskhot
Mar 29 '15 at 10:02
No proxies in use. The browsers are using the default configurations only.
– tejaskhot
Mar 29 '15 at 10:02
1
1
Are you sure it is supposed to be connecting to US Department of Defence? They don't seem to have any web server on that address, so I am suspecting it isn't legit. Somebody may have been forging some DNS replies.
– kasperd
Mar 29 '15 at 10:07
Are you sure it is supposed to be connecting to US Department of Defence? They don't seem to have any web server on that address, so I am suspecting it isn't legit. Somebody may have been forging some DNS replies.
– kasperd
Mar 29 '15 at 10:07
I am a naive user and have no clue of what's happening to be honest. I haven't changed any settings on my part. Could you tell me how to reset the whole thing ?
– tejaskhot
Mar 29 '15 at 10:08
I am a naive user and have no clue of what's happening to be honest. I haven't changed any settings on my part. Could you tell me how to reset the whole thing ?
– tejaskhot
Mar 29 '15 at 10:08
what are you trying to do? ... maybe "internet based command" is not for naïve users
– Skaperen
Mar 29 '15 at 10:19
what are you trying to do? ... maybe "internet based command" is not for naïve users
– Skaperen
Mar 29 '15 at 10:19
|
show 3 more comments
2 Answers
2
active
oldest
votes
up vote
0
down vote
In your case, the apt-get
command is finding those http_proxy
entries and attempting to connect to the internet through them. In this case, it is an IP address belonging to the Department of Defense, and the :3128
is indicating Squid.
Either you do work for the DoD - in which case you should not be posting this information on a public forum, this should be going through your department admin.
Or you accidentally added those entries there. Check your /etc/environment
file for those entries and comment them out. If it isn't in /etc/environment
, have a look at your ~/.profile
file as well; same deal, just comment them out.
add a comment |
up vote
0
down vote
Ok, i see a space into the URL, just before the IP addresses. Please remove those spaces from those *proxy env variables, and if that doesn't work, please try to unset it.
To set it correctly:
export http_proxy=http://7.1.1.12:3128/
To unset it:
unset http_proxy
Edit: Just repeat it for all *proxy variables
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f602699%2fubuntu-14-04-cannot-access-internet-via-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
In your case, the apt-get
command is finding those http_proxy
entries and attempting to connect to the internet through them. In this case, it is an IP address belonging to the Department of Defense, and the :3128
is indicating Squid.
Either you do work for the DoD - in which case you should not be posting this information on a public forum, this should be going through your department admin.
Or you accidentally added those entries there. Check your /etc/environment
file for those entries and comment them out. If it isn't in /etc/environment
, have a look at your ~/.profile
file as well; same deal, just comment them out.
add a comment |
up vote
0
down vote
In your case, the apt-get
command is finding those http_proxy
entries and attempting to connect to the internet through them. In this case, it is an IP address belonging to the Department of Defense, and the :3128
is indicating Squid.
Either you do work for the DoD - in which case you should not be posting this information on a public forum, this should be going through your department admin.
Or you accidentally added those entries there. Check your /etc/environment
file for those entries and comment them out. If it isn't in /etc/environment
, have a look at your ~/.profile
file as well; same deal, just comment them out.
add a comment |
up vote
0
down vote
up vote
0
down vote
In your case, the apt-get
command is finding those http_proxy
entries and attempting to connect to the internet through them. In this case, it is an IP address belonging to the Department of Defense, and the :3128
is indicating Squid.
Either you do work for the DoD - in which case you should not be posting this information on a public forum, this should be going through your department admin.
Or you accidentally added those entries there. Check your /etc/environment
file for those entries and comment them out. If it isn't in /etc/environment
, have a look at your ~/.profile
file as well; same deal, just comment them out.
In your case, the apt-get
command is finding those http_proxy
entries and attempting to connect to the internet through them. In this case, it is an IP address belonging to the Department of Defense, and the :3128
is indicating Squid.
Either you do work for the DoD - in which case you should not be posting this information on a public forum, this should be going through your department admin.
Or you accidentally added those entries there. Check your /etc/environment
file for those entries and comment them out. If it isn't in /etc/environment
, have a look at your ~/.profile
file as well; same deal, just comment them out.
answered Mar 29 '15 at 16:09
Mendhak
3,35921830
3,35921830
add a comment |
add a comment |
up vote
0
down vote
Ok, i see a space into the URL, just before the IP addresses. Please remove those spaces from those *proxy env variables, and if that doesn't work, please try to unset it.
To set it correctly:
export http_proxy=http://7.1.1.12:3128/
To unset it:
unset http_proxy
Edit: Just repeat it for all *proxy variables
add a comment |
up vote
0
down vote
Ok, i see a space into the URL, just before the IP addresses. Please remove those spaces from those *proxy env variables, and if that doesn't work, please try to unset it.
To set it correctly:
export http_proxy=http://7.1.1.12:3128/
To unset it:
unset http_proxy
Edit: Just repeat it for all *proxy variables
add a comment |
up vote
0
down vote
up vote
0
down vote
Ok, i see a space into the URL, just before the IP addresses. Please remove those spaces from those *proxy env variables, and if that doesn't work, please try to unset it.
To set it correctly:
export http_proxy=http://7.1.1.12:3128/
To unset it:
unset http_proxy
Edit: Just repeat it for all *proxy variables
Ok, i see a space into the URL, just before the IP addresses. Please remove those spaces from those *proxy env variables, and if that doesn't work, please try to unset it.
To set it correctly:
export http_proxy=http://7.1.1.12:3128/
To unset it:
unset http_proxy
Edit: Just repeat it for all *proxy variables
answered Mar 29 '15 at 16:11
henderb
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f602699%2fubuntu-14-04-cannot-access-internet-via-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you using a proxy server in your GUI applications that you haven't told the command-line applications about?
– Oli♦
Mar 29 '15 at 9:56
No proxies in use. The browsers are using the default configurations only.
– tejaskhot
Mar 29 '15 at 10:02
1
Are you sure it is supposed to be connecting to US Department of Defence? They don't seem to have any web server on that address, so I am suspecting it isn't legit. Somebody may have been forging some DNS replies.
– kasperd
Mar 29 '15 at 10:07
I am a naive user and have no clue of what's happening to be honest. I haven't changed any settings on my part. Could you tell me how to reset the whole thing ?
– tejaskhot
Mar 29 '15 at 10:08
what are you trying to do? ... maybe "internet based command" is not for naïve users
– Skaperen
Mar 29 '15 at 10:19