Software sources list of Linux Mint 18.2 and Ubuntu 16.04.x: how to repair it


Back to the homepage



In Linux Mint and Ubuntu, you install everything from the software repositories (sources). It's therefore very important, that you have no wrong repositories in your sources list.

Are you unsure whether the software sources of your system are all reliable? Below you'll find a how-to for a list with absolutely reliable sources, with which you can feel safe.

Note (1): this page is only meant for Linux Mint 18.2 Sonya and for Ubuntu 16.04.x Xenial Xerus!

Note (2): this is an emergency measure! Only replace your sources list when it's necessary; namely when you have a polluted list with wrong sources in it. Don't do it for any other reason!



A. How-to for Linux Mint 18.2 Sonya


Replacing the sources list in Linux Mint 18.2, is quite another procedure than in Ubuntu; Mint's procedure is a lot easier... Therefore first the how-to for Linux Mint 18.2.

Note: With this, you won't undo the damage that your system might have suffered from the use of wrong software sources! The only thing that you do now, is preventing new damage.

1. Launch Software Sources (Menu button - Administration - Software Sources).

a. Down below, on the right, click the button Restore the default settings

b. Then click the tab PPAs - untick all PPA's that are mentioned there.

c. Then click the tab Additional repositories, and untick all sources mentioned on that page.

d. Finally, press the button Update the cache (on the upper right)

Close Software Sources. With that, the job's (practically) done!

You have disabled all software sources that you possibly have added yourself, but that was the intention. You now have a clean sources list, but you'll get no more updates for software that you've installed from sources that you've added yourself (like PPA's).


2. If you've installed web browser Google Chrome, you'll get no more updates now for Chrome. Because Chrome has it's own software source.

In order to receive new Chrome versions anyway, you can simply enable the Chrome source again (it's on the tab Additional repositories in Software Sources).

You're done!


3. Optional: what you might finally try, is a partial recovery from potential system damage, inflicted by wrong software from wrong sources.

For that, you can use the application ppa-purge. This is present in the default software sources, so you can install it by means of Software Manager or Synaptic Package Manager.



To the content of this website applies a Creative Commons license.

Back to the home page

Disclaimer



This website is being sponsored by Google Ads.

Are you using an ad blocker? Then you're also blocking my earnings from advertisements....

If you wish to support my website, you can configure your ad blocker to make an exception for this website.

Thanks in advance....




B. How-to for Ubuntu 16.04.x (also for Xubuntu 16.04.x, Lubuntu 16.04.x and Kubuntu 16.04.x)


I've deleted useless cruft from the sources list that you find below, so it's somewhat smaller than the sources list that you get by default in Ubuntu.

Furthermore, it contains a disabled software source for Google Chrome; when you've installed Google Chrome, you can enable it in the utility Software & Updates. The source for Canonical Partners has been enabled, because you generally need that as well.

Only replace your sources list when it's necessary: namely when you have a polluted sources list with wrong sources in it. Don't do it for any other reason!

Note: With this, you won't undo the damage that your system might have suffered from the use of wrong software sources! The only thing that you do now, is preventing new damage.

1. First make sure that you have installed the applications gksu and leafpad:

Launch a terminal window.
(You can launch a terminal window like this: *Click*)

Type (or copy/paste):

sudo apt-get install gksu leafpad

Press Enter and submit your password. Please note that the password will remain invisible, not even asterisks will show, which is normal.


2. Then remove all sources that you have now:

Launch a terminal window.
(You can launch a terminal window like this: *Click*)

Type (use copy/paste to avoid errors, this is one line!):

sudo rm -vf /etc/apt/sources.list.d/*.list && sudo rm -vf /etc/apt/sources.list

Press Enter. Type your password when prompted; this will remain entirely invisible, not even asterisks will show, which is normal.


3. Create a new sources list:

Copy/paste the following command into the terminal:

gksudo leafpad /etc/apt/sources.list

Press Enter.

Now copy/paste the green text below, into that empty text file:
## SOURCES LIST FOR UBUNTU 16.04.x LTS XENIAL XERUS
## ALSO FOR XUBUNTU 16.04.x, LUBUNTU 16.04.x
## AND KUBUNTU 16.04.x
## From: http://sites.google.com/site/easylinuxtipsproject
## This list is for the Main server; you might want to select a
## faster mirror server closer to you, with Software & Updates.
## Only fit for 16.04.x LTS Xenial Xerus!
#
## SOURCES FOR ORDINARY UPDATES AND SOFTWARE:
deb http://archive.ubuntu.com/ubuntu xenial main
deb http://archive.ubuntu.com/ubuntu xenial-updates main
deb http://archive.ubuntu.com/ubuntu xenial restricted
deb http://archive.ubuntu.com/ubuntu xenial-updates restricted
deb http://archive.ubuntu.com/ubuntu xenial universe
deb http://archive.ubuntu.com/ubuntu xenial-updates universe
deb http://archive.ubuntu.com/ubuntu xenial multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
#
## SOURCES FOR SECURITY UPDATES:
deb http://archive.ubuntu.com/ubuntu xenial-security main
deb http://archive.ubuntu.com/ubuntu xenial-security restricted
deb http://archive.ubuntu.com/ubuntu xenial-security universe
deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
#
## BACKPORTS SOURCES (WITH LOWERED PRIORITY):
deb http://archive.ubuntu.com/ubuntu xenial-backports main
deb http://archive.ubuntu.com/ubuntu xenial-backports restricted
deb http://archive.ubuntu.com/ubuntu xenial-backports universe
deb http://archive.ubuntu.com/ubuntu xenial-backports multiverse
#
## PARTNER SOURCE (FOR SOFTWARE FROM
## PARTNERS OF CANONICAL):
deb http://archive.canonical.com/ubuntu xenial partner
#
## SOURCE FOR WEB BROWSER GOOGLE CHROME
## (DISABLED BY DEFAULT):
## Only enable it when you've installed Google Chrome!
## You can enable it in the application Software & Updates.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
Save the text file and close it.


4. Now reload the sources list information:

In the terminal:

sudo apt-get update

Press Enter and submit your password. Please note that the password will remain invisible, not even asterisks will show, which is normal.

You're done!


5. Optional: what you might finally try, is a partial recovery from potential system damage, inflicted by wrong software from wrong sources.

For that, you can use the application ppa-purge. This is present in the default software sources, so you can install it by means of Software Manager or Synaptic Package Manager.


To the content of this website applies a Creative Commons license.

Back to the home page

Disclaimer

Comments