*** This bug is a duplicate of bug 1616497 ***
    https://bugs.launchpad.net/bugs/1616497

Reproduced. i added -x debugging to postinst, and this is what I get:
root@xenial:~# dpkg-reconfigure uwsgi-plugin-python
+ DEFAULTFLAVOR_DOTLESS=python27
+ [ xpython27 = xpython27 ]
+ ALTERNATIVE_PRIORITY=75
+ update-alternatives --quiet --install /usr/lib/uwsgi/plugins/python_plugin.so 
uwsgi-plugin-python /usr/lib/uwsgi/plugins/python27_plugin.so 75 --slave 
/usr/bin/uwsgi_python uwsgi_python /usr/bin/uwsgi-core --slave 
/usr/share/man/man1/uwsgi_python.1.gz uwsgi_python.1.gz 
/usr/share/man/man1/uwsgi_python27.1.gz
+ update-alternatives --quiet --install /usr/bin/uwsgi uwsgi 
/usr/bin/uwsgi_python27 35 --slave /usr/share/man/man1/uwsgi.1.gz uwsgi.1.gz 
/usr/share/man/man1/uwsgi_python27.1.gz
+ update-alternatives --list uwsgi
+ grep -c /uwsgi_python$
+ true
+ BINARY_IS_UWSGI_ALTERNATIVE=
+ [  -eq 0 ]
/var/lib/dpkg/info/uwsgi-plugin-python.postinst: 61: [: Illegal number: 
+ exit 0


That grep is failing to find a match:
root@xenial:~# update-alternatives --list uwsgi
/usr/bin/uwsgi-core
/usr/bin/uwsgi_python27

The error is happening because the grep fails to find a match, and "|
true", it should have been "|| true".

And I now found the debian bug about it, and the fix. It's fixed since
2.0.12-6.

** This bug has been marked a duplicate of bug 1616497
   uwsgi-plugin-python3 failed to install

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1562237

Title:
  Cannot install uwsgi-plugin-python on Ubuntu 16.04 beta2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/uwsgi/+bug/1562237/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to