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

**URL:** https://forum.yunohost.org/t/unable-to-update-the-system-new-install-of-yunohost-on-ovh-vps/18680
**Category:** Support
**Tags:** vps, ovh, install, french
**Created:** [February 2, 2022, 4:29pm UTC](https://forum.yunohost.org/t/unable-to-update-the-system-new-install-of-yunohost-on-ovh-vps/18680 "2022-02-02T16:29:53Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pilou](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/76d3ee/32.png) [@pilou](https://forum.yunohost.org/u/pilou)
#### Post date: [February 2, 2022, 4:29pm UTC](https://forum.yunohost.org/t/unable-to-update-the-system-new-install-of-yunohost-on-ovh-vps/18680/1 "2022-02-02T16:29:53Z")

</div>

### 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

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

```

Et j’obtiens **cette erreur**

```auto
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…**

```auto
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

```auto
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 😋

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [February 2, 2022, 7:34pm UTC](https://forum.yunohost.org/t/unable-to-update-the-system-new-install-of-yunohost-on-ovh-vps/18680/2 "2022-02-02T19:34:11Z")

</div>

Tu peux tenter un :

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

```

---

<div class="post-metadata">

### Author: ![pilou](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/76d3ee/32.png) [@pilou](https://forum.yunohost.org/u/pilou)
#### Post date: [February 2, 2022, 8:06pm UTC](https://forum.yunohost.org/t/unable-to-update-the-system-new-install-of-yunohost-on-ovh-vps/18680/3 "2022-02-02T20:06:44Z")

</div>

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

```auto
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 😕

```auto
  % 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

---

<div class="post-metadata">

### Author: ![pilou](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/76d3ee/32.png) [@pilou](https://forum.yunohost.org/u/pilou)
#### Post date: [February 3, 2022, 2:49pm UTC](https://forum.yunohost.org/t/unable-to-update-the-system-new-install-of-yunohost-on-ovh-vps/18680/4 "2022-02-03T14:49:42Z")

</div>

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

```auto
[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 😓

---

<div class="post-metadata">

### Author: ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)
#### Post date: [February 3, 2022, 8:10pm UTC](https://forum.yunohost.org/t/unable-to-update-the-system-new-install-of-yunohost-on-ovh-vps/18680/5 "2022-02-03T20:10:26Z")

</div>

> [@pilou](#):
>
> `main: line 540: locale-gen: command not found`

En cherchant je suis tombé sur

> <https://stackoverflow.com/questions/39760663/docker-ubuntu-bin-sh-1-locale-gen-not-found>

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)

> [@pilou](#):
>
> `main: line 484: adduser: command not found`

Puis pour cette erreur

> <https://unix.stackexchange.com/questions/565665/bash-adduser-command-not-found-debian-buster>

Recommande de lancer  
`su -`

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [February 3, 2022, 8:15pm UTC](https://forum.yunohost.org/t/unable-to-update-the-system-new-install-of-yunohost-on-ovh-vps/18680/6 "2022-02-03T20:15:56Z")

</div>

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 😕

> [@pilou](#):
>
> j’ai réussi à réparer l’installation

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

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [March 5, 2022, 8:16pm UTC](https://forum.yunohost.org/t/unable-to-update-the-system-new-install-of-yunohost-on-ovh-vps/18680/7 "2022-03-05T20:16:41Z")

</div>

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