Problème d'installation de Mastodon

Mon serveur YunoHost

Matériel: Raspberry Pi 3B+ à la maison
Version de YunoHost: 3.8.4.9
J’ai accès à mon serveur : En SSH
Êtes-vous dans un contexte particulier ou avez-vous effectué des modifications particulières sur votre instance ? : non

Description du problème

Bonjour, j’essaye d’installer Mastodon et l’installation échoue. Cela semble venir d’un problème de dépendance concernant libgbdm6.
Voici le log : https://paste.yunohost.org/raw/banabapuwe

Merci d’avance pour votre aide !

Est-ce que tu peux faire un apt policy libgdbm3 ?

Merci pour ton retour, la commande me donne ça :

libgdbm3:
  Installed: 1.8.3-14
  Candidate: 1.8.3-14
  Version table:
 *** 1.8.3-14 500
        500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
        100 /var/lib/dpkg/status

Mouarf ben je pige pas trop … j’ai l’impression que libgdbm6 est une fausse piste (c’est compliqué à expliquer mais quand l’installe des deps échoue, il essaye une commande censée donner + d’infos, mais là il y a un cas où il faut que libgdbm3
OU libgdbm6 soit installé mais dans cette commande il croit que les deux doivent être installé…)

Bref, sinon eventuellement ceci, mais j’suis pas convaincu :

apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core g++ libprotobuf-dev protobuf-compiler pkg-config gcc autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev redis-server redis-tools postgresql postgresql-contrib libidn11-dev libicu-dev libjemalloc-dev curl apt-transport-https --dry-run

(i.e. la même commande mais sans libgdbm6)

Ça me donne ça :

Reading package lists…
Building dependency tree…
Reading state information…
apt-transport-https is already the newest version (1.4.10).
autoconf is already the newest version (2.69-10).
autoconf set to manually installed.
build-essential is already the newest version (12.3).
curl is already the newest version (7.52.1-5+deb9u10).
file is already the newest version (1:5.30-1+deb9u3).
file set to manually installed.
g++ is already the newest version (4:6.3.0-4).
g++ set to manually installed.
gcc is already the newest version (4:6.3.0-4).
gcc set to manually installed.
imagemagick is already the newest version (8:6.9.7.4+dfsg-11+deb9u7).
imagemagick set to manually installed.
libgdbm3 is already the newest version (1.8.3-14).
pkg-config is already the newest version (0.29-4).
redis-server is already the newest version (3:3.2.6-3+deb9u3).
redis-server set to manually installed.
redis-tools is already the newest version (3:3.2.6-3+deb9u3).
redis-tools set to manually installed.
zlib1g-dev is already the newest version (1:1.2.8.dfsg-5).
zlib1g-dev set to manually installed.
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:
libssl-dev : Depends: libssl1.1 (= 1.1.0l-1~deb9u1) but 1.1.1g-1+0~20200421.17+debi an9~1.gbpf6902f is to be installed
Recommends: libssl-doc but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

:confused:

Alrighty on avance :stuck_out_tongue_winking_eye:

Est-ce que tu peux faire un apt policy libssl1.1

:smiley: Ça donne ça :

libssl1.1:
Installed: 1.1.1g-1+0~20200421.17+debian9~1.gbpf6902f
Candidate: (none)
Version table:
*** 1.1.1g-1+0~20200421.17+debian9~1.gbpf6902f -1
600 https://packages.sury.org/php stretch/main armhf Packages
100 /var/lib/dpkg/status
1.1.0l-1~deb9u1 500
500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages

eeeeet un apt policy libssl-dev ?

libssl1.1:
Installed: 1.1.1g-1+0~20200421.17+debian9~1.gbpf6902f
Candidate: (none)
Version table:
*** 1.1.1g-1+0~20200421.17+debian9~1.gbpf6902f -1
600 https://packages.sury.org/php stretch/main armhf Packages
100 /var/lib/dpkg/status
1.1.0l-1~deb9u1 500
500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
root@nompao:/etc# apt policy libssl-dev
libssl-dev:
Installed: (none)
Candidate: 1.1.0l-1~deb9u1
Version table:
1.1.1g-1+0~20200421.17+debian9~1.gbpf6902f -1
600 https://packages.sury.org/php stretch/main armhf Packages
1.1.0l-1~deb9u1 500
500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages

