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,829

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
  • 4,160
  • 2
  • 32
  • 42