[FAIL] Unable to install dependencies to install script "yunohost"

Hello. I encounter such an error during the initial installation phase. How will I get over this? I’m trying to install it on Debian 11 vps.

Running upgrade_system
Hit:1 Index of /debian-security bullseye-security InRelease
Hit:2 Index of /debian bullseye-updates InRelease
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
libtext-iconv-perl is already the newest version (1.7-7+b1).
The following package was automatically installed and is no longer required:
linux-image-5.10.0-18-amd64
Use ‘apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists…
Building dependency tree…
Reading state information…
grub-common is already the newest version (2.06-3~deb11u6).
grub2-common is already the newest version (2.06-3~deb11u6).
The following package was automatically installed and is no longer required:
linux-image-5.10.0-18-amd64
Use ‘apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists…
Building dependency tree…
Reading state information…
Calculating upgrade…
The following package was automatically installed and is no longer required:
linux-image-5.10.0-18-amd64
Use ‘apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[ESC[1mESC[34mINFOESC[0m] Running install_script_dependencies
Hit:1 Index of /debian-security bullseye-security InRelease
Hit:2 Index of /debian bullseye-updates InRelease
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
Package dialog 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

E: Package ‘dialog’ has no installation candidate
[ESC[1mESC[31mFAILESC[0m] Unable to install dependencies to install script
[ESC[1mESC[34mINFOESC[0m] Installation logs are available in /var/log/yunohost-installation_20231013_071619.log

I found a solution. I opened this file,

sudo nano /etc/apt/sources.list

I added these two lines at the top.

deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main

The installation is now up and running.

1 Like

Hi ersingo,

Great that you found a solution!

The lines that you added on top should have been in that file, if your VPS is running version 11 (Bullseye) of Debian.

If those lines were missing, maybe you like to compare the remaining lines as well. My Yunohost got those :

  • /etc/apt/sources.list
    deb http://ftp.debian.org/debian bullseye main contrib deb http://ftp.debian.org/debian bullseye-updates main contrib deb http://security.debian.org bullseye-security main contrib
  • /etc/apt/sources.list.d/yunohost.list
    deb http://forge.yunohost.org/debian/ bullseye stable
  • /etc/apt/sources.list.d/extra_php_version.list
    deb https://packages.sury.org/php/ bullseye main

The bottom two files are in the subdirectory /etc/apt/sources.list.d/

Good luck!

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