J’ai réessayé la longue ligne de commande et ça me donne le même résultat que précédemment. :confused:

Oui c’est normal car ces commandes ne changent rien, elles permettent juste de comprendre ce qu’il se passe…

Je vais probablement parler chinois mais pour les gens techniques qui pourraient passer par la :

  • c’est probablement un “relicat” du merdier avec Sury
  • à mon avis c’est du au fait que libssl1.1 était installé depuis sury, mais pas libssl-dev
  • comme notre politique de pinning de sury, on est plus du tout censé installer libssl-dev ou libssl1.1 depuis sury (pinning -1) … mais avant ce n’était pas le cas, d’où le fait que libssl1.1 ait été installé depuis sury

Bref, pour t’en sortir a mon avis tu peux faire un :

apt install libssl-dev=.1.1g-1+0~20200421.17+debian9~1.gbpf6902f 

et ensuite la grosse commande avec --dry-run devrait marcher

Si c’est bien le cas, alors tu peux retenter l’install

Merci pour les explications, il manquait un 1 après le = dans ta dernière commande apt et après correction, cela semble être ok :

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
libssl-dev
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 1,617 kB of archives.
After this operation, 5,463 kB of additional disk space will be used.
Get:1 https://packages.sury.org/php stretch/main armhf libssl-dev armhf 1.1.1g-1+0~20200421.17+debian9~1.gbpf6902f [1,617 kB]
Fetched 1,617 kB in 0s (2,899 kB/s)
Selecting previously unselected package libssl-dev:armhf.
(Reading database … 67563 files and directories currently installed.)
Preparing to unpack …/libssl-dev_1.1.1g-1+0~20200421.17+debian9~1.gbpf6902f_armhf.deb …
Unpacking libssl-dev:armhf (1.1.1g-1+0~20200421.17+debian9~1.gbpf6902f) …
Setting up libssl-dev:armhf (1.1.1g-1+0~20200421.17+debian9~1.gbpf6902f) …

Par contre, la grosse commande avec --dry-run n’aboutit pas :

Reading package lists…
Building dependency tree…
Reading state information…
Package libssl-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libssl-doc

E: Package ‘libssl-dev’ has no installation candidate

Mokay … alors que dit un

apt policy libssl-dev

Voilà :

libssl-dev:
Installed: 1.1.1g-1+0~20200421.17+debian9~1.gbpf6902f
Candidate: (none)
Version table:
*** 1.1.1g-1+0~20200421.17+debian9~1.gbpf6902f -1
600 https://packages.sury.org/php stretch/main armhf Packages
100 /var/lib/dpkg/status
1.1.0l-1~deb9u1 500
500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages

Mouarf bon, tentons une autre stratégie :

apt install libssl-dev=1.1.0l-1~deb9u1 libssl1.1=1.1.0l-1~deb9u1 --allow-downgrades

(en vérifiant avant de valider qu’il n’enlève pas la moitié du système…)

