Saw this article recently and decided to test Bacula.
Found some instructions here, which while comprehensive, are just completely overwhelming.
Went looking for an alternative guide that was easier to follow and found this, which looked promising.
However, when I get to step 2, the instructions say:
apt-get install bacula -y
Which on the face of it, seems likely to be correct.
But on my system, I see:
sudo apt-get install bacula -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package bacula
sudo apt-cache search bacula
mtx - controls autoloaders and tape libraries
bacula-doc - Documentation for Bacula
The bacula.org documentation describes how to build Bacula from the source, and possibly somewhere buried in the doc are the commands to install a pre-built package. But I did a search on apt-get and got no hits.
In short, I’m interested in trying Bacula, but if I’m going to do so I need to find some alternative guide to bacula.org
Would appreciate advice on a more user-friendly guide than bacula.org and / or some advice regarding command
According to this (Bug #1973322 “Bacula for 22.04/Jammy” : Bugs : bacula package : Ubuntu) they removed the bacula package because of some bug. You can compile it, but it is more of a headaches. I recommend using Debian 12 instead of Ubuntu 20.22 LTS if you need binary packages. It is faster and safer than building manually and then forgetting to update packages for security or other reasons. From Debian 12:
apt-cache search ^bacula
I get full package list:
bacula - network backup service - metapackage
bacula-bscan - network backup service - bscan tool
bacula-client - network backup service - client metapackage
bacula-common - network backup service - common support files
bacula-common-mysql - network backup service - MySQL common files
bacula-common-pgsql - network backup service - PostgreSQL common files
bacula-common-sqlite3 - network backup service - SQLite v3 common files
bacula-console - network backup service - text console
bacula-console-qt - network backup service - Bacula Administration Tool
bacula-director - network backup service - Director daemon
bacula-director-mysql - network backup service - MySQL storage for Director
bacula-director-pgsql - network backup service - PostgreSQL storage for Director
bacula-director-sqlite3 - network backup service - SQLite 3 storage for Director
bacula-fd - network backup service - file daemon
bacula-sd - network backup service - storage daemon
bacula-server - network backup service - server metapackage
bacula-tray-monitor - network backup service - Bacula Tray Monitor
bacula-doc - Documentation for Bacula
root@debian12-dr6:/home/zen# apt install mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package mysql-server 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 'mysql-server' has no installation candidate
A possible work-around is to use: mariadb-server instead of mysql-server. From what I have read the non-inclusion of the mysql packages is due to some licensing issue.
However, I don’t want to try this, if Bacula isn’t going to like it.
If I’m going to need mysql, I’d rather stuff around and figure out how to install the mysql package now.
$ type -a mysql_secure_installation
bash: type: mysql_secure_installation: not found
zen@debian12-dr6:/$ echo "$PATH"
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
When I performed the initial install of mysql-server, I don’t recall seeing any errors, a menu appeared, and I accepted the defaults.
And then the install appeared to complete without error.
I have just tried re-running the install (which perhaps is not a good idea).
Nevertheless errors are now being reported, which I didn’t see before.
zen@debian12-dr6:/$ sudo apt install mysql-server
[sudo] password for zen:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
mysql-community-client : Depends: libssl1.1 (>= 1.1.1) but it is not installable
Depends: mysql-community-client-core (= 8.0.34-1debian11) but it is not going to be installed
mysql-community-server-core : Depends: libssl1.1 (>= 1.1.1) but it is not installable
Recommends: mecab-ipadic-utf8 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So, I removed: mysql-apt-config
Restarted and re-installed
zen@debian12-dr6:~/Downloads$ sudo apt install ./mysql-apt-config_0.8.26-1_all.deb
[sudo] password for zen:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'mysql-apt-config' instead of './mysql-apt-config_0.8.26-1_all.deb'
The following NEW packages will be installed:
mysql-apt-config
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/18.1 kB of archives.
After this operation, 35.8 kB of additional disk space will be used.
Get:1 /home/zen/Downloads/mysql-apt-config_0.8.26-1_all.deb mysql-apt-config all 0.8.26-1 [18.1 kB]
Preconfiguring packages ...
Selecting previously unselected package mysql-apt-config.
(Reading database ... 148662 files and directories currently installed.)
Preparing to unpack .../mysql-apt-config_0.8.26-1_all.deb ...
Unpacking mysql-apt-config (0.8.26-1) ...
Setting up mysql-apt-config (0.8.26-1) ...
N: Download is performed unsandboxed as root as file '/home/zen/Downloads/mysql-apt-config_0.8.26-1_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
zen@debian12-dr6:~/Downloads$