Difference between revisions of "Sources"

 
(7 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
 
==Disable source repositories==
 
You don't need to use the sources for a daily use. Just remove or comment all '''deb-src''' lines using a #
 
 
<syntaxhighlight lang="bash">
 
#deb-src http://se.archive.ubuntu.com/ubuntu/ saucy-updates main restricted
 
</syntaxhighlight>
 
 
 
 
==Required repositories==
 
  
 
You need to enable:
 
You need to enable:
Line 38: Line 26:
 
##    ubuntu 13.10    => saucy   
 
##    ubuntu 13.10    => saucy   
 
##    ubuntu 14.04 LTS => trusty
 
##    ubuntu 14.04 LTS => trusty
##
+
##   ubuntu 16.04 LTS => xenial
##
+
##   Ubuntu 17.10 ==> Artful
 +
##    Ubuntu 18.04 ==> Bionic Beaver
 +
 
  
 +
###################################
 +
# UBUNTU 18.04 LTS
 +
###################################
 +
##### Use the closest server automatically, based on your geographic location #####
 
## Ubuntu official repos
 
## Ubuntu official repos
deb http://se.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
+
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic main restricted universe multiverse
deb http://se.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
+
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
+
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main restricted universe multiverse
 +
## Backports. Community repos approved by Canonical
 +
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-backports main restricted universe multiverse
 +
 +
## Canonical (Ubuntu) partners
 +
deb http://archive.canonical.com/ubuntu bionic partner
 +
 +
## 3rd parties libraries (it will come to life after a while on the LTS version)
 +
#deb http://extras.ubuntu.com/ubuntu bionic main
 +
</syntaxhighlight>
 +
 
 +
!! Don't forget to replace 'trusty' by the distribution name !!
 +
 
 +
 
 +
 
 +
 
 +
=Debian=
 +
 
 +
Edit the sources.list
 +
 
 +
<syntaxhighlight lang="bash">
 +
nano /etc/apt/sources.list
 +
</syntaxhighlight>
 +
 
 +
Your file should look like that:
 +
 
 +
<syntaxhighlight lang="bash">
 +
## Debian repositories
 +
deb http://ftp.fr.debian.org/debian stable main contrib non-free
 +
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
 +
deb http://security.debian.org/ jessie/updates main contrib non-free
 +
 
 +
 
 +
# Multimedia and backports
 +
deb http://www.deb-multimedia.org jessie main non-free
 +
deb http://www.deb-multimedia.org jessie-backports main
 +
</syntaxhighlight>
  
## Backports. Community repos approved by Canonical
 
deb http://se.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
 
  
## Canonical (Ubuntu) partners
+
To add the Debian multimedia keys:
deb http://archive.canonical.com/ubuntu trusty partner
 
  
## 3rd parties libraries
+
<syntaxhighlight>
deb http://extras.ubuntu.com/ubuntu trusty main
+
wget http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2015.6.1_all.deb
 +
sudo dpkg -i deb-multimedia-keyring_2015.6.1_all.deb
 
</syntaxhighlight>
 
</syntaxhighlight>
  
!! Don't forget to replace 'trusty' by the distribution name !!
 
  
 +
Source:
 +
http://www.deb-multimedia.org/
  
  
==Take changes into account==
+
=Take changes into account=
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Line 77: Line 106:
  
  
=Debian=
+
=Alternate repositories=
 +
 
 +
 
 +
==ELK==
 +
 
 +
ELK (Elastic search, Logstack, Kibana) is a tool to monitor logs. Check out the official website: http://www.elasticsearch.org/
 +
 
 +
 
 +
Check the current repository version on:
 +
# ElasticSearch: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html
 +
# Logstash: http://logstash.net/docs/latest/repositories
 +
 
 +
 
 +
Udpate sources.list
 +
 
 +
<syntaxhighlight lang="bash">
 +
vim /etc/apt/sources.list
 +
</syntaxhighlight>
 +
 
 +
 
 +
Add:
 +
 
 +
<syntaxhighlight lang="bash">
 +
#### ELK stack: Elastic search, Logstack, Kibana
 +
## versions must match!
 +
deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main
 +
deb http://packages.elasticsearch.org/logstash/1.4/debian stable main
 +
</syntaxhighlight>
 +
 
 +
 
 +
Get repo key and update list of packages:
 +
 
 +
<syntaxhighlight lang="bash">
 +
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
 +
apt-get update
 +
</syntaxhighlight>
 +
 
 +
 
 +
==OVH mirrors==
 +
 
 +
<syntaxhighlight lang="bash">
 +
## OVH Ubuntu repos
 +
deb ftp://mirror.ovh.net/ubuntu trusty main restricted universe multiverse
 +
deb ftp://mirror.ovh.net/ubuntu trusty-updates main restricted universe multiverse
 +
deb ftp://mirror.ovh.net/ubuntu trusty-security main restricted universe multiverse
 +
## Backports. Community repos approved by Canonical
 +
deb ftp://mirror.ovh.net/ubuntu trusty-backports main restricted universe multiverse
 +
</syntaxhighlight>
 +
 +
 
 +
 
  
The principle is the same as Ubuntu (logical as Ubuntu comes from Debian!).
 
  
  
Just put the following content into sources.list:
+
==Old versions==
  
'''To be adjusted'''
+
<syntaxhighlight lang="bash">
 +
## Ubuntu old repos
 +
deb http://old-releases.ubuntu.com raring main restricted universe multiverse
 +
deb http://old-releases.ubuntu.com raring-updates main restricted universe multiverse
 +
deb http://old-releases.ubuntu.com raring-security main restricted universe multiverse
 +
## Backports. Community repos approved by Canonical
 +
deb http://old-releases.ubuntu.com raring-backports main restricted universe multiverse
 +
</syntaxhighlight>

Latest revision as of 14:20, 27 April 2018

This section explain how to adjust the repositories list.


Ubuntu

Edit the sources.list

vim /etc/apt/sources.list


You need to enable:

  • Ubuntu official repositories
  • Backport - community repositories
  • Ubuntu partners - commercial packages
  • 3rd parties - from non-related providers


Your file should look like that:

##
## Ubuntu repositories
## Distros: 
##    ubuntu 13.10     => saucy  
##    ubuntu 14.04 LTS => trusty
##    ubuntu 16.04 LTS => xenial
##    Ubuntu 17.10 ==> Artful
##    Ubuntu 18.04 ==> Bionic Beaver


###################################
# UBUNTU 18.04 LTS
###################################
##### Use the closest server automatically, based on your geographic location #####
## Ubuntu official repos
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main restricted universe multiverse
## Backports. Community repos approved by Canonical
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-backports main restricted universe multiverse
 
## Canonical (Ubuntu) partners
deb http://archive.canonical.com/ubuntu bionic partner
 
## 3rd parties libraries (it will come to life after a while on the LTS version)
#deb http://extras.ubuntu.com/ubuntu bionic main

!! Don't forget to replace 'trusty' by the distribution name !!



Debian

Edit the sources.list

nano /etc/apt/sources.list

Your file should look like that:

## Debian repositories
deb http://ftp.fr.debian.org/debian stable main contrib non-free
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free


# Multimedia and backports
deb http://www.deb-multimedia.org jessie main non-free
deb http://www.deb-multimedia.org jessie-backports main


To add the Debian multimedia keys:

wget http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2015.6.1_all.deb
sudo dpkg -i deb-multimedia-keyring_2015.6.1_all.deb


Source: http://www.deb-multimedia.org/


Take changes into account

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


If you ever encountered some GPG errors, just import the "ubuntu-extras" key:

gpg --keyserver keyserver.ubuntu.com --recv 3E5C1192
gpg --export --armor  3E5C1192 | sudo apt-key add -


Alternate repositories

ELK

ELK (Elastic search, Logstack, Kibana) is a tool to monitor logs. Check out the official website: http://www.elasticsearch.org/


Check the current repository version on:

  1. ElasticSearch: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html
  2. Logstash: http://logstash.net/docs/latest/repositories


Udpate sources.list

vim /etc/apt/sources.list


Add:

#### ELK stack: Elastic search, Logstack, Kibana
## versions must match!
deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main
deb http://packages.elasticsearch.org/logstash/1.4/debian stable main


Get repo key and update list of packages:

wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
apt-get update


OVH mirrors

## OVH Ubuntu repos
deb ftp://mirror.ovh.net/ubuntu trusty main restricted universe multiverse
deb ftp://mirror.ovh.net/ubuntu trusty-updates main restricted universe multiverse
deb ftp://mirror.ovh.net/ubuntu trusty-security main restricted universe multiverse
## Backports. Community repos approved by Canonical
deb ftp://mirror.ovh.net/ubuntu trusty-backports main restricted universe multiverse




Old versions

## Ubuntu old repos
deb http://old-releases.ubuntu.com raring main restricted universe multiverse
deb http://old-releases.ubuntu.com raring-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com raring-security main restricted universe multiverse
## Backports. Community repos approved by Canonical
deb http://old-releases.ubuntu.com raring-backports main restricted universe multiverse