Docker PKGProbleResolver::解析生成的中断,这可能是由保留的包引起的

Docker PKGProbleResolver::解析生成的中断,这可能是由保留的包引起的,docker,fiware,object-storage,Docker,Fiware,Object Storage,我已尝试通过docker安装对象存储。但当我运行docker文件时,它会给出以下输出和错误消息: Unpacking rsyslog (8.12.0-1ubuntu2) ... Processing triggers for systemd (225-1ubuntu9.1) ... Setting up init-system-helpers (1.23ubunt3) ... Setting up cron (3.0p11-127ubuntu1) ... Adding group `cronta

我已尝试通过docker安装对象存储。但当我运行docker文件时,它会给出以下输出和错误消息:

Unpacking rsyslog (8.12.0-1ubuntu2) ...
Processing triggers for systemd (225-1ubuntu9.1) ...
Setting up init-system-helpers (1.23ubunt3) ...
Setting up cron (3.0p11-127ubuntu1) ...
Adding group `crontab' (GID 107) ...
Done.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: stop runlevel arguments (1) do not match cron Default-Stop values (none)
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libestr0 (0.1.10-1) ...
Setting up libjson-c2:amd64 (0.11-4ubuntu2) ...
Setting up libpopt0:amd64 (1.16-10) ...
Setting up logrotate (3.8.7-2ubuntu2) ...
Setting up ucf (3.0030) ...
Setting up rsyslog (8.12.0-1ubuntu2) ...

Creating config file /etc/rsyslog.d/50-default.conf with new version
Adding user `syslog' to group `adm' ...
Adding user syslog to group adm
Done.
invoke-rc.d: policy-rc.d denied execution of start.
Processing triggers for systemd (225-1ubuntu9.1) ...
Processing triggers for libc-bin (2.21-0ubuntu4.1) ...
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation of 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 package have unmet dependencies:
 initscripts : Recommends: psmisc but is is not going to be installed
               Breaks: sysklogd (< 1.5-6.2) but 1.5-6ubuntu1 is to be installed
 sysklogd : Depends: klogd or
                     linux-kernel-log-daemon
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
INFO[00038] The command [/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get install-y rsyslog; DEBIAN_FRONTEND=noninteractive apt-get install -y apt-utils net-tools curl
 gcc memcached rsync sqlite3 xfsprogs git-core libffi-dev pythong-setuptools sudo python-coverage python-dev python-nose python-simplejson python-xattr python-eventlet p
ython-greenlet python-pastedeploy python-netifaces python-pip python-dnspython python-mock sysklogd attr openssh-server openssh-client      python-1xml] returned a non-z
ero code: 100
解包rsyslog(8.12.0-1ubuntu2)。。。
正在处理systemd(225-1ubuntu9.1)的触发器。。。
正在设置初始化系统帮助程序(1.23ubunt3)。。。
正在设置cron(3.0p11-127ubuntu1)。。。
正在添加组“crontab”(GID 107)。。。
完成。
更新rc.d:警告:启动和停止操作不再受支持;回到违约状态
更新rc.d:警告:停止运行级参数(1)与cron默认停止值(无)不匹配
invoke rc.d:policy rc.d拒绝执行start。
正在设置libestr0(0.1.10-1)。。。
正在设置libjson-c2:amd64(0.11-4ubuntu2)。。。
正在设置libpopt0:amd64(1.16-10)。。。
设置日志旋转(3.8.7-2 UBUNTU2)。。。
正在设置ucf(3.0030)。。。
正在设置rsyslog(8.12.0-1ubuntu2)。。。
使用新版本创建配置文件/etc/rsyslog.d/50-default.conf
正在将用户“syslog”添加到组“adm”。。。
将用户syslog添加到组adm
完成。
invoke rc.d:policy rc.d拒绝执行start。
正在处理systemd(225-1ubuntu9.1)的触发器。。。
正在处理libc bin(2.21-0ubuntu4.1)的触发器。。。
正在阅读软件包列表。。。
正在构建依赖关系树。。。
正在读取状态信息。。。
无法安装某些软件包。这可能意味着你有
请求一种不可能的情况,即如果您使用的是不稳定的发行版,则某些必需的包尚未创建
或是被搬出了。
以下信息可能有助于解决这种情况:
以下包具有未满足的依赖项:
initscripts:建议:psmisc,但不会安装
中断:sysklogd(<1.5-6.2),但需安装1.5-6ubuntu1
sysklogd:取决于:klogd或
linux内核日志守护程序
E:错误,PKGProbleResolver::解析生成的中断,这可能是由保留的包引起的。
信息[00038]命令[/bin/sh-c DEBIAN_FRONTEND=noninteractive apt get install-y rsyslog;DEBIAN_FRONTEND=noninteractive apt get install-y apt utils net tools curl
gcc memcached rsync sqlite3 xfsprogs git core libffi dev pythong setuptools sudo python coverage python dev python nose python simplejson python xattr python eventlet p
ython greenlet python pastedeploy python netifaces python pip python dnspython python mock sysklogd attr openssh服务器openssh客户端python-1xml]返回了一个非z
能源监管局代码:100

要避免此错误,请将此行添加到docker文件中

RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d
RUN apt-get upgrade -y

RUN apt-get install -y ca-certificates inotify-tools pwgen supervisor unzip wget python-setuptools

RUN sed -i 's/^\(\[supervisord\]\)$/\1\nnodaemon=true/' /etc/supervisor/supervisord.conf

为了让文字截图成为你文章中的真实文字,我将截图转录到你的文章正文中。请随意更正您看到的任何打字错误。