Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a problem which i am unable to solve for about 2 years and its the reason i am not using Ubuntu as much as i would like to. I am no networking expert so some user friendly or newbie answers would be great but any help would be appreciated (i will google more info when i am pointed at right direction). This problem persists for me for a very long time, and i was experiencing it on my notebook and second computer too. I have no problem on a different operating system. The problem is only with Ubuntu. I cannot really say what is causing this but sometimes it just starts working and after few days its broken again (in the last half of the year it worked just once).

For example if i try to open youtube there are two possible scenarios that can occur besides that rare one which just loads the site as it should or as it is loading on different operating system. First one is that it has a very long load time and after that i get a blank page. The second more common scenario is that the page loads without css styles (just plain html code). If the page loads without css as a plain html than the video is represented by a black rectangle representing the flash plugin. Which works just fine except loading the video source. Youtube is not that big of the deal for me. I can live without that on my ubuntu system but this problem happens with other sites too. This website or Ubuntu forums included. There are many more bugged like this. Basically like 2/3 or at least half of pages i want to load which is really frustrating and most of the time i just quit ubuntu and boot up other operating system. From the head right now i can think of imdb.com as an diferent example of this weirdness. Right now this current site loaded fast but as a plain html without any styles. The last time it worked fine if i remember correctly was when i was using ubuntu 10.10 or something like that. Right now i am at 12.10 64bit (don't really want to update it to 13.04 for now since last updating did not ended up very good and i ended up formmating the drive).

Basically i am unable to load most of the sites i want to load or they load incorrectly,. Missing assets like stylesheets or javascript files. What i need is some help to correct this issue in some user friendly way since i dont have much experience with networking, or at least something that could guide me to the google solution.

I was searching for a solution for a very long time during that years this was bugged for me and still i am unable to resolve this. If someone can help me or at least point me at some direction that would guide me to the solution, i would be really thankful to that person. If you need to know something specific than just ask. Thanks for any help. PS: Sorry for my bad English.

UPDATE:

Editing this file:

sudo gedit /etc/resolv.conf

And changing this:

nameserver 127.0.1.1

Into this:

nameserver 208.67.222.222
nameserver 208.67.220.220

Helped untill rebooting the system (when i changed it again it worked again), at least on the sites i was beeing able to try. I am not really sure what it does or if it is wise to edit it but for now its at least somewhat better than before. If this can bring some light to the problem and someone can find a propper solution that i would be able to follow, it would be just great. I will wait for it for a while and also to make sure it did not stop working like it did when it worked just by itself for some time. If not than i will mark it as solved and accept the answer.

UPDATE2:

Its a bit buggy but looks like it works. It never worked this long before. Since i edited that file i am getting "System program problem detected" this error. Never seen it before and it dont say anything specific (just allows me to close it). But besides that and a fact that youtube loads without thumbnail images (404 error) i did not notice anything else. Its not ideal but i can live with that. I am going to mark it as solved.

UPDATE3: Some time has passed, it still works but that "System program problem detected" error still persists. I've created alias to change it and saved it inside

~/.bashrc

as an link to the .bash_aliases. However I don't even need to call it. It gets called automatically on the system start-up. I don't like it like that but I can live with that. Here is the alias if someone looks for that

alias webfix="sudo sed -i 'nameserver 127.0.1.1,nameserver 208.67.222.222d' /etc/resolv.conf"
share|improve this question
    
There could be a range of causes. Can you answer some further questions? Does it happen in all browsers (eg - have you tried Chrome as well as Firefox). If you have Firefox installed, could you install the Firebug extension? Go to: getfirebug.com . Firebug will help get a better sense of where the problem may be arising. –  fred2 Sep 13 '13 at 15:38
    
Yes i have tried chrome too but there was no change so i have removed it since firefox is my favorite browser. About the firebug test ive inspected the source and it was linking to some external site on this domain s.ytimg.com but i was unable to load it. It throwed at me 404 error (not found). When i logged into diferent OS than the file was loaded without problem also youtube loaded correctly. –  Joe Sep 13 '13 at 19:42
    
Do thins happen in a shinny new user? Create a new user and tell us if this happens. Also, are you behind a firewall/proxy? Or have you configured the iptables? –  Braiam Sep 14 '13 at 0:07
    
possible duplicate of Problem resolving many of the Web Pages –  Eliah Kagan Sep 14 '13 at 5:19
1  
Welcome to Ask Ubuntu! The best way to add additional information to your question is by editing it, with the edit button. It is better visible that way, and comments are mainly for secondary, temporary purposes. Comments are removed under a variety of circumstances. Anything important to your question should be in the question itself. –  guntbert Sep 14 '13 at 15:26
show 3 more comments

closed as unclear what you're asking by Thomas W., Braiam, raaz, Eliah Kagan, Warren Hill Sep 14 '13 at 13:25

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote -1 down vote accepted

Have a look at the solution to this problem: Problem resolving many of the Web Pages

It looks like it might be the same.

share|improve this answer
    
I think i readed that thread in the past but i am not sure since i was on many sites/topics that was suggesting something that could help any nothing really helped. I will try something with it tomorrow but i am a bit worried that it could be a bit too complicated for me. As i said before this networking stuff is not really in my comfort zone. –  Joe Sep 13 '13 at 19:46
    
I would concentrate on the answer by 'laurent' as that one is very detailed. You will have to use some command line stuff in a terminal, but it does not look too complicated. –  fred2 Sep 13 '13 at 21:33
    
I am more concerned about the fact that i could break something and ended up without internet connection at all. Is there some way i could export and later inport that settings just in case as a safety check? –  Joe Sep 14 '13 at 7:38
1  
Yep i am really glad about it. :) Ive launched ubuntu now and tried to open youtube and imdb and both opened just fine. Ive also checked that file i was editing before and it was as expected in that default local ip. I hope its not just that short time fix that it worked without any change like before. –  Joe Sep 15 '13 at 15:13
1  
Its a bit buggy but looks like it works. It never worked this long before. Since i edited that file i am getting "System program problem detected" this error. Never seen it before and it dont say anything specific (just allows me to close it). But besides that and a fact that youtube loads without thumbnail images (404 error) i did not notice anything else. Its not ideal but i can live with that. I am going to mark it as solved. –  Joe Sep 16 '13 at 18:42
show 4 more comments

Not the answer you're looking for? Browse other questions tagged or ask your own question.