Nexus : Configurer un proxy APT
1. Création du dépôt APT Proxy dans Nexus
- Allez dans Administration > Repositories > Create repository > apt (proxy).
- Name :
ubuntu-proxy(par exemple). - Remote Storage : C'est l'URL officielle.
- Pour Ubuntu :
http://archive.ubuntu.com/ubuntu/ - Pour Debian :
http://deb.debian.org/debian/
- Pour Ubuntu :
- Distribution : Indiquez la version que vous utilisez (ex:
focal,jammyounoble). - HTTP Configuration : Si votre entreprise passe par un proxy pour sortir sur Internet, n'oubliez pas de le configurer ici.
Note importante : Contrairement au dépôt Hosted, vous n'avez pas besoin de clé GPG ici pour la signature, car Nexus va simplement "repasser" les fichiers déjà signés par Ubuntu à vos serveurs.
2. Configuration sur vos serveurs clients
Maintenant, vous devez dire à vos serveurs Linux d'aller chercher les paquets chez Nexus plutôt qu'aux USA ou en Angleterre.
Étape A : Ajouter la clé GPG officielle d'Ubuntu
Puisque Nexus ne fait que passer les fichiers, vos serveurs ont toujours besoin de la clé officielle d'Ubuntu pour vérifier que les paquets ne sont pas corrompus. En général, ils l'ont déjà, mais au cas où : sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C (pour Ubuntu).
Étape B : Modifier le fichier sources.list
Sur votre serveur client, éditez le fichier de configuration : sudo nano /etc/apt/sources.list
Remplacez les lignes existantes par l'URL de votre Nexus :
deb https://repository.yakakliker.org/repository/ubuntu-proxy/ noble main restricted universe multiverse
deb https://repository.yakakliker.org/repository/ubuntu-proxy/ noble-updates main restricted universe multiverse
deb https://repository.yakakliker.org/repository/ubuntu-proxy/ noble-security main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu noble main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu noble-security main restricted universe multiverse
- Exemple avec Mint
# Exemple pour le dépôt spécifique à Mint
deb https://repository.yakakliker.org/repository/mint-proxy/ virginia main upstream import backport
deb https://repository.yakakliker.org/repository/ubuntu-proxy/ jammy main restricted universe multiverse
deb https://repository.yakakliker.org/repository/ubuntu-proxy/ jammy-updates main restricted universe multiverse
deb https://repository.yakakliker.org/repository/ubuntu-proxy/ jammy-backports main restricted universe multiverse
deb https://repository.yakakliker.org/repository/ubuntu-proxy/ jammy-security main restricted universe multiverse
- Autre exemple
Types: deb
#URIs: http://archive.ubuntu.com/ubuntu
URIs: https://repository.yakakliker.org/repository/ubuntu-proxy/
Suites: noble noble-updates noble-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
## Ubuntu security updates. Aside from URIs and Suites,
## this should mirror your choices in the previous section.
Types: deb
#URIs: http://security.ubuntu.com/ubuntu
URIs: https://repository.yakakliker.org/repository/ubuntu-noble-security/
Suites: noble-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Dépôts Yakakliker disponibles :
| Cible | Dépôt Yakakliker | Distribution | URL Source Distante |
|---|---|---|---|
| Ubuntu 24.04 | ubuntu-proxy | noble | http://archive.ubuntu.com/ubuntu/ |
| Mint 22 | mint-proxy | jammy | http://packages.linuxmint.com/ |
| Debian 13 | debian-trixie-proxy | trixie | http://deb.debian.org/debian/ |
| Debian 13 | debian-trixie-security-proxy | trixie-security | http://security.debian.org/debian-security/ |
| Proxmox 7 | pve-bookworm-proxy | bookworm | http://download.proxmox.com/debian/pve/ |
| Proxmox 8 | pve-bullseye-proxy | bullseye | http://download.proxmox.com/debian/pve/ |
| Proxmox 9 | pve-trixie-proxy | trixie | http://download.proxmox.com/debian/pve/ |
| Zerotier | zerotier-noble | noble | download.zerotier.com/debian/noble |
| Zerotier | zerotier-plucky | plucky | download.zerotier.com/debian/plucky |
| Zerotier | zerotier-trixie | trixie | download.zerotier.com/debian/trixie |