shell-things/etc/apt/sources.list
Mikaela Suomalainen 930be20983
etc/sources.list/: use https://deb.debian.org
Apparently they have deprecated httpredir while I wasn't looking.
2018-09-20 13:39:51 +03:00
..
.devel.I.do.not.update.this sources.list: I don't maintain devel 2015-12-28 14:50:21 +02:00
14.04 sources.list/ubuntu: fix apt-key command 2015-12-28 14:48:31 +02:00
16.04 sources.list/ubuntu: fix apt-key command 2015-12-28 14:48:31 +02:00
16.04.archive.ubuntu.com sources.list: 16.04.archive.ubuntu.com 2016-04-14 09:05:38 +03:00
18.04 sources.list: add 18.04 (copy from 16.04) 2018-04-30 17:25:48 +03:00
install sources.list: chmod +x install* 2015-07-28 18:59:03 +03:00
install.debian sources.list: chmod +x install* 2015-07-28 18:59:03 +03:00
README.md etc/sources.list/: use https://deb.debian.org 2018-09-20 13:39:51 +03:00
sid etc/sources.list/: use https://deb.debian.org 2018-09-20 13:39:51 +03:00
stable etc/sources.list/: use https://deb.debian.org 2018-09-20 13:39:51 +03:00
testing etc/sources.list/: use https://deb.debian.org 2018-09-20 13:39:51 +03:00
unstable etc/sources.list/: use https://deb.debian.org 2018-09-20 13:39:51 +03:00

sources.list files for Ubuntu and Debian

The files have been named so they are easily to fetch with script, lsb_release -sr returns release e.g. 14.04 or testing and lsb_release -rc returns codename e.g. jessie.

mirrors.ubuntu.com/mirrors.txt and deb.debian.org are used so the files work everywhere and the nearest mirrors are always used no matter where you are.

Which script to use?

  • install for Ubuntu and Debian testing/unstable.
    • If you run ìnstall on Debian Stable, sources.list will say stable and when new Debian becomes stable apt wants to upgrade to it directly and that can be dangerous.
  • install.debian for not-rolling Debian.

Usage

  1. Become root with sudo su -
  2. Download the script using appropiate distribution and curl or wget depending on which you have installed:
    • Ubuntu/Debian testing/unstable:
      • curl -L http://git.io/vqhtJ > sources.list.install
      • wget http://git.io/vqhtJ -O sources.list.install
    • Debian
      • curl -L http://git.io/vqhtF > sources.list.install
      • wget http://git.io/vqhtF -O sources.list.install
  3. chmod +x sources.list.install
  4. ./sources.list.install
  5. optionally rm sources.list.install