How to install submin on nginx server

July 12, 2014 2.5k views

Hi I want to install a [submin ](http:// "")package in my ubuntu 14 droplet.

But i'm getting this error:

root@miargin:/etc/apt# sudo apt-get install submin2                                                                                                                
Reading package lists... Done                                                                                                                                      
Building dependency tree                                                                                                                                           
Reading state information... Done                                                                                                                                  
Some packages could not be installed. This may mean that you have                                                                                                  
requested an impossible situation or 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 packages have unmet dependencies:                                                                                                                    
 submin2 : Depends: submin2-full but it is not going to be installed                                                                                               
E: Unable to correct problems, you have held broken packages.                                                                                                      
root@miargin:/etc/apt# sudo apt-get install submin                                                                                                                 
Reading package lists... Done                                                                                                                                      
Building dependency tree                                                                                                                                           
Reading state information... Done                                                                                                                                  
E: Unable to locate package submin                                                                                                                                 
root@miargin:/etc/apt# cd /sources.listsd  

Anyone can help me?

5 Answers

I done it...

I install manually the last version of python-central package and then execute:

sudo apt-get install submin2

Then I stop the apache server and start de nginx server.

And follow the rest of the configuration steps

Hi, i'm creating a new virtual host to finish install submin package but i didn't get to work fine.

I'm not an webserver expert... so i need help with this.

The steps to install submin are this:

I'm at step: "Configure NGINX"

Many thanks for your help.

Are you getting any errors when starting nginx? What's the output of nginx -t?

Hi Kamal.

Here is the *nginx -t *output:

/etc/nginx/sites-available$ nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

At sites-available i'm had a submin file that contains:

server {
   listen 80;

   include /var/lib/submin/conf/nginx-webui-wsgi.conf;

   access_log /var/log/nginx/access_submin.log;
   error_log /var/log/nginx/error_submin.log;

And i'm had a symbolic link at sites-enabled called submin that reffers to submin file at sites-available.

# Generated on: 2014-07-12 14:43:07
# This config file was automatically created with submin2-admin. If you use
# this command again, it will overwrite all changes to this file. The
# recommanded way to regenerate this file is to change the config with
# submin2-admin and run:
#   submin2-admin /var/lib/submin nginxconf create all /var/lib/submin/conf/nginx.conf
# To make this config active, you have to include it in your NGINX
# config. The recommended way is to include it in one of your virtual hosts:
# server {
#   listen 80;
#   listen   [::]:80;
#   server_name;
#   include /var/lib/submin/conf/nginx-webui-wsgi.conf;
#   access_log /var/log/nginx/;
#   error_log /var/log/nginx/;
# }
# Then start an uWSGI server with:
#   uwsgi --ini /var/lib/submin/conf/nginx-webui-uwsgi.ini
# Debian machines
# ---------------
# Alternatively, if you are on Debian and installed the uwsgi package,
# create a symlink from /etc/uwsgi/apps-available to this file:
#  ln -s /var/lib/submin/conf/nginx-webui-uwsgi.ini /etc/uwsgi/apps-available
# and also a symlink from /etc/uwsgi/apps-enabled to the symlink you just
# created in /etc/uwsgi/apps-available. Then, you can start the uWSGI
# daemon with:
#   service uwsgi start
# It will also be started on boot.
location ~ ^/submin/(css|js|img)/(.*)$ {
    alias /usr/lib/python2.7/dist-packages/submin/static/www/$1/$2;
location /submin {
    include uwsgi_params;
    uwsgi_pass unix:/var/lib/submin/run/uwsgi.sock;

  • Do you see any errors when you browse to http://ip/submin? What's the output of sudo tail /var/log/nginx/error_submin.log?

Have another answer? Share your knowledge.