升级到 Ubuntu 16.04 后无法使用 Bacula

升级到 Ubuntu 16.04 后无法使用 Bacula

我最近将服务器升级到 Ubuntu 16.04,从那时起,我就不能再使用 bconsole 了。director 配置似乎有问题。我注意到/etc/init.d,在 中有一个名为 的文件bacula-director,而不是bacula-dir我在文档中读到的 (Bacula 文档)。如果我尝试按照文档所述运行 bacula-dir,我会得到以下结果:

$ sudo systemctl restart bacula-dir
Failed to restart bacula-dir.service: Unit bacula-dir.service not found.

运行 bacula-director 可以正确启动,尽管它给出了这个奇怪的提示Bad; vendor preset(如果我在其他服务如 apache2、apport 等上发出相同的命令也会出现这个提示 - 所以我不认为这是问题所在):

$ sudo systemctl restart bacula-director
$ sudo systemctl status bacula-director
● bacula-director.service - LSB: Start Bacula Director at boot time
   Loaded: loaded (/etc/init.d/bacula-director; bad; vendor preset: enabled)
   Active: active (exited) since lun 2016-08-22 15:15:45 CEST; 14s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 31465 ExecStop=/etc/init.d/bacula-director stop (code=exited, status=0/SUCCESS)
  Process: 31476 ExecStart=/etc/init.d/bacula-director start (code=exited, status=0/SUCCESS)

aoû 22 15:15:45 servex systemd[1]: Stopped LSB: Start Bacula Director at boot time.
aoû 22 15:15:45 servex systemd[1]: Starting LSB: Start Bacula Director at boot time...
aoû 22 15:15:45 servex bacula-director[31476]:  * Starting Bacula Director... bacula-dir
aoû 22 15:15:45 servex bacula-director[31476]:    ...done.
aoû 22 15:15:45 servex systemd[1]: Started LSB: Start Bacula Director at boot time.

如果我直接运行 bacula-dir,最终会得到以下结果:

$ sudo bacula-dir -tvd99 bacula-dir: dird.c:194-0 Debug level = 99 bacula-dir: address_conf.c:264-0 Initaddr 0.0.0.0:9101 bacula-dir: dir_plugins.c:148-0 Load dir plugins bacula-dir: dir_plugins.c:150-0 No dir plugin dir! bacula-dir: symbol lookup error: /usr/lib/bacula/libbaccats-7.0.5.so: undefined symbol: mysql_init

但我无法使用控制台:

$ sudo bconsole
Connecting to Director localhost:9101
$

有什么提示可以让系统重新启动并运行吗?

答案1

在文件 /etc/apt/sources.list 中添加以下行

deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main multiverse universe

然后做

apt-get update

然后

apt-get install bacula/xenial-proposed

相关内容