Trouble having installing rsyslog

classic Classic list List threaded Threaded
2 messages Options
Luv
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Trouble having installing rsyslog

Luv
I am having trouble while installing rsyslog. I am using ubuntu 16.04 LTS server.

$ sudo apt install rsyslog

This is how it ends,

Setting up rsyslog (8.27.0-0adiscon4xenial1) ...
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
A dependency job for rsyslog.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript rsyslog, action "start" failed.
‚óŹ rsyslog.service - System Logging Service
   Loaded: loaded (/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Thu 2017-07-06 13:00:49 IST; 6min ago
     Docs: man:rsyslogd(8)
           http://www.rsyslog.com/doc/
 Main PID: 14098 (code=exited, status=0/SUCCESS)

Jul 06 12:59:45 server16.04 systemd[1]: Starting System Logging Service...
Jul 06 12:59:45 server16.04 systemd[1]: Dependency failed for System Logging Service.
Jul 06 12:59:45 server16.04 systemd[1]: rsyslog.service: Job rsyslog.service/start failed with result 'dependency'.
Jul 06 13:00:49 server16.04 systemd[1]: Stopping System Logging Service...
Jul 06 13:00:49 server16.04 systemd[1]: Stopped System Logging Service.
Jul 06 13:07:17 server16.04 systemd[1]: Dependency failed for System Logging Service.
Jul 06 13:07:17 server16.04 systemd[1]: rsyslog.service: Job rsyslog.service/start failed with result 'dependency'.
dpkg: error processing package rsyslog (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 rsyslog
E: Sub-process /usr/bin/dpkg returned an error code (1)


I tried solving this by these questions, https://askubuntu.com/questions/489195/package-rsyslog-is-not-configured-yet

https://serverfault.com/questions/751494/rsyslog-upgrade-fails-sub-process-usr-bin-dpkg-returned-an-error-code-1

But none of them solved my problem.

What is the issure here ? and the solution also.
Luv
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Trouble having installing rsyslog

Luv
luvpreet@server16:~$ sudo journalctl -xe
-- The start-up result is done.
Jul 06 13:17:42 server16.04 systemd[1]: Reloading.
Jul 06 13:17:42 server16.04 systemd[1]: apt-daily.timer: Adding 5h 26min 22.551005s random time.
Jul 06 13:17:42 server16.04 systemd[1]: snapd.refresh.timer: Adding 15min 1.251401s random time.
Jul 06 13:17:42 server16.04 systemd[1]: Started ACPI event daemon.
-- Subject: Unit acpid.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit acpid.service has finished starting up.
--
-- The start-up result is done.
Jul 06 13:17:42 server16.04 systemd[1]: Reloading.
Jul 06 13:17:42 server16.04 systemd[1]: snapd.refresh.timer: Adding 3h 29min 2.679944s random time.
Jul 06 13:17:42 server16.04 systemd[1]: apt-daily.timer: Adding 11h 48min 13.712621s random time.
Jul 06 13:17:42 server16.04 systemd[1]: syslog.socket: Socket service syslog.service not loaded, refusing.
Jul 06 13:17:42 server16.04 systemd[1]: Failed to listen on Syslog Socket.
-- Subject: Unit syslog.socket has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit syslog.socket has failed.
--
-- The result is failed.
Jul 06 13:17:42 server16.04 systemd[1]: Dependency failed for System Logging Service.
-- Subject: Unit rsyslog.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit rsyslog.service has failed.
--
-- The result is dependency.
Jul 06 13:17:42 server16.04 systemd[1]: rsyslog.service: Job rsyslog.service/start failed with result 'dependency'.
Jul 06 13:17:42 server16.04 systemd[1]: Started ACPI event daemon.
-- Subject: Unit acpid.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit acpid.service has finished starting up.
--
-- The start-up result is done.
Loading...