0

I was upgrading my system (on laptop) from 16.04 to 17.04. To do so I upgraded from 16.04 to 16.10 to 17.04 using sudo do-release-upgrade -d. It all went fine, until I tried opening my browsers (firefox and chrome). Then I performed a sudo apt-get update and got the following. How do I fix this?

Err:1 http://dl.google.com/linux/chrome/deb stable InRelease   Could not resolve 'dl.google.com'
0% [Working]
 Err:2 http://ca.archive.ubuntu.com/ubuntu zesty InRelease   Could not resolve 'ca.archive.ubuntu.com'
0% [Working]
Err:3 http://security.ubuntu.com/ubuntu zesty-security InRelease   Could not resolve 'security.ubuntu.com'
0% [Working]
Err:4 http://ca.archive.ubuntu.com/ubuntu zesty-updates InRelease   Could not resolve 'ca.archive.ubuntu.com'
0% [Working]
Err:5 http://ca.archive.ubuntu.com/ubuntu zesty-backports InRelease   Could not resolve 'ca.archive.ubuntu.com'
Reading package lists... 0%
Reading package lists... Done
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/zesty/InRelease  Could not resolve 'ca.archive.ubuntu.com'
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/zesty-updates/InRelease  Could not resolve 'ca.archive.ubuntu.com'
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/zesty-backports/InRelease  Could not resolve 'ca.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/zesty-security/InRelease  Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease  Could not resolve 'dl.google.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
$ exit
exit 
Script done on Sat 15 Apr 2017 03:24:29 PM ADT

edit: This question has not been answered, and none of the other answered questions have solved this.

(edit: honestly, I have given up and downgraded back to 16.04)

2 Answers2

1

I feel like I should apologise to everyone. I have come to believe that the issues I encountered were local (mainly the wifi card) and not an issue with 17.04 itself.

How do I know? I only just opened the laptop again and attempted to view websites. It worked. I performed an update and it worked. I used the terminal to ping obscure sites and it worked. The issue somehow resolved itself.

Thank you for everyone who tried to help, I will definitely get my laptop checked.

EDIT: I WAS WRONG!!!!!!!! It now says I have lost the connection again and get the same error. I spoke with a classmate and he says it's because of randomising MAC addresses. The configuration file that we suspect responsible is /etc/networkmanager/networkmanager.conf

0

Solved it the editing issue.

Here is how:

HOWEVER, there is one very important difference. Using gedit to edit the config file may give you the following terminal output (Or something very similar):

** (gedit:2540): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported** 

** (gedit:2540): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported**

To attack this, I found a bug report (here: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1575484) which basically says that GUI level editors being used for sudo level editing is generally a BAD IDEA. So instead I used VIM via the terminal and edited the config file that way. That is the only way my chnages to config file were registered, even though opening the file implied otherwise.

Good luck to anyone else who has this issue, hope it helps.