首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pkgProblemResolver::Resolve生成的中断,这可能是由挂起的包引起的

pkgProblemResolver::Resolve生成的中断,这可能是由挂起的包引起的
EN

Stack Overflow用户
提问于 2016-03-28 20:57:21
回答 1查看 3.1K关注 0票数 2

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

代码语言:javascript
复制
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

EN

回答 1

Stack Overflow用户

发布于 2016-08-22 23:10:43

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

代码语言:javascript
复制
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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36262845

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档