[Unable to update the system] New install of Yunohost on OVH VPS

Mon serveur YunoHost

Matériel: VPS bought online on OVH
Version de YunoHost: **
J’ai accès à mon serveur :** En SSH
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Si oui, expliquer:

Description du problème

Bonjour à tous,
J’ai un petit soucis lors de ma première installation de Yunohost sur un VPS OVH. C’est mon tout premier serveur donc je découvre et j’apprends. Alors j’avoue que la je viens chercher de l’aide parce que je comprends pas tout et j’ai pas trouvé de topic sur ce même sujet…
Mon soucis c’est que je lance l’installation de Yunohost avec cette commande

curl https://install.yunohost.org | bash

Et j’obtiens cette erreur

curl https://install.yunohost.org | bash
Reading package lists...
Building dependency tree...
Reading state information...
dialog is already the newest version (1.3-20190211-1).
gnupg is already the newest version (2.2.12-1+deb10u1).
lsb-release is already the newest version (10.2019051400).
whiptail is already the newest version (0.52.20-8).
wget is already the newest version (1.20.1-1.1).
The following NEW packages will be installed:
  apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 149 kB of archives.
After this operation, 156 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 apt-transport-https all 1.8.2.3 [149 kB]
Fetched 149 kB in 0s (2,272 kB/s)
Selecting previously unselected package apt-transport-https.
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%$
Preparing to unpack .../apt-transport-https_1.8.2.3_all.deb ...
Unpacking apt-transport-https (1.8.2.3) ...
Setting up apt-transport-https (1.8.2.3) ...
[^[[1m^[[34mINFO^[[0m] Running create_custom_config
[^[[1m^[[34mINFO^[[0m] Running confirm_installation
[^[[1m^[[34mINFO^[[0m] Running manage_sshd_config
[^[[1m^[[34mINFO^[[0m] Running fix_locales
Reading package lists...
Building dependency tree...
Reading state information...
locales is already the newest version (2.28-10).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[^[[1m^[[34mINFO^[[0m] Running setup_package_source
[^[[1m^[[34mINFO^[[0m] Running apt_update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Get:3 http://forge.yunohost.org/debian buster InRelease [18.2 kB]
Hit:4 http://deb.debian.org/debian buster-updates InRelease
Get:5 http://forge.yunohost.org/debian buster/stable amd64 Packages [6,168 B]
Fetched 24.4 kB in 0s (51.8 kB/s)
Reading package lists...
[^[[1m^[[34mINFO^[[0m] Running register_debconf
[^[[1m^[[34mINFO^[[0m] Running workarounds_because_sysadmin_sucks
[^[[1m^[[34mINFO^[[0m] Workaround for avahi : creating avahi user with uid 769
[^[[1m^[[31mFAIL^[[0m] Unable to run stupid workarounds
[^[[1m^[[34mINFO^[[0m] Installation logs are available in /var/log/yunohost-installation_20220202_154807.log

J’ai relancé une installation après ca (j’aurais peut être pas du ) et j’obtiens ca…

curl https://install.yunohost.org | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22546  100 22546    0     0   239k      0 --:--:-- --:--:-- --:--:--  239k
[INFO] Running upgrade_system
[FAIL] Unable to update the system
[INFO] Installation logs are available in /var/log/yunohost-installation_20220202_160041.log

Le log de l’installation

Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 http://forge.yunohost.org/debian buster InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
libtext-iconv-perl is already the newest version (1.7-5+b7).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 debhelper : Depends: dpkg-dev (>= 1.18.2~) but it is not going to be installed
             Depends: dwz but it is not going to be installed
             Depends: libdpkg-perl (>= 1.17.14) but it is not going to be installed
             Depends: man-db but it is not going to be installed
             Depends: po-debconf but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
[^[[1m^[[31mFAIL^[[0m] Unable to update the system
[^[[1m^[[34mINFO^[[0m] Installation logs are available in /var/log/yunohost-installation_20220202_160041.log


Un grand merci par avance à celui qui pourra m’aider :yum:

Tu peux tenter un :

apt install debhelper dpkg-dev dwz libdpkg-perl man-db po-debconf 

Merci pour ta réponse @Aleks !
Alors j’ai rentré la commande en root, j’ai eu cette réponse:

apt install debhelper dpkg-dev dwz libdpkg-perl man-db po-debconf 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
debhelper is already the newest version (12.1.1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 dpkg-dev : Depends: patch (>= 2.7) but it is not going to be installed
            Depends: make
            Recommends: build-essential but it is not going to be installed
            Recommends: fakeroot
            Recommends: libalgorithm-merge-perl but it is not going to be installed
 man-db : Depends: groff-base (>= 1.18.1.1-15) but it is not going to be installed
          Depends: libpipeline1 (>= 1.5.0) but it is not going to be installed
 po-debconf : Depends: gettext (>= 0.16) but it is not going to be installed
              Depends: intltool-debian (>= 0.34.2+20060512) but it is not going to be installed
              Recommends: libmail-sendmail-perl but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Et puis quand je relance l’installation j’ai ca :confused:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22546  100 22546    0     0   268k      0 --:--:-- --:--:-- --:--:--  268k
[INFO] Running upgrade_system
[FAIL] Unable to update the system
[INFO] Installation logs are available in /var/log/yunohost-installation_20220202_200523.log

Si je comprends bien, il me manque des paquets c’est ca ?
Merci pour ton aide

Ok j’ai réussi à réparer l’installation mais j’ai toujours cette erreur

[INFO] Running upgrade_system
[INFO] Running install_script_dependencies
[INFO] Running create_custom_config
[INFO] Running confirm_installation
[INFO] Running manage_sshd_config
[INFO] Running fix_locales
main: line 540: locale-gen: command not found
[INFO] Running setup_package_source
[INFO] Running apt_update
[INFO] Running register_debconf
[INFO] Running workarounds_because_sysadmin_sucks
[INFO] Workaround for avahi : creating avahi user with uid 511
main: line 484: adduser: command not found
[FAIL] Unable to run stupid workarounds
[INFO] Installation logs are available in /var/log/yunohost-installation_20220203_144409.log

Je sais pas ce que c’est stupid workarounds et je trouve rien dessus sur les internet :sweat:

En cherchant je suis tombé sur

Il recommande de lancer cette commande
apt-get install -y locales
Et peut être une autre commande (mais j’ai l’impression que ça sert à définir les paramètres locaux, dans la commande qu’ils ont proposé il y a US, donc pas FR, peut être que tu devrais l’adapter à ton cas)

Puis pour cette erreur

Recommande de lancer
su -

NB : je ne sais pas trop de quel type de serveur VPS OVH, mais ton système ressemble à un système ultraminimal où il manque plein d’utilitaire de base … (tel que la commande adduser, locale-gen, et avant ça, man-db etc)

Idéalement, le script d’installation aurait dû devoir s’adapter mais c’est assez peu courant de tomber sur ce genre de setup, donc tu rencontres ces problèmes :confused:

N’hésites pas à nous partager les logs et/ou à dire comment tu as fait et quel était le problème, ça peut nous permettre d’améliorer le script pour que tout le monde profite de ton expérience

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.