debian – 在ubuntu 11.04上安装supervisord时出错.有任何解决这个问题的方法吗?

# 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,/etc/supervisord.conf); use the           -c option to specify a config file at a different path
For     help,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

不知道为什么它无法找到supervisord配置文件或安装失败的原因.我确实运行了aptitude更新,aptitude升级,所以希望一切都是最新的:(

我刚刚遇到了同样的问题,所以我会留下它发生在我身上的原因.

我们使用pip将管理程序安装到全局路径(而不是virtualenv)中,这意味着我们运行的是最新版本.但是,从服务器维护的角度来看,这是不可取的,因此我们在Apt中切换了旧版本.

pip uninstall没有正确清理,将脚本/日志保留在以下所有目录中:

> /usr/local / bin /
> /usr/local/lib/python2.7/dist-packages/
> / tmp /
> / etc /

我建议进行以下搜索并手动删除对supervisor-3.0a12的所有引用:

sudo找/ -iname“*主管*”

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...