#1 Le 10/04/2024, à 08:57
- Pips
Installer les dépendances libssl et libldap du package libpq5 [Résolu]
Bonjour à toutes et à tous,
Je suis étudiant en webdev et sur un nouveau projet où, pour la première fois, nous utilisons Docker.
Je rencontre des difficultés à ouvrir un projet Laravel (existant, déjà partiellement codé) dans un container Docker via VSCode.
Je reçois pendant la procédure un message m'indiquant laconiquement q'une erreur est survenue en montant le container.
Le seul message d'erreur apparaissant dans le log est le suivant :
Exit code 1
[2024-04-10T07:51:21.341Z] Error: Command failed: docker-compose -f /home/pipou/Documents/projet-collectif-micro-blogging/docker-compose.yml config
[2024-04-10T07:51:21.341Z] at va (/home/pipou/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:462:889)
[2024-04-10T07:51:21.341Z] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2024-04-10T07:51:21.341Z] at async BtA (/home/pipou/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:429:1485)
[2024-04-10T07:51:21.341Z] at async CtA (/home/pipou/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:409:3307)
[2024-04-10T07:51:21.341Z] at async UtA (/home/pipou/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:481:3865)
[2024-04-10T07:51:21.341Z] at async $C (/home/pipou/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:481:4807)
[2024-04-10T07:51:21.341Z] at async QrA (/home/pipou/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:661:13255)
[2024-04-10T07:51:21.341Z] at async urA (/home/pipou/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:661:12996)
[2024-04-10T07:51:21.345Z] Stop (387 ms): Run: /snap/code/156/usr/share/code/code /home/pipou/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/pipou/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-ff1a09cb-83bd-4cdb-aaad-9d3544a102801712735480177 --workspace-folder /home/pipou/Documents/projet-collectif-micro-blogging --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/pipou/Documents/projet-collectif-micro-blogging --id-label devcontainer.config_file=/home/pipou/Documents/projet-collectif-micro-blogging/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/pipou/Documents/projet-collectif-micro-blogging/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=/run/user/1000/wayland-0,target=/tmp/vscode-wayland-c6b329e4-ff8c-41d0-8ef3-a9e23a3068f8.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root
[2024-04-10T07:51:21.345Z] Exit code 1
[2024-04-10T07:51:21.347Z] Command failed: /snap/code/156/usr/share/code/code /home/pipou/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/pipou/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-ff1a09cb-83bd-4cdb-aaad-9d3544a102801712735480177 --workspace-folder /home/pipou/Documents/projet-collectif-micro-blogging --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/pipou/Documents/projet-collectif-micro-blogging --id-label devcontainer.config_file=/home/pipou/Documents/projet-collectif-micro-blogging/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/pipou/Documents/projet-collectif-micro-blogging/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=/run/user/1000/wayland-0,target=/tmp/vscode-wayland-c6b329e4-ff8c-41d0-8ef3-a9e23a3068f8.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root
[2024-04-10T07:51:21.347Z] Exit code 1
Je veux être transparent, j'en suis encore à déterminer si le problème se situe du côté de VSCode, Docker ou Ubuntu (ou assis devant l'ordi mais ça c'est un étant donné).
Le devcontainer.json contient l'instruction
"postCreateCommand": "sudo -E /bin/sh .devcontainer/entrypoint.sh"
Or, lorsque je tape cette commande directement dans mon terminal, je reçois l'erreur suivante:
Hit:1 http://fr.archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:3 http://fr.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://fr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:5 https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu jammy InRelease
Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:7 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal pgadmin4 InRelease
Hit:2 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:8 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Fetched 110 kB in 2s (66,5 kB/s)
Reading package lists... Done
W: https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal/dists/pgadmin4/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libpq5 : Depends: libldap-2.4-2 (>= 2.4.7) but it is not installable
Depends: libssl1.1 (>= 1.1.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
J'ai essayé d'installer libpq 5 en utilisant aptitude, en vain.
Je ne sais même pas si c'est ce qui m'empêche de créer mon container mais j'en suis là de mes investigations, et toute aide que vous pourriez m'apporter serait précieuse
Dernière modification par Pips (Le 11/04/2024, à 15:45)
Hors ligne
#2 Le 10/04/2024, à 10:22
- xubu1957
Re : Installer les dépendances libssl et libldap du package libpq5 [Résolu]
Bonjour,
Je n'ai rien compris dans [SOLVED] Can't install PostgreSQL 9.6 on Linux Mint 21 - Depends: libldap-2.4-2 (>= 2.4.7) but it is not installable
Montre aussi d'éventuels paquets cassés :
dpkg -l | grep -v ^ii
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
En ligne
#3 Le 10/04/2024, à 10:44
- iznobe
Re : Installer les dépendances libssl et libldap du package libpq5 [Résolu]
Bonjour le probleme vient problablement de cette source , trop ancienne et inadaptée a la distribution , puisqu ' il s ' agit de jammy et non de focal :
Hit:7 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal pgadmin4 InRelease
montre :
cat /etc/apt/sources.list.d/*postgresql*
cette page indique la procedure à suivre pour mettre en place le fichier sources correct pour jammy https://www.postgresql.org/download/linux/ubuntu/
il faut d ' abord supprimer l ' ancienne fichier reference postgresql pour focal , bien entendu
Dernière modification par iznobe (Le 10/04/2024, à 10:47)
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#4 Le 10/04/2024, à 10:59
- Pips
Re : Installer les dépendances libssl et libldap du package libpq5 [Résolu]
Bonjour,
Je n'ai rien compris dans [SOLVED] Can't install PostgreSQL 9.6 on Linux Mint 21 - Depends: libldap-2.4-2 (>= 2.4.7) but it is not installable
Montre aussi d'éventuels paquets cassés :
dpkg -l | grep -v ^ii
Oui, j'avais vu la page que tu partages mais je n'ai pas réussi à y trouver de solution qui fonctionne pour mon problème ; je n'étais même pas sûr que la cause était la même.
Voilà le retour demandé :
$ dpkg -l | grep -v ^ii
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==========================================-=======================================-============-===========================================================================================================================================================================================================================================================================================================================================================================================================================================
rc libapache2-mod-wsgi-py3 4.9.0-1ubuntu0.1 amd64 Python 3 WSGI adapter module for Apache
rc postgresql-client-common 238 all manager for multiple PostgreSQL client versions
rc postgresql-common 238 all PostgreSQL database-cluster manager
rc sysstat 12.5.2-2ubuntu0.2 amd64 system performance tools for Linux
Hors ligne
#5 Le 10/04/2024, à 11:01
- Pips
Re : Installer les dépendances libssl et libldap du package libpq5 [Résolu]
Bonjour le probleme vient problablement de cette source , trop ancienne et inadaptée a la distribution , puisqu ' il s ' agit de jammy et non de focal :
Hit:7 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal pgadmin4 InRelease
montre :
cat /etc/apt/sources.list.d/*postgresql*
cette page indique la procedure à suivre pour mettre en place le fichier sources correct pour jammy https://www.postgresql.org/download/linux/ubuntu/
il faut d ' abord supprimer l ' ancienne fichier reference postgresql pour focal , bien entendu
Hello ! Je regarde ton lien tout de suite, en attendant voilà le résultat de ta commande :
$ cat /etc/apt/sources.list.d/*postgresql*
cat: '/etc/apt/sources.list.d/*postgresql*': No such file or directory
Hors ligne
#6 Le 10/04/2024, à 13:31
- iznobe
Re : Installer les dépendances libssl et libldap du package libpq5 [Résolu]
bon , comme j' y suis allé au petit bonheur la chance esperant trouvé le bon fichier du 1er coup , mais non ...
montre les sources au complet stp :
find /etc/apt -type f -regex ".*\(list\|sources\).*" -exec bash -c 'echo -e "\n\t$1\n" ; [ "${1##*.}" = "list" -o "${1##*.}" = "sources" ] && cat -n "$1"' _ '{}' \;
et logiquement le bon fichier devrait etre :
cat /etc/apt/sources.list.d/pgdg.list
Dernière modification par iznobe (Le 10/04/2024, à 13:33)
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#7 Le 10/04/2024, à 13:45
- Pips
Re : Installer les dépendances libssl et libldap du package libpq5 [Résolu]
bon , comme j' y suis allé au petit bonheur la chance esperant trouvé le bon fichier du 1er coup , mais non ...
montre les sources au complet stp :find /etc/apt -type f -regex ".*\(list\|sources\).*" -exec bash -c 'echo -e "\n\t$1\n" ; [ "${1##*.}" = "list" -o "${1##*.}" = "sources" ] && cat -n "$1"' _ '{}' \;
et logiquement le bon fichier devrait etre :
cat /etc/apt/sources.list.d/pgdg.list
Alors voilà les sources au complet :
$ find /etc/apt -type f -regex ".*\(list\|sources\).*" -exec bash -c 'echo -e "\n\t$1\n" ; [ "${1##*.}" = "list" -o "${1##*.}" = "sources" ] && cat -n "$1"' _ '{}' \;
/etc/apt/sources.list
1 # deb cdrom:[Ubuntu 22.04.4 LTS _Jammy Jellyfish_ - Release amd64 (20240220)]/ jammy main restricted
2
3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
4 # newer versions of the distribution.
5 deb http://fr.archive.ubuntu.com/ubuntu/ jammy main restricted
6 # deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy main restricted
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://fr.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
11 # deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
12
13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
14 ## team. Also, please note that software in universe WILL NOT receive any
15 ## review or updates from the Ubuntu security team.
16 deb http://fr.archive.ubuntu.com/ubuntu/ jammy universe
17 # deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy universe
18 deb http://fr.archive.ubuntu.com/ubuntu/ jammy-updates universe
19 # deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy-updates universe
20
21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
22 ## team, and may not be under a free licence. Please satisfy yourself as to
23 ## your rights to use the software. Also, please note that software in
24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
25 ## security team.
26 deb http://fr.archive.ubuntu.com/ubuntu/ jammy multiverse
27 # deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy multiverse
28 deb http://fr.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
29 # deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
30
31 ## N.B. software from this repository may not have been tested as
32 ## extensively as that contained in the main release, although it includes
33 ## newer versions of some applications which may provide useful features.
34 ## Also, please note that software in backports WILL NOT receive any review
35 ## or updates from the Ubuntu security team.
36 deb http://fr.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
37 # deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
38
39 deb http://security.ubuntu.com/ubuntu jammy-security main restricted
40 # deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
41 deb http://security.ubuntu.com/ubuntu jammy-security universe
42 # deb-src http://security.ubuntu.com/ubuntu jammy-security universe
43 deb http://security.ubuntu.com/ubuntu jammy-security multiverse
44 # deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse
45
46 # This system was installed using small removable media
47 # (e.g. netinst, live or single CD). The matching "deb cdrom"
48 # entries were disabled at the end of the installation process.
49 # For information about how to configure apt package sources,
50 # see the sources.list(5) manual.
/etc/apt/sources.list.d/docker.list
1 deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu jammy stable
/etc/apt/sources.list.d/pgadmin4.list
1 deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal/ pgadmin4 main
/etc/apt/sources.list.d/slack.list
1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
2 # You may comment out this entry, but any other modifications may be lost.
3 deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main
/etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-jammy.list
1 deb https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu/ jammy main
2 # deb-src https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu/ jammy main
Et rebelote pour la deuxième instruction :
$ cat /etc/apt/sources.list.d/pgdg.list
cat: /etc/apt/sources.list.d/pgdg.list: No such file or directory
Hors ligne
#8 Le 10/04/2024, à 14:13
- iznobe
Re : Installer les dépendances libssl et libldap du package libpq5 [Résolu]
ok , avec les sources completes , on a enfin trouvé le bon
du coup , pour supprimer le depot obsolete :
cd /etc/apt/sources.list.d/ && sudo rm -v pgadmin4.list ; cd
Ensuite tu passes les commandes du lien :
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update
puis montre :
apt list --upgradable
sudo apt full-upgrade
puis relance la commande de depart qui posait probleme , voir ce que ca dis .
si les meme problemes de depandances sont toujours present , on cherchera la cause , tu montreras alors :
apt policy libpq5 libldap libssl1.1
Dernière modification par iznobe (Le 10/04/2024, à 14:15)
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#9 Le 11/04/2024, à 15:43
- Pips
Re : Installer les dépendances libssl et libldap du package libpq5 [Résolu]
ok , avec les sources completes , on a enfin trouvé le bon
du coup , pour supprimer le depot obsolete :cd /etc/apt/sources.list.d/ && sudo rm -v pgadmin4.list ; cd
Ensuite tu passes les commandes du lien :
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update
puis montre :
apt list --upgradable
sudo apt full-upgrade
puis relance la commande de depart qui posait probleme , voir ce que ca dis .
si les meme problemes de depandances sont toujours present , on cherchera la cause , tu montreras alors :
apt policy libpq5 libldap libssl1.1
C'est nickel c'est réglé, merci beaucoup !
Hors ligne