Linux ubuntu apt get install all fiald?rsyslog出现一些错误

Linux ubuntu apt get install all fiald?rsyslog出现一些错误,linux,ubuntu,Linux,Ubuntu,这就是我遇到的错误。 首先,我只想重新安装mysql。 当我重新启动mysql服务时, ubuntu给我一个unkonw实例错误。 所以,我重新安装它,然后,我不能再安装它。似乎apt get安装未工作。首先停止rsyslog The user `syslog' is already a member of `adm'. Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd /usr/sbin/invoke-rc.d: 1:

这就是我遇到的错误。 首先,我只想重新安装mysql。 当我重新启动mysql服务时, ubuntu给我一个
unkonw实例
错误。
所以,我重新安装它,然后,我不能再安装它。似乎apt get安装未工作。

首先停止rsyslog

The user `syslog' is already a member of `adm'.
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
/usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: /sbin/runlevel: not found
start: Job failed to start
invoke-rc.d: initscript rsyslog, action "restart" failed.
dpkg: error processing package rsyslog (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up ppp (2.4.5-5.1ubuntu2.2) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: Service gdm has to be enabled to start service pppd-dns
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package ppp (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up liblua5.2-0:amd64 (5.2.3-1) ...
Setting up librpmio3 (4.11.1-3ubuntu0.1) ...
Setting up debugedit (4.11.1-3ubuntu0.1) ...
Setting up librpm3 (4.11.1-3ubuntu0.1) ...
Setting up librpmbuild3 (4.11.1-3ubuntu0.1) ...
Setting up librpmsign1 (4.11.1-3ubuntu0.1) ...
Setting up rpm-common (4.11.1-3ubuntu0.1) ...
Setting up rpm2cpio (4.11.1-3ubuntu0.1) ...
Setting up rpm (4.11.1-3ubuntu0.1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Errors were encountered while processing:
 rsyslog
 ppp
E: Sub-process /usr/bin/dpkg returned an error code (1)
然后尝试:

 sudo service rsyslog stop
 sudo systemctl stop rsyslog.service
 sudo systemctl disable rsyslog.service

尝试运行
sudo-apt-get-clean和sudo-apt-get-update
,然后安装软件包。它将清除并重建现有列表。
sudo-apt-get-clean和sudo-apt-get-update
此cammond不返回任何内容。。您可以检查
/var/log/apt/term.log
apt日志文件。日志文件可以帮助您解决问题。此外,如果存在某些依赖项问题,请先运行此命令
apt get install-f
 sudo apt-get -f install