0

My Internet connection is working, but I cannot download anything from software center and I cannot update or upgrade from the terminal.

I changed my /etc/apt/sources.list to activate all the sources I have. None of them worked.

edwin
  • 3,799
  • 20
  • 33
  • Which ubuntu version are you using? 14.04, or something older? – noleti Jul 17 '14 at 00:56
  • 1
    change the mirror server following this article: http://www.allfreeubuntu.tk/configure/ –  Jul 17 '14 at 00:57
  • what are the errors when you are trying to update from a terminal? – sourav c. Jul 17 '14 at 02:09
  • Its 14.04 when i check for the best mirrorr it says check internet connection can't find suitable match and the errors are Err http://archive.ubuntu.com quantal-updates/restricted i386 Packages 404 Not Found [IP: 91.189.92.201 80] for all the different sources – user306288 Jul 17 '14 at 06:25

1 Answers1

-1

Do a backup of your sources.list file.

    cd /etc/apt/
    sudo cp sources.list sources.list.001  # if sources.list.001 doesn't exist 

After generate a default set of sources e.g. from Ubuntu Sources List Generator. Here you can select your release and country. Else you can find on internet e.g. here too.

Then copy it inside your sources.list file

    sudo nano /etc/apt/sources.list
                                     # Now paste the list, save and exit
    sudo apt-get update              # to resynchronize the package index 
                                     # files from their sources
    sudo apt-get -f install          # just in case you need to fix something

Now it would be possible to use the software centre too.

Hastur
  • 3,950
  • It should be useful the reason of the downvote to improve the answer or to limit its scope... – Hastur Jan 11 '16 at 10:26