docker - pkgProblemResolver::Resolve生成的中断,这可能是由保留的

我尝试通过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

Link to screenshot of above output

最佳答案

为避免此错误,请将此行添加到您的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

关于docker - pkgProblemResolver::Resolve生成的中断,这可能是由保留的软件包引起的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36262845/

相关文章:

postgresql - 使用Docker容器和主机LAN的Postgres网络

amazon-web-services - 前端和后端应用程序的 Docker 示例

docker - Docker yum安装问题-无法为存储库检索metalink:epel/x86_

docker - 由 Docker 复制的文件被视为目录

azure - 通过远程 api 设置 Docker Volume Driver 选择

docker - dnsmasq 跨 docker 容器的奇怪行为

docker - Godep无法在Docker容器中工作

docker - 将 git 命令的结果存储在 ENV 中

jenkins - 使用具有马拉松和Mesos的持久卷在docker内部运行jenkins的权限错误

docker - Docker Compose YAML版本1和版本2有什么区别?