Difference between revisions of "Sources"

Line 113: Line 113:
 
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
 
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
 
apt-get update
 
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>
 +
 +
 +
 +
 +
 +
 +
==Old versions==
 +
 +
<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>
 
</syntaxhighlight>

Revision as of 15:39, 26 November 2014

This section explain how to adjust the repositories list.


Ubuntu

Edit the sources.list

vim /etc/apt/sources.list


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 #

#deb-src http://se.archive.ubuntu.com/ubuntu/ saucy-updates main restricted


Required repositories

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
##
##


##### Use the closest server automatically, based on your geographic location #####
## Ubuntu official repos
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse
## Backports. Community repos approved by Canonical
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multiverse
 
## Canonical (Ubuntu) partners
deb http://archive.canonical.com/ubuntu trusty partner

## 3rd parties libraries
deb http://extras.ubuntu.com/ubuntu trusty main

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


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