> I did as you said, but I got the following error.
> My own solution is actually as follows, but I need to get your opinion.
>
> Error message;
>
> Software managment command is not configured.,Non-zero exitcode returned by software management command. Output:sudo /usr/bin/apt -y install bacula-postgresql dbconfig-no-thanks 2>&1 WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Reading package lists... Building dependency tree... Reading state information... 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: bacula-postgresql : PreDepends: dbconfig-pgsql but it is not going to be installed E: Unable to correct problems, you have held broken packages.
> The path I followed for the solution (I actually interrupted what I was doing, your opinion is important);
Hi Meth,
OK, I see. Thanks for performing this test.
It happens because the bacula-postgresql package from Bacula.org has
defined the following pre-dependencies:
Pre-Depends: debconf (>= 1.4.30) | debconf-2.0, dbconfig-common, dbconfig-pgsql
It could work if there would be:
Pre-Depends: debconf (>= 1.4.30) | debconf-2.0, dbconfig-common,
dbconfig-pgsql | dbconfig-no-thanks
but it isn't there.
So, we need to install the storage daemon in another way.
In the OS profile in the storage installation command could you put
this command?
/usr/bin/sh -c DEBIAN_FRONTEND=noninteractive\ /usr/bin/apt\ -y\
install\ bacula-postgresql
The backslashes are correct, please preserve them as they are in this
command. This method uses noninteractive mode, so the packages will be
installed with correct states (no iF). I tested it with the
bacula-postgresql package and it works well.
Once it is done, you need to deploy Bacularis to that host once again
and at the end run the storage daemon installation on the Bacularis
interface.
For your question about this command:
sudo apt --fix-broken install
yes, I think it is correct and can fix this installation. For the long
term solution for deploying on this host and other hosts, the above
way with DEBIAN_FRONTEND variable can be more effective.