# 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
不知道为什么它不能findsupervisordconfiguration文件或为什么安装失败。 我运行aptitude更新,aptitude升级,所以希望一切都是最新的:(
我只是偶然发现了同样的问题,所以我将把它发生的原因留给我。
我们使用pip将主pipe安装到全局path(而不是virtualenv),这意味着我们正在运行最新版本。 然而,从服务器维护的angular度来看这是不可取的,所以我们在Apt中切换了旧版本。
pip uninstall不能自行清除后,将脚本/日志留在所有以下目录中:
我build议做以下search并手动删除对supervisor-3.0a12的所有引用:
sudo find / -iname "*supervisor*"
有趣。 这是目前不知道的错误。 在安装的时候,你应该会收到一个不同的错误,因为在这个版本的Ubuntu中,当前主pipe是被破坏的。 查看错误报告: https : //bugs.launchpad.net/ubuntu/+source/supervisor/+bug/777862
主pipe可能是previsouly安装,然后删除,但没有清除(所以configuration文件没有被删除)。 稍后,某人手动移除configuration文件。 现在,当您重新安装时,默认情况下它不会replaceconfiguration文件,因为dpkg永远不会覆盖您所做的configuration更改,并且删除configuration文件被视为configuration更改。 你可以专门告诉dpkg来replace丢失的conffiles,像这样:
aptitude -o DPkg::Options::='--force-confmiss' reinstall supervisor
或者,您可以在安装之前清除软件包,说您不想保存您的configuration文件。