Vu le long retour, je n’ai pas validé du coup :

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
bind9utils debhelper dh-autoreconf dh-strip-nondeterminism dns-root-data
dnsmasq dnsmasq-base dnsutils equivs fail2ban galera-3 gir1.2-glib-2.0 git
git-man guile-2.0-libs haveged intltool-debian jq ldap-utils libaio1
libarchive-zip-perl libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl
libdbd-ldap-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl
liberror-perl libexpat1-dev libfcgi-perl libfile-listing-perl
libfile-stripnondeterminism-perl libfont-afm-perl libgc1c2
libgirepository-1.0-1 libgsasl7 libhavege1 libhiredis0.13 libhtml-form-perl
libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl
libhtml-template-perl libhtml-tree-perl libhttp-cookies-perl
libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
libhttp-negotiate-perl libio-html-perl libjq1 libkyotocabinet16v5
liblua5.1-0 libluajit-5.1-2 liblwp-mediatypes-perl libmail-sendmail-perl
libmail-spf-perl libmailtools-perl libmailutils5 libmariadbclient18
libmcrypt4 libmemcached11 libmemcachedutil2 libnet-dns-perl libnet-http-perl
libnet-ip-perl libnet-smtp-ssl-perl libnetaddr-ip-perl
libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge
libnginx-mod-http-dav-ext libnginx-mod-http-echo
libnginx-mod-http-fancyindex libnginx-mod-http-geoip
libnginx-mod-http-headers-more-filter libnginx-mod-http-image-filter
libnginx-mod-http-lua libnginx-mod-http-ndk libnginx-mod-http-perl
libnginx-mod-http-subs-filter libnginx-mod-http-uploadprogress
libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter
libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream libnss-ldapd
libnss-myhostname libntlm0 libodbc1 libopendbx1 libopendbx1-sqlite3
libopendkim11 libpam-ldapd libpython-all-dev libpython-dev libpython2.7-dev
librbl1 libreadline5 libstemmer0d libsys-hostname-long-perl
libterm-readkey-perl libtimedate-perl libunbound2 libunwind8 libvbr2
libwww-robotrules-perl libyaml-0-2 lua-bitop lua-event lua-expat
lua-filesystem lua-json lua-ldap lua-lpeg lua-rex-pcre lua-sec lua-socket
lua-zlib mailutils-common mariadb-client-10.1 mariadb-client-core-10.1
mariadb-common mariadb-server mariadb-server-10.1 mariadb-server-core-10.1
moulinette mysql-common nginx-common nginx-extras nslcd nslcd-utils
opendkim-tools php-curl php-fpm php-gettext php-intl php-ldap php-mcrypt
php-mysql php-php-gettext php7.0-curl php7.0-intl php7.0-ldap php7.0-mcrypt
php7.0-mysql php7.4-curl php7.4-intl php7.4-ldap php7.4-mysql po-debconf
postfix-sqlite postsrsd procmail python-all python-all-dev
python-argcomplete python-bottle python-cffi-backend python-chardet
python-crypto python-cryptography python-dbus python-dev python-dnspython
python-enum34 python-gevent python-gevent-websocket python-gi
python-greenlet python-idna python-ipaddress python-jinja2 python-keyring
python-keyrings.alt python-ldap python-markupsafe python-miniupnpc
python-openssl python-packaging python-pkg-resources python-psutil
python-publicsuffix python-pyasn1 python-pyparsing python-secretstorage
python-setuptools python-six python-toml python-tz python-urllib3
python-wheel python-xdg python-yaml python2.7-dev python3-chardet
python3-pkg-resources python3-pyinotify python3-six python3-systemd
python3-urllib3 slapd socat ssowat sudo-ldap sysstat unattended-upgrades
unscd
Use ‘apt autoremove’ to remove them.
The following packages will be REMOVED:
ca-certificates dovecot-antispam dovecot-core dovecot-imapd dovecot-ldap
dovecot-lmtpd dovecot-managesieved dovecot-sieve liblwp-protocol-https-perl
libwww-perl mailutils metronome openssl postfix postfix-ldap postfix-pcre
postfix-policyd-spf-perl postgresql-9.6 postgresql-common
postgresql-contrib-9.6 python-pip python-pip-whl python-requests
python3-requests rspamd ssh-import-id ssl-cert yunohost yunohost-admin
The following packages will be DOWNGRADED:
libssl-dev libssl1.1
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
yunohost python-requests (due to yunohost) openssl (due to yunohost)
ca-certificates (due to yunohost) postfix (due to yunohost)
postfix-ldap (due to yunohost) postfix-policyd-spf-perl (due to yunohost)
postfix-pcre (due to yunohost) dovecot-core (due to yunohost)
dovecot-ldap (due to yunohost) dovecot-lmtpd (due to yunohost)
dovecot-managesieved (due to yunohost) dovecot-antispam (due to yunohost)
rspamd (due to yunohost) mailutils (due to yunohost)
metronome (due to yunohost)
0 upgraded, 0 newly installed, 2 downgraded, 29 to remove and 8 not upgraded.
Need to get 1,387 kB/2,506 kB of archives.
After this operation, 85.5 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase ‘Yes, do as I say!’
?]