#26 Le 03/05/2016, à 13:26
- jplemoine
Re : Créer son propre dépôt de paquets
Je ne comprends pas : apparemment, tu as un mélange de 32 et de 64 bit.
Il faut peut-être forcer la lecture de ton dépôt en 64 bit : il faut mettre un "truc" en lieu et place du deb. un truc du genre deb-amd64.
Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.
Hors ligne
#27 Le 03/05/2016, à 17:05
- xunil2003
Re : Créer son propre dépôt de paquets
Re,
J'ai fait comme indiqué dans la doc de Ubuntu
https://doc.ubuntu-fr.org/tutoriel/comment_creer_depot
Mes applis son en python ? ça marche aussi bien sur le 32 que sur le 64 ????
Avec "deb-amd64 file:/home/laurent/apt/ubuntu trusty main" :
laurent@laurent-PC-Bureau:~$ sudo apt-get update
[sudo] password for laurent:
Unknown parameter encountered: "encrypt password"
Ignoring unknown parameter "encrypt password"
E: Le type « deb-amd64 » est inconnu sur la ligne 75 dans la liste des sources /etc/apt/sources.list
E: La liste des sources ne peut être lue.
laurent@laurent-PC-Bureau:~$
Avec "deb [arch=amd64] file:/home/laurent/apt/ubuntu trusty main" :
laurent@laurent-PC-Bureau:~$ sudo apt-get update
Ign file: trusty InRelease
Ign file: trusty Release.gpg
Ign file: trusty Release
Err file: trusty/main amd64 Packages
Fichier non trouvé
Ign file: trusty/main Translation-fr_FR
Ign file: trusty/main Translation-fr
Ign file: trusty/main Translation-en
Ign http://fr.archive.ubuntu.com trusty InRelease
Ign http://dl.google.com stable InRelease
Réception de : 1 http://fr.archive.ubuntu.com trusty-updates InRelease [65,9 kB]
Atteint http://dl.google.com stable Release.gpg
Ign http://extras.ubuntu.com trusty InRelease
Réception de : 2 http://security.ubuntu.com trusty-security InRelease [65,9 kB]
Atteint http://dl.google.com stable Release
Atteint http://fr.archive.ubuntu.com trusty-backports InRelease
Atteint http://dl.google.com stable/main amd64 Packages
Atteint http://fr.archive.ubuntu.com trusty Release.gpg
Atteint http://extras.ubuntu.com trusty Release.gpg
Ign http://ppa.launchpad.net trusty InRelease
Réception de : 3 http://fr.archive.ubuntu.com trusty-updates/main Sources [273 kB]
Atteint http://dl.google.com stable/main i386 Packages
Atteint http://extras.ubuntu.com trusty Release
Atteint http://ppa.launchpad.net trusty InRelease
Atteint http://repo.acestream.org trusty InRelease
Atteint http://extras.ubuntu.com trusty/main Sources
Réception de : 4 http://security.ubuntu.com trusty-security/main Sources [113 kB]
Réception de : 5 http://fr.archive.ubuntu.com trusty-updates/restricted Sources [5 352 B]
Atteint http://repo.acestream.org trusty/main amd64 Packages
Ign http://ppa.launchpad.net trusty InRelease
Réception de : 6 http://fr.archive.ubuntu.com trusty-updates/universe Sources [154 kB]
Atteint http://extras.ubuntu.com trusty/main amd64 Packages
Atteint http://repo.acestream.org trusty/main i386 Packages
Atteint http://ppa.launchpad.net trusty InRelease
Atteint http://extras.ubuntu.com trusty/main i386 Packages
Réception de : 7 http://security.ubuntu.com trusty-security/restricted Sources [4 035 B]
Réception de : 8 http://fr.archive.ubuntu.com trusty-updates/multiverse Sources [5 928 B]
Réception de : 9 http://fr.archive.ubuntu.com trusty-updates/main amd64 Packages [756 kB]
Réception de : 10 http://security.ubuntu.com trusty-security/universe Sources [35,9 kB]
Atteint http://ppa.launchpad.net trusty InRelease
Réception de : 11 http://security.ubuntu.com trusty-security/multiverse Sources [2 764 B]
Ign http://ppa.launchpad.net trusty InRelease
Réception de : 12 http://security.ubuntu.com trusty-security/main amd64 Packages [461 kB]
Atteint http://ppa.launchpad.net trusty InRelease
Atteint http://ppa.launchpad.net trusty Release.gpg
Atteint http://ppa.launchpad.net trusty/main amd64 Packages
Réception de : 13 http://fr.archive.ubuntu.com trusty-updates/restricted amd64 Packages [15,9 kB]
Atteint http://ppa.launchpad.net trusty/main i386 Packages
Réception de : 14 http://fr.archive.ubuntu.com trusty-updates/universe amd64 Packages [359 kB]
Atteint http://ppa.launchpad.net trusty/main Translation-en
Atteint http://ppa.launchpad.net trusty Release.gpg
Ign http://extras.ubuntu.com trusty/main Translation-fr_FR
Atteint http://ppa.launchpad.net trusty/main amd64 Packages
Ign http://extras.ubuntu.com trusty/main Translation-fr
Réception de : 15 http://security.ubuntu.com trusty-security/restricted amd64 Packages [13,0 kB]
Réception de : 16 http://fr.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13,2 kB]
Réception de : 17 http://fr.archive.ubuntu.com trusty-updates/main i386 Packages [723 kB]
Ign http://extras.ubuntu.com trusty/main Translation-en
Atteint http://ppa.launchpad.net trusty/main i386 Packages
Réception de : 18 http://security.ubuntu.com trusty-security/universe amd64 Packages [127 kB]
Atteint http://ppa.launchpad.net trusty/main Translation-en
Ign http://repo.acestream.org trusty/main Translation-fr_FR
Ign http://repo.acestream.org trusty/main Translation-fr
Atteint http://ppa.launchpad.net trusty/main amd64 Packages
Ign http://repo.acestream.org trusty/main Translation-en
Atteint http://ppa.launchpad.net trusty/main i386 Packages
Réception de : 19 http://fr.archive.ubuntu.com trusty-updates/restricted i386 Packages [15,6 kB]
Réception de : 20 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4 982 B]
Réception de : 21 http://fr.archive.ubuntu.com trusty-updates/universe i386 Packages [360 kB]
Atteint http://ppa.launchpad.net trusty/main Translation-en
Réception de : 22 http://security.ubuntu.com trusty-security/main i386 Packages [435 kB]
Réception de : 23 http://fr.archive.ubuntu.com trusty-updates/multiverse i386 Packages [13,6 kB]
Réception de : 24 http://fr.archive.ubuntu.com trusty-updates/main Translation-en [378 kB]
Atteint http://ppa.launchpad.net trusty Release.gpg
Ign http://dl.google.com stable/main Translation-fr_FR
Ign http://dl.google.com stable/main Translation-fr
Atteint http://ppa.launchpad.net trusty/main amd64 Packages
Ign http://dl.google.com stable/main Translation-en
Réception de : 25 http://fr.archive.ubuntu.com trusty-updates/multiverse Translation-en [7 227 B]
Réception de : 26 http://fr.archive.ubuntu.com trusty-updates/restricted Translation-en [3 699 B]
Atteint http://ppa.launchpad.net trusty/main i386 Packages
Réception de : 27 http://fr.archive.ubuntu.com trusty-updates/universe Translation-en [188 kB]
Atteint http://ppa.launchpad.net trusty/main Translation-en
Atteint http://fr.archive.ubuntu.com trusty-backports/main Sources
Atteint http://fr.archive.ubuntu.com trusty-backports/restricted Sources
Atteint http://fr.archive.ubuntu.com trusty-backports/universe Sources
Atteint http://ppa.launchpad.net trusty Release
Atteint http://fr.archive.ubuntu.com trusty-backports/multiverse Sources
Atteint http://fr.archive.ubuntu.com trusty-backports/main amd64 Packages
Atteint http://fr.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Atteint http://fr.archive.ubuntu.com trusty-backports/universe amd64 Packages
Atteint http://ppa.launchpad.net trusty Release
Atteint http://fr.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Atteint http://ppa.launchpad.net trusty Release
Atteint http://fr.archive.ubuntu.com trusty-backports/main i386 Packages
Atteint http://fr.archive.ubuntu.com trusty-backports/restricted i386 Packages
Réception de : 28 http://security.ubuntu.com trusty-security/restricted i386 Packages [12,7 kB]
Atteint http://fr.archive.ubuntu.com trusty-backports/universe i386 Packages
Atteint http://fr.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Atteint http://ppa.launchpad.net trusty/main amd64 Packages
Atteint http://fr.archive.ubuntu.com trusty-backports/main Translation-en
Réception de : 29 http://security.ubuntu.com trusty-security/universe i386 Packages [127 kB]
Atteint http://fr.archive.ubuntu.com trusty-backports/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com trusty-backports/restricted Translation-en
Atteint http://fr.archive.ubuntu.com trusty-backports/universe Translation-en
Atteint http://ppa.launchpad.net trusty/main i386 Packages
Atteint http://fr.archive.ubuntu.com trusty Release
Atteint http://fr.archive.ubuntu.com trusty/main Sources
Atteint http://fr.archive.ubuntu.com trusty/restricted Sources
Atteint http://ppa.launchpad.net trusty/main Translation-en
Atteint http://fr.archive.ubuntu.com trusty/universe Sources
Atteint http://fr.archive.ubuntu.com trusty/multiverse Sources
Atteint http://fr.archive.ubuntu.com trusty/main amd64 Packages
Réception de : 30 http://security.ubuntu.com trusty-security/multiverse i386 Packages [5 172 B]
Atteint http://fr.archive.ubuntu.com trusty/restricted amd64 Packages
Atteint http://ppa.launchpad.net trusty/main amd64 Packages
Atteint http://fr.archive.ubuntu.com trusty/universe amd64 Packages
Atteint http://fr.archive.ubuntu.com trusty/multiverse amd64 Packages
Atteint http://security.ubuntu.com trusty-security/main Translation-en
Atteint http://ppa.launchpad.net trusty/main i386 Packages
Atteint http://security.ubuntu.com trusty-security/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com trusty/main i386 Packages
Atteint http://fr.archive.ubuntu.com trusty/restricted i386 Packages
Atteint http://security.ubuntu.com trusty-security/restricted Translation-en
Atteint http://fr.archive.ubuntu.com trusty/universe i386 Packages
Atteint http://fr.archive.ubuntu.com trusty/multiverse i386 Packages
Atteint http://security.ubuntu.com trusty-security/universe Translation-en
Atteint http://fr.archive.ubuntu.com trusty/main Translation-fr
Atteint http://fr.archive.ubuntu.com trusty/main Translation-en
Atteint http://fr.archive.ubuntu.com trusty/multiverse Translation-fr
Atteint http://fr.archive.ubuntu.com trusty/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com trusty/restricted Translation-fr
Atteint http://fr.archive.ubuntu.com trusty/restricted Translation-en
Atteint http://fr.archive.ubuntu.com trusty/universe Translation-fr
Atteint http://ppa.launchpad.net trusty/main amd64 Packages
Atteint http://fr.archive.ubuntu.com trusty/universe Translation-en
Atteint http://ppa.launchpad.net trusty/main i386 Packages
Ign http://fr.archive.ubuntu.com trusty/main Translation-fr_FR
Ign http://fr.archive.ubuntu.com trusty/multiverse Translation-fr_FR
Ign http://fr.archive.ubuntu.com trusty/restricted Translation-fr_FR
Ign http://fr.archive.ubuntu.com trusty/universe Translation-fr_FR
Ign http://ppa.launchpad.net trusty/main Translation-fr_FR
Ign http://ppa.launchpad.net trusty/main Translation-fr
Ign http://ppa.launchpad.net trusty/main Translation-en
Ign http://ppa.launchpad.net trusty/main Translation-fr_FR
Ign http://ppa.launchpad.net trusty/main Translation-fr
Ign http://ppa.launchpad.net trusty/main Translation-en
4 744 ko réceptionnés en 5s (832 ko/s)
W: Impossible de récupérer file:/home/laurent/apt/ubuntu/dists/trusty/main/binary-amd64/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@laurent-PC-Bureau:~$
laurent@laurent-PC-Bureau:~$ tree /home/laurent/apt/
/home/laurent/apt/
├── conf
│ └── distributions
├── db
│ ├── checksums.db
│ ├── contents.cache.db
│ ├── packages.db
│ ├── references.db
│ ├── release.caches.db
│ └── version
├── dists
│ └── trusty
│ ├── main
│ │ └── binary-amd64
│ │ ├── Packages
│ │ ├── Packages.gz
│ │ └── Release
│ └── Release
├── incoming
│ └── eid-archive_2016.2_all.deb
└── pool
└── main
└── e
└── eid-archive
└── eid-archive_2016.2_all.deb
11 directories, 13 files
laurent@laurent-PC-Bureau:~$
Merci.
Dernière modification par xunil2003 (Le 03/05/2016, à 17:06)
- 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
#28 Le 03/05/2016, à 18:46
- jplemoine
Re : Créer son propre dépôt de paquets
Tu enlèves ubuntu dans le sources.list et c'est bon...
deb [arch=amd64] file:/home/laurent/apt/ trusty main
Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.
Hors ligne
#29 Le 03/05/2016, à 23:15
- xunil2003
Re : Créer son propre dépôt de paquets
Re,
Là ça marche maintenant, ouf...
Avec ceci :
deb [arch=amd64] file:/home/laurent/apt/ trusty main
Pourriez-vous me faire brièvement un explicatif du pourquoi comment ?
Le truc que je pige pas est pourquoi c'est en 64 bits ?
mais si le pc du client est en 32 ?
Pourquoi reprepro ne prend pas en compte le 32 bits, est-ce du fait que je sois en x64 ?
Y a un truc que je pige pas là ?
Car dans le doc de ubuntu il est indiqué :
https://doc.ubuntu-fr.org/tutoriel/comment_creer_depot
A "3 - Utilisation de votre dépôt"
Si vous voulez l'utiliser en réseau, il vous faudra un serveur web sur votre pc, vous trouverez cette procédure ici. Ajoutez un alias dans votre httpd.conf pointant vers le répertoire apt fraîchement créé. Une fois ceci fait et votre serveur lancé, le répertoire apt devrait être accessible avec une adresse du type http://votre_ip/apt . Il vous suffira alors d'ajouter à tous les pc devant se servir de ce serveur la ligne :
deb http://ip_du_serveur/apt stable main contrib non-free
dans le fichier sources.list .
Je ne comprends pas, je ne trouve pas le fichier "httpd.conf" dans /etc/apache2/ ?
laurent@laurent-PC-Bureau:~$ ls -alHF /etc/apache2/
total 96
drwxr-xr-x 8 root root 4096 févr. 10 13:45 ./
drwxr-xr-x 187 root root 12288 mai 3 12:09 ../
-rw-r--r-- 1 root root 7115 janv. 7 2014 apache2.conf
drwxr-xr-x 2 root root 4096 févr. 10 20:03 conf-available/
drwxr-xr-x 2 root root 4096 févr. 10 20:03 conf-enabled/
-rw-r--r-- 1 root root 1782 janv. 3 2014 envvars
-rw-r--r-- 1 root root 31063 janv. 3 2014 magic
drwxr-xr-x 2 root root 12288 mai 2 17:45 mods-available/
drwxr-xr-x 2 root root 4096 févr. 10 13:45 mods-enabled/
-rw-r--r-- 1 root root 320 janv. 7 2014 ports.conf
drwxr-xr-x 2 root root 4096 févr. 10 13:45 sites-available/
drwxr-xr-x 2 root root 4096 sept. 26 2015 sites-enabled/
laurent@laurent-PC-Bureau:~$
PS : J'ai déjà mes sites web en local qui tourne dans /var/www/html/Le_nom_du_site_web
Merci.
Dernière modification par xunil2003 (Le 03/05/2016, à 23:24)
- 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
#30 Le 03/05/2016, à 23:48
- jplemoine
Re : Créer son propre dépôt de paquets
Je ne sais pas pourquoi mais il a fallu forcer le 64 bit sur un OS 64 bit
Sur un OS 32 bit, il doit falloir juste mettre
deb file:/home/laurent/apt/ trusty main
si le dépôt propose les 2 architectures.
Pour le site web, c'est plus comme ça que l'on fait la config...
Il suffit de faire pointer le vhost sur le répertoire.
Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.
Hors ligne
#31 Le 04/05/2016, à 20:05
- xunil2003
Re : Créer son propre dépôt de paquets
Bonjour,
Comment y déclarer dans le vhost ?
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
#32 Le 04/05/2016, à 20:17
- jplemoine
Re : Créer son propre dépôt de paquets
En regardant dans la doc sur Apache (mais dans une version récente )....
Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.
Hors ligne