1

my computer crashed while I was upgrading from Ubuntu 14.04 to 16.04.

In order to resume the upgrade, I followed the steps in this tutorial, which seems quite useful.

Everything worked fine when i ran the command

dpkg --configure -a

but when I ran the commands

sudo apt-get update && sudo apt-get upgrade

, I get the following error message (I could only take a picture of it as in that computer only the terminal is working)

enter image description here

Basically it is saying that it failed to resolve a few packages (e.g. temporary failure to resolve 'gb.archive.ubuntu.com')

I have then found something here, which I believe is pretty much what I have been experiencing (failure DURING dist upgrage). However, I noticed that ALL the entries from my

sources.list

have the name "xenial" after it, therefore I'm affraid closing all the entries from my source.list is not the best option. A picture of my sources.list file can be found below:

enter image description here

Or do anyone of you believe it can be a temporary DNS issue? Or any other thoughts (I have a feeling it has something to do with my sources.list)?

Thanks and best regards

0

The sources.list seems fine and its most likely an issue with the DNS.

You can add 8.8.8.8 as your temporary DNS and see if it helps by running the following command

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

Then run the following

sudo apt-get -f install 
sudo apt-get update
sudo apt-get upgrade

If this fixes your temporary resolving messages then either wait and see if your ISP fixes the issue for you or you can permanently add a DNS server to your system:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null

8.8.8.8 is Google's own DNS server.

|improve this answer|||||
  • I restarted the computer and it was working (graphical interface was now working and Ubuntu 16.04 was installed). I finished a few updates from the software manager and it seems everything OK. – BCArg Dec 19 '16 at 11:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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