And*_*res 6 debian python aptitude supervisord ubuntu-11.04
# aptitude install supervisor
The following NEW packages will be installed:
python-medusa{a} python-meld3{a} supervisor
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/290 kB of archives. After unpacking 1,552 kB will be used.
Do you want to continue? [Y/n/?] Y
Selecting previously deselected package python-medusa.
(Reading database ... 35128 files and directories currently installed.)
Unpacking python-medusa (from .../python-medusa_0.5.4+clean-2ubuntu1_all.deb) ...
Selecting previously deselected package python-meld3.
Unpacking python-meld3 (from .../python-meld3_0.6.5-3build1_amd64.deb) ...
Selecting previously deselected package supervisor.
Unpacking supervisor (from .../supervisor_3.0a8-1_all.deb) ...
Processing triggers for ureadahead ...
Setting up python-medusa (0.5.4+clean-2ubuntu1) ...
Setting up python-meld3 (0.6.5-3build1) ...
Setting up supervisor (3.0a8-1) ...
Starting supervisor: /usr/bin/supervisord:5: UserWarning: Module supervisor was already imported from None, but /usr/lib/pymodules/python2.7 is being added to sys.path
from pkg_resources import load_entry_point
Error: No config file found at default paths (/usr/etc/supervisord.conf, /usr/supervisord.conf, supervisord.conf, etc/supervisord.conf, /etc/supervisord.conf); use the -c option to specify a config file at a different path
For help, use /usr/bin/supervisord -h
invoke-rc.d: initscript supervisor, action "start" failed.
dpkg: error processing supervisor (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
Processing triggers for python-support ...
Errors were encountered while processing:
supervisor
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up supervisor (3.0a8-1) ...
Starting supervisor: /usr/bin/supervisord:5: UserWarning: Module supervisor was already imported from None, but /usr/lib/pymodules/python2.7 is being added to sys.path
from pkg_resources import load_entry_point
Error: No config file found at default paths (/usr/etc/supervisord.conf, /usr/supervisord.conf, supervisord.conf, etc/supervisord.conf, /etc/supervisord.conf); use the -c option to specify a config file at a different path
For help, use /usr/bin/supervisord -h
invoke-rc.d: initscript supervisor, action "start" failed.
dpkg: error processing supervisor (--configure):
subprocess installed post-installation script returned error exit status 2
Processing triggers for python-support ...
Errors were encountered while processing:
supervisor
Run Code Online (Sandbox Code Playgroud)
不知道为什么它无法找到 supervisord 配置文件或为什么安装失败。我确实运行了 aptitude update、aptitude upgrade,所以希望一切都是最新的:(
我刚刚偶然发现了同样的问题,所以我会留下它发生在我身上的原因。
我们使用 pip 将主管安装到全局路径(不是 virtualenv)中,这意味着我们正在运行最新版本。但是,从服务器维护的角度来看,这是不可取的,所以我们在Apt中切换了旧版本。
pip uninstall
没有正确地自行清理,将脚本/日志留在以下所有目录中:
我建议进行以下搜索并手动删除对supervisor-3.0a12 的所有引用:
sudo find / -iname "*supervisor*"
有趣的。这是目前未知的错误。安装时您应该会收到一个不同的错误,因为该版本的 Ubuntu 中目前 Supervisor 已损坏。请参阅错误报告:https://bugs.launchpad.net/ubuntu/+source/supervisor/+bug/777862
归档时间: |
|
查看次数: |
4394 次 |
最近记录: |