用 syslog-ng 替换 rsyslog 依赖于 sylog-ng-core

用 syslog-ng 替换 rsyslog 依赖于 sylog-ng-core

我正在尝试用 替换默认syslogsyslog-ng

syslog-ng是我们的标准,我们想使用该syslog代理。

root@VirtualBox:~# apt-get install syslog-ng
Reading package lists... Done
Building dependency tree
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:
 syslog-ng : Depends: syslog-ng-core (>= 3.5.3)
             Depends: syslog-ng-mod-sql
             Depends: syslog-ng-mod-mongodb
             Depends: syslog-ng-mod-json
             Recommends: syslog-ng-mod-smtp
             Recommends: syslog-ng-mod-amqp
             Recommends: syslog-ng-mod-geoip
             Recommends: syslog-ng-mod-redis
             Recommends: syslog-ng-mod-stomp
E: Unable to correct problems, you have held broken packages.

答案1

您必须同时syslog-ng-core安装:syslog-ng

sudo apt-get install syslog-ng-core syslog-ng

相关内容