"Unable to correct problems, you have held broken packages." from fresh install on fresh Debian 10

My YunoHost server

Hardware: Proxmox VM - 2048mb ram, 128gb space, 4 cores.
YunoHost version: Whatever is installed with “curl https://install.yunohost.org | bash”
I have access to my server : Through SSH and through proxmox
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I run “curl https://install.yunohost.org | bash” on a completely 100% fresh Debian 10 VM, it goes through the installation and then spits out the following log:

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:
 postfix : Depends: ssl-cert but it is not going to be installed
 yunohost : Depends: python3-requests but it is not going to be installed
            Depends: python3-lexicon but it is not going to be installed
            Depends: openssl but it is not going to be installed
            Depends: ca-certificates but it is not going to be installed
            Depends: dovecot-core but it is not going to be installed
            Depends: dovecot-ldap but it is not going to be installed
            Depends: dovecot-lmtpd but it is not going to be installed
            Depends: dovecot-managesieved but it is not going to be installed
            Depends: dovecot-antispam but it is not going to be installed
            Depends: rspamd but it is not going to be installed
            Depends: metronome (>= 3.14.0)
            Recommends: python3-pip but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
[^[[1m^[[31mFAIL^[[0m] Installation of Yunohost packages failed
[^[[1m^[[34mINFO^[[0m] Installation logs are available in /var/log/yunohost-installation_20220326_201945.log

My sources.list file:

deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free

deb http://deb.debian.org/debian buster-backports main contrib non-free
deb-src http://deb.debian.org/debian buster-backports main contrib non-free

deb http://security.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security/ buster/updates main contrib non-free

Although I’ve also tried

deb http://ftp.us.debian.org/debian/ buster main InRelease contrib non-free
deb-src http://ftp.us.debian.org/debian/ buster main InRelease contrib non-free

deb http://ftp.us.debian.org/debian/ buster-updates main InRelease contrib non-free
deb-src http://ftp.us.debian.org/debian/ buster-updates main InRelease contrib non-free

deb http://security.debian.org/ buster/updates main InRelease contrib non-free
deb-src http://security.debian.org/ buster/updates main InRelease contrib non-free

As well as

# Line commented out by installer because it failed to verify:
deb http://security.debian.org/debian-security buster/updates main
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster-updates main

As per a suggestion here on a similar issue, I tried running:

apt install yunohost metronome postfix dovecot-core openssl

and got:

Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version (1.1.1n-0+deb10u1).
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:
 yunohost : Conflicts: openssl (>= 1.1.1g) but 1.1.1n-0+deb10u1 is to be installed
E: Unable to correct problems, you have held broken packages.

I’ve checked, I have no held packages at all.

I solved it by installing aptitude, running ‘aptitude install yunohost’, then running the install script again.

3 Likes

That fixed it for me. Thank you!

Using VPS with Web VNC :

  • Fresh Install with root account.
  • Sign in as root.
  • apt install aptitude
  • wget https://install.yunohost.org/bullseye -O install_script
  • bash install_script -d testing
  • (Install will fail)
  • aptitude install yunohost
  • Select yes to both prompts about removing/upgrading/downgrading packages.
  • bash install_script -d testing

NB: a new yunohost version has been released to fix that issue.

2 Likes

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