uwsgi-plugin-php depends on an unreleased version of libphp-embed

Bug #1717378 reported by Leo Davis
44
This bug affects 7 people
Affects Status Importance Assigned to Milestone
uwsgi (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When I try and upgrade uwsgi-plugin-php 2.0.12-5ubuntu3.1 I get:

$ sudo apt-get install uwsgi-plugin-php
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:
 uwsgi-plugin-php : Depends: libphp-embed (>= 1:7.0+35ubuntu6.1~)
E: Unable to correct problems, you have held broken packages.

There doesn't seem to be a version of libphp-embed that has been released with that version (yet):

$ apt-cache policy uwsgi-plugin-php
uwsgi-plugin-php:
  Installed: 2.0.12-5ubuntu3
  Candidate: 2.0.12-5ubuntu3.1
  Version table:
     2.0.12-5ubuntu3.1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
 *** 2.0.12-5ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status
$ apt-cache policy libphp7.0-embed
libphp7.0-embed:
  Installed: 7.0.22-0ubuntu0.16.04.1
  Candidate: 7.0.22-0ubuntu0.16.04.1
  Version table:
 *** 7.0.22-0ubuntu0.16.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     7.0.4-7ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
$ apt-cache policy libphp-embed
libphp-embed:
  Installed: 1:7.0+35ubuntu6
  Candidate: 1:7.0+35ubuntu6
  Version table:
 *** 1:7.0+35ubuntu6 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
        100 /var/lib/dpkg/status
$ lsb_release -rd
Description: Ubuntu 16.04.3 LTS
Release: 16.04

I expected to be able to upgrade uwsgi-plugin-php to 2.0.12-5ubuntu3.1.

I was unable to upgrade.

Revision history for this message
chefebe (chefebe) wrote :

Ubuntu (16.04) recently prompted me to update software. It failed. I now get warnings similar to the above regarding uwsgi-plugin-php dependency issues.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in uwsgi (Ubuntu):
status: New → Confirmed
Revision history for this message
Nicolas Delvaux (malizor) wrote :

The required libphp7.0-embed version (1:7.0+35ubuntu6.1) is available in the "Proposed" repository.

The new uwsgi package should not have been pushed to standard repos before the new libphp7.0-embed.

I see two options:
* Release a new uwsgi version with a lower dependency on libphp7.0-embed
* Migrate the Proposed libphp7.0-embed version to the Release repo.

I don't know who can fix this.
I'm subscribing the SRU team as this seems to be a bug in the SRU process. I hope it's relevant.

Revision history for this message
Jim Howell (jimbocoder) wrote :

I've had success working around this in Xenial by creating the following file:

/etc/apt/preferences.d/avoid-broken-uwsgi
```
# 2.0.12-5-ubuntu3.1 is broken for almost all the uwsgi packages,
# until this bug gets fixed:
# https://bugs.launchpad.net/ubuntu/+source/uwsgi/+bug/1717378

Package: uwsgi-*
Pin: version 2.0.12-5ubuntu3.1
Pin-Priority: -999
```

Then apt update and you can install the previous working version as normal. Note: If this bug is not fixed in the next release, this workaround will break until THAT version is also pinned out. I'm assuming it will be fixed before then here.

Revision history for this message
Leo Davis (leo-davis) wrote :

I just upgraded to uwsgi 2.0.12-5ubuntu3.2 and uwsgi-plugin-php 2.0.12-5ubuntu3.2. I don't have any held broken packages with these:

$ dpkg -l uwsgi*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================-===============================-===============================-================================================================================================================
ii uwsgi 2.0.12-5ubuntu3.2 amd64 fast, self-healing application container server
ii uwsgi-core 2.0.12-5ubuntu3.2 amd64 fast, self-healing application container server (core)
...
ii uwsgi-plugin-php 2.0.12-5ubuntu3.2 amd64 PHP plugin for uWSGI

So I think this is fixed. Thanks!

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Marking as fix released according to comment above.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

And according to my own testing on xenial:
root@xenial:~# apt-get install uwsgi-plugin-php
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  libjansson4 libmatheval1 libphp-embed libphp7.0-embed libsodium18 libzmq5 php-common php-readline php7.0-common php7.0-phpdbg php7.0-readline uwsgi-core
Suggested packages:
  php-pear nginx-full | cherokee | libapache2-mod-proxy-uwsgi | libapache2-mod-uwsgi | libapache2-mod-ruwsgi uwsgi-plugins-all uwsgi-extra
The following NEW packages will be installed:
  libjansson4 libmatheval1 libphp-embed libphp7.0-embed libsodium18 libzmq5 php-common php-readline php7.0-common php7.0-phpdbg php7.0-readline uwsgi-core uwsgi-plugin-php
0 upgraded, 13 newly installed, 0 to remove and 2 not upgraded.
Need to get 4,297 kB of archives.
After this operation, 16.8 MB of additional disk space will be used.
Do you want to continue? [Y/n]
(...)
Setting up uwsgi-core (2.0.12-5ubuntu3.2) ...
Setting up uwsgi-plugin-php (2.0.12-5ubuntu3.2) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
root@xenial:~# echo $?
0
root@xenial:~#

Changed in uwsgi (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.