#1 Le 15/04/2015, à 11:57
- xunil2003
Crééer un dépôt Ubuntu sur un hébergeur web gratuit comme Free
Bonjour,
Ayant créé plusieurs applications en python, je voudrais savoir comment créer un dépôt deb Ubuntu (pour les version 12.04 / 14.04) en utilisant un compte chez un hébergeur web comme Free (sans serveur personnel).
Je ne souhaite pas garder une machine allumée 24/24.
Attention : ne pas confondre avec un dépôt local.
Objectif : Créer un dépôt accessible à tous depuis un hébergeur web gratuit.
Après plusieurs recherches j'ai trouvé quelque renseignement, mais je n'ai pas très bien compris.
Imaginons que l'hébergeur web est Free, et que celui-ci s'appelle test
http://test.free.fr
Le nom du dépôt sera alors test.
Mes fichiers deb (paquets deb) seront dans "http://test.free.fr/ubuntu/" directement ?
http://test.free.fr/debian/appli1.deb
http://test.free.fr/debian/appli2.deb
Ou faut-il créer d'autre dossier ?
Il ne reste plus qu'a utilisateur d'ajouter mon dépôt dans le fichier "/etc/apt/sources.list" afin que l'utilisateur puisse installer mes applis via le terminal ou le mode graphique ?
Faut-il ajouter à la dernière ligne du fichier "/etc/apt/sources.list" ceci :
deb http://test.free.fr/debian/
Suivi de :
$ sudo apt-get update
pour réinitialiser les paquets.
Et de :
$ sudo apt-get install mon_appli
pour installer l'une de mes applications.
Est-ce correct ?
Pouvez-vous m'aiguiller ?
Merci.
- AMD R9 5950x 64 Go Ram / Intel Pentium I7 960 - 12 Go Ram - 6 T0 - Kubuntu 12.04 x64 / Kubuntu 14.04 x64 / Kubuntu 16.04 x64 / Kubuntu 18.04 x64 / Kubuntu 20.04 x64 / Mint
- DreamPlug Multi Boot / Marvel 1.22 Ghz / Architecture ARM / 512 Mo Ram / Carte-sd 16 Go class 10 / 5 Watts / Debian Squeeze 2.6.39.4
- Raspberry PI 1 / Raspberry PI 2 / Raspberry PI 3 / Raspberry PI 4 : 4Gb
JE SUIS CHARLIE
Hors ligne
#2 Le 15/04/2015, à 12:26
- mazarini
Re : Crééer un dépôt Ubuntu sur un hébergeur web gratuit comme Free
Regarde de ce coté : http://www.tiennotblog.fr/tutoriels/depot_debian.php
Il me semble que le mieux pour toi est de construire ton dépôt sur ta machine et de transférer le répertoire entier vers free.
S'il existait une école de la politique, les locaux devraient être édifiés rue de la Santé. Les élèves pourraient s'habituer. (Pierre Dac)
Hors ligne
#3 Le 15/04/2015, à 17:09
- xunil2003
Re : Crééer un dépôt Ubuntu sur un hébergeur web gratuit comme Free
Bonjour,
il est dit :
Je pars aussi du principe que vous avez déjà vos paquets Debian prêts, avec tous les fichiers nécessaires (à savoir les fichiers suivants : *.deb, *.dsc, *.changes, *.orig.tar.gz, *.diff.gz; ceux-ci doivent se trouver obligatoirement dans le même dossier; voir ce tutoriel, toujours sur Ubuntu-fr)...
j'ai uniquement mon paquet deb ?
Comment dois-je faire pour les autres fichies : *.dsc, *.changes, *.orig.tar.gz, *.diff.gz ?
Cependant j'ai suivi ce tuto : https://doc.ubuntu-fr.org/tutoriel/comment_creer_depot
J'ai créé les dossiers
laurent@MSI-GT683:~$ mkdir apt
laurent@MSI-GT683:~$ mkdir -p ./apt/conf
laurent@MSI-GT683:~$ mkdir -p ./apt/incoming
laurent@MSI-GT683:~$ touch ./apt/conf/distributions
Et j'ai ajouté ceci dans le fichier ./apt/conf/distributions
Origin: Votre Nom
Label: Label de votre société (ou autre)
Suite: stable
Codename: trusty
Version: 14.04
Architectures: i386, amd 64 source #(en fonction de vos besoin)
Components: main restricted universe multiverse #(en fonction de vos besoin)
Description: Votre Description
Ensuite j'ai copié un fichier deb dans le dossier incoming.
Et j'ai lancé la commande reprepro.
laurent@MSI-GT683:~$ cd apt
laurent@MSI-GT683:~/apt$ reprepro -Vb . includedeb stable incoming/lcfbx-v1.0.0.deb
Created directory "./db"
incoming/lcfbx-v1.0.0.deb: component guessed as 'main'
Created directory "./pool"
Created directory "./pool/main"
Created directory "./pool/main/l"
Created directory "./pool/main/l/lcfbx"
Exporting indices...
Created directory "./dists"
Created directory "./dists/trusty"
Created directory "./dists/trusty/main"
Created directory "./dists/trusty/main/binary-i386,"
Created directory "./dists/trusty/main/binary-amd"
Created directory "./dists/trusty/main/binary-64"
Created directory "./dists/trusty/main/source"
Created directory "./dists/trusty/restricted"
Created directory "./dists/trusty/restricted/binary-i386,"
Created directory "./dists/trusty/restricted/binary-amd"
Created directory "./dists/trusty/restricted/binary-64"
Created directory "./dists/trusty/restricted/source"
Created directory "./dists/trusty/universe"
Created directory "./dists/trusty/universe/binary-i386,"
Created directory "./dists/trusty/universe/binary-amd"
Created directory "./dists/trusty/universe/binary-64"
Created directory "./dists/trusty/universe/source"
Created directory "./dists/trusty/multiverse"
Created directory "./dists/trusty/multiverse/binary-i386,"
Created directory "./dists/trusty/multiverse/binary-amd"
Created directory "./dists/trusty/multiverse/binary-64"
Created directory "./dists/trusty/multiverse/source"
laurent@MSI-GT683:~/apt$
Dans le fichier "/etc/apt/sources.list" j'ai ajouté la ligne
deb file:/home/laurent/apt stable main contrib non-free
Mais quand je met à jour les paquets, j'ai une erreur :
laurent@MSI-GT683:~$ sudo apt-get update
[sudo] password for laurent:
Ign file: stable Release.gpg
Ign file: stable Release
Ign file: stable/contrib TranslationIndex
Ign file: stable/main TranslationIndex
Ign file: stable/non-free TranslationIndex
Err file: stable/main amd64 Packages
Fichier non trouvé
Err file: stable/contrib amd64 Packages
Fichier non trouvé
Err file: stable/non-free amd64 Packages
Fichier non trouvé
Err file: stable/main i386 Packages
Fichier non trouvé
Err file: stable/contrib i386 Packages
Fichier non trouvé
Err file: stable/non-free i386 Packages
Fichier non trouvé
Ign file: stable/contrib Translation-fr_FR
Ign file: stable/contrib Translation-fr
Ign file: stable/contrib Translation-en
Ign file: stable/main Translation-fr_FR
Ign file: stable/main Translation-fr
Ign file: stable/main Translation-en
Ign file: stable/non-free Translation-fr_FR
Ign file: stable/non-free Translation-fr
Ign file: stable/non-free Translation-en
Réception de : 1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Réception de : 2 http://extras.ubuntu.com precise Release.gpg [72 B]
Atteint http://ppa.launchpad.net precise Release.gpg
Atteint http://ppa.launchpad.net precise Release.gpg
Atteint http://ppa.launchpad.net precise Release.gpg
Atteint http://archive.canonical.com precise Release.gpg
Réception de : 3 http://security.ubuntu.com precise-security Release [54,3 kB]
Atteint http://extras.ubuntu.com precise Release
Atteint http://ppa.launchpad.net precise Release
Atteint http://ppa.launchpad.net precise Release
Atteint http://archive.canonical.com precise Release
Atteint http://fr.archive.ubuntu.com precise Release.gpg
Réception de : 4 http://fr.archive.ubuntu.com precise-updates Release.gpg [198 B]
Réception de : 5 http://fr.archive.ubuntu.com precise-backports Release.gpg [198 B]
Atteint http://ppa.launchpad.net precise Release
Atteint http://extras.ubuntu.com precise/main Sources
Atteint http://archive.canonical.com precise/partner Sources
Atteint http://ppa.launchpad.net precise/main Sources
Atteint http://ppa.launchpad.net precise/main amd64 Packages
Atteint http://ppa.launchpad.net precise/main i386 Packages
Atteint http://ppa.launchpad.net precise/main TranslationIndex
Atteint http://ppa.launchpad.net precise/main Sources
Atteint http://ppa.launchpad.net precise/main amd64 Packages
Atteint http://ppa.launchpad.net precise/main i386 Packages
Atteint http://ppa.launchpad.net precise/main TranslationIndex
Atteint http://extras.ubuntu.com precise/main amd64 Packages
Atteint http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Atteint http://archive.canonical.com precise/partner amd64 Packages
Atteint http://archive.canonical.com precise/partner i386 Packages
Ign http://archive.canonical.com precise/partner TranslationIndex
Atteint http://fr.archive.ubuntu.com precise Release
Réception de : 6 http://fr.archive.ubuntu.com precise-updates Release [196 kB]
Réception de : 7 http://security.ubuntu.com precise-security/main Sources [127 kB]
Atteint http://ppa.launchpad.net precise/main Sources
Atteint http://ppa.launchpad.net precise/main amd64 Packages
Atteint http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Atteint http://ppa.launchpad.net precise/main Translation-en
Atteint http://ppa.launchpad.net precise/main Translation-en
Réception de : 8 http://security.ubuntu.com precise-security/restricted Sources [3 759 B]
Réception de : 9 http://security.ubuntu.com precise-security/universe Sources [34,2 kB]
Réception de : 10 http://security.ubuntu.com precise-security/multiverse Sources [1 816 B]
Réception de : 11 http://security.ubuntu.com precise-security/main amd64 Packages [499 kB]
Ign http://archive.canonical.com precise/partner Translation-fr_FR
Réception de : 12 http://fr.archive.ubuntu.com precise-backports Release [54,3 kB]
Ign http://extras.ubuntu.com precise/main Translation-fr_FR
Ign http://archive.canonical.com precise/partner Translation-fr
Ign http://extras.ubuntu.com precise/main Translation-fr
Ign http://archive.canonical.com precise/partner Translation-en
Ign http://ppa.launchpad.net precise/main Translation-fr_FR
Atteint http://fr.archive.ubuntu.com precise/main Sources
Atteint http://fr.archive.ubuntu.com precise/restricted Sources
Atteint http://fr.archive.ubuntu.com precise/universe Sources
Atteint http://fr.archive.ubuntu.com precise/multiverse Sources
Atteint http://fr.archive.ubuntu.com precise/main amd64 Packages
Atteint http://fr.archive.ubuntu.com precise/restricted amd64 Packages
Atteint http://fr.archive.ubuntu.com precise/universe amd64 Packages
Atteint http://fr.archive.ubuntu.com precise/multiverse amd64 Packages
Atteint http://fr.archive.ubuntu.com precise/main i386 Packages
Atteint http://fr.archive.ubuntu.com precise/restricted i386 Packages
Réception de : 13 http://security.ubuntu.com precise-security/restricted amd64 Packages [8 943 B]
Réception de : 14 http://security.ubuntu.com precise-security/universe amd64 Packages [109 kB]
Réception de : 15 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2 463 B]
Réception de : 16 http://security.ubuntu.com precise-security/main i386 Packages [535 kB]
Réception de : 17 http://security.ubuntu.com precise-security/restricted i386 Packages [8 939 B]
Réception de : 18 http://security.ubuntu.com precise-security/universe i386 Packages [116 kB]
Réception de : 19 http://security.ubuntu.com precise-security/multiverse i386 Packages [2 650 B]
Atteint http://security.ubuntu.com precise-security/main TranslationIndex
Atteint http://security.ubuntu.com precise-security/multiverse TranslationIndex
Ign http://extras.ubuntu.com precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-fr
Ign http://ppa.launchpad.net precise/main Translation-en
Atteint http://fr.archive.ubuntu.com precise/universe i386 Packages
Atteint http://security.ubuntu.com precise-security/restricted TranslationIndex
Atteint http://fr.archive.ubuntu.com precise/multiverse i386 Packages
Atteint http://security.ubuntu.com precise-security/universe TranslationIndex
Atteint http://fr.archive.ubuntu.com precise/main TranslationIndex
Atteint http://security.ubuntu.com precise-security/main Translation-en
Atteint http://fr.archive.ubuntu.com precise/multiverse TranslationIndex
Atteint http://security.ubuntu.com precise-security/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com precise/restricted TranslationIndex
Atteint http://security.ubuntu.com precise-security/restricted Translation-en
Atteint http://fr.archive.ubuntu.com precise/universe TranslationIndex
Atteint http://security.ubuntu.com precise-security/universe Translation-en
Réception de : 20 http://fr.archive.ubuntu.com precise-updates/main Sources [487 kB]
Réception de : 21 http://fr.archive.ubuntu.com precise-updates/restricted Sources [7 981 B]
Réception de : 22 http://fr.archive.ubuntu.com precise-updates/universe Sources [113 kB]
Réception de : 23 http://fr.archive.ubuntu.com precise-updates/multiverse Sources [9 413 B]
Réception de : 24 http://fr.archive.ubuntu.com precise-updates/main amd64 Packages [888 kB]
Réception de : 25 http://fr.archive.ubuntu.com precise-updates/restricted amd64 Packages [13,6 kB]
Réception de : 26 http://fr.archive.ubuntu.com precise-updates/universe amd64 Packages [256 kB]
Réception de : 27 http://fr.archive.ubuntu.com precise-updates/multiverse amd64 Packages [16,4 kB]
Réception de : 28 http://fr.archive.ubuntu.com precise-updates/main i386 Packages [929 kB]
Réception de : 29 http://fr.archive.ubuntu.com precise-updates/restricted i386 Packages [13,6 kB]
Réception de : 30 http://fr.archive.ubuntu.com precise-updates/universe i386 Packages [265 kB]
Réception de : 31 http://fr.archive.ubuntu.com precise-updates/multiverse i386 Packages [16,6 kB]
Atteint http://fr.archive.ubuntu.com precise-updates/main TranslationIndex
Atteint http://fr.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Atteint http://fr.archive.ubuntu.com precise-updates/restricted TranslationIndex
Atteint http://fr.archive.ubuntu.com precise-updates/universe TranslationIndex
Réception de : 32 http://fr.archive.ubuntu.com precise-backports/main Sources [5 411 B]
Réception de : 33 http://fr.archive.ubuntu.com precise-backports/restricted Sources [28 B]
Réception de : 34 http://fr.archive.ubuntu.com precise-backports/universe Sources [41,4 kB]
Réception de : 35 http://fr.archive.ubuntu.com precise-backports/multiverse Sources [5 750 B]
Réception de : 36 http://fr.archive.ubuntu.com precise-backports/main amd64 Packages [5 491 B]
Réception de : 37 http://fr.archive.ubuntu.com precise-backports/restricted amd64 Packages [28 B]
Réception de : 38 http://fr.archive.ubuntu.com precise-backports/universe amd64 Packages [43,4 kB]
Réception de : 39 http://fr.archive.ubuntu.com precise-backports/multiverse amd64 Packages [5 419 B]
Réception de : 40 http://fr.archive.ubuntu.com precise-backports/main i386 Packages [5 484 B]
Réception de : 41 http://fr.archive.ubuntu.com precise-backports/restricted i386 Packages [28 B]
Réception de : 42 http://fr.archive.ubuntu.com precise-backports/universe i386 Packages [43,3 kB]
Réception de : 43 http://fr.archive.ubuntu.com precise-backports/multiverse i386 Packages [5 413 B]
Atteint http://fr.archive.ubuntu.com precise-backports/main TranslationIndex
Atteint http://fr.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Atteint http://fr.archive.ubuntu.com precise-backports/restricted TranslationIndex
Atteint http://fr.archive.ubuntu.com precise-backports/universe TranslationIndex
Atteint http://fr.archive.ubuntu.com precise/main Translation-fr_FR
Atteint http://fr.archive.ubuntu.com precise/main Translation-fr
Atteint http://fr.archive.ubuntu.com precise/main Translation-en
Atteint http://fr.archive.ubuntu.com precise/multiverse Translation-fr_FR
Atteint http://fr.archive.ubuntu.com precise/multiverse Translation-fr
Atteint http://fr.archive.ubuntu.com precise/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com precise/restricted Translation-fr_FR
Atteint http://fr.archive.ubuntu.com precise/restricted Translation-fr
Atteint http://fr.archive.ubuntu.com precise/restricted Translation-en
Atteint http://fr.archive.ubuntu.com precise/universe Translation-fr_FR
Atteint http://fr.archive.ubuntu.com precise/universe Translation-fr
Atteint http://fr.archive.ubuntu.com precise/universe Translation-en
Atteint http://fr.archive.ubuntu.com precise-updates/main Translation-fr
Atteint http://fr.archive.ubuntu.com precise-updates/main Translation-en
Atteint http://fr.archive.ubuntu.com precise-updates/multiverse Translation-fr
Atteint http://fr.archive.ubuntu.com precise-updates/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com precise-updates/restricted Translation-fr
Atteint http://fr.archive.ubuntu.com precise-updates/restricted Translation-en
Atteint http://fr.archive.ubuntu.com precise-updates/universe Translation-fr
Atteint http://fr.archive.ubuntu.com precise-updates/universe Translation-en
Atteint http://fr.archive.ubuntu.com precise-backports/main Translation-en
Atteint http://fr.archive.ubuntu.com precise-backports/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com precise-backports/restricted Translation-en
Atteint http://fr.archive.ubuntu.com precise-backports/universe Translation-en
4 930 ko réceptionnés en 40s (121 ko/s)
W: Impossible de récupérer file:/home/laurent/apt/dists/stable/main/binary-amd64/Packages Fichier non trouvé
W: Impossible de récupérer file:/home/laurent/apt/dists/stable/contrib/binary-amd64/Packages Fichier non trouvé
W: Impossible de récupérer file:/home/laurent/apt/dists/stable/non-free/binary-amd64/Packages Fichier non trouvé
W: Impossible de récupérer file:/home/laurent/apt/dists/stable/main/binary-i386/Packages Fichier non trouvé
W: Impossible de récupérer file:/home/laurent/apt/dists/stable/contrib/binary-i386/Packages Fichier non trouvé
W: Impossible de récupérer file:/home/laurent/apt/dists/stable/non-free/binary-i386/Packages Fichier non trouvé
E: Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.
laurent@MSI-GT683:~$
Comment faire ?
Merci.
Dernière modification par xunil2003 (Le 15/04/2015, à 22:23)
- AMD R9 5950x 64 Go Ram / Intel Pentium I7 960 - 12 Go Ram - 6 T0 - Kubuntu 12.04 x64 / Kubuntu 14.04 x64 / Kubuntu 16.04 x64 / Kubuntu 18.04 x64 / Kubuntu 20.04 x64 / Mint
- DreamPlug Multi Boot / Marvel 1.22 Ghz / Architecture ARM / 512 Mo Ram / Carte-sd 16 Go class 10 / 5 Watts / Debian Squeeze 2.6.39.4
- Raspberry PI 1 / Raspberry PI 2 / Raspberry PI 3 / Raspberry PI 4 : 4Gb
JE SUIS CHARLIE
Hors ligne