Upgrade fails to upgrade php

Asked by DigiAngel

Topic says it...after upgrading from 14.04.5 to 16.04.1 several packages are not upgraded. List before:

ii libapache2-mod-php5 5.5.9+dfsg-1ubuntu4.19 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii php-auth 1.6.4-1 all Creating an authentication system
ii php-auth-sasl 1.0.6-1 all Abstraction of various SASL mechanism responses
ii php-db 1.7.14-2 all PHP PEAR Database Abstraction Layer
ii php-http-request 1.4.4-4 all PEAR class to provide an easy way to perform HTTP requests
ii php-log 1.12.7-1 all Logging Framework
ii php-mail 1.2.0-6 all Class that provides multiple interfaces for sending emails
ii php-mail-mime 1.8.8-1 all PHP PEAR module for creating MIME messages
ii php-mdb2 2.5.0b5-1 all merge of the PEAR DB and Metabase php database abstraction layers
ii php-net-dime 1.0.2-2 all class that implements DIME encoding
ii php-net-smtp 1.6.1-1 all PHP PEAR module implementing SMTP protocol
ii php-net-socket 1.0.14-1 all PHP PEAR Network Socket Interface module
ii php-net-url 1.0.15-3 all easy parsing of Urls
ii php-pear 5.5.9+dfsg-1ubuntu4.19 all PEAR - PHP Extension and Application Repository
ii php-soap 0.13.0-1 all SOAP Client/Server class for PHP
ii php5 5.5.9+dfsg-1ubuntu4.19 all server-side, HTML-embedded scripting language (metapackage)
ii php5-cli 5.5.9+dfsg-1ubuntu4.19 amd64 command-line interpreter for the php5 scripting language
ii php5-common 5.5.9+dfsg-1ubuntu4.19 amd64 Common files for packages built from the php5 source
ii php5-curl 5.5.9+dfsg-1ubuntu4.19 amd64 CURL module for php5
ii php5-gd 5.5.9+dfsg-1ubuntu4.19 amd64 GD module for php5
ii php5-imap 5.4.6-0ubuntu5 amd64 IMAP module for php5
ii php5-intl 5.5.9+dfsg-1ubuntu4.19 amd64 internationalisation module for php5
ii php5-json 1.3.2-2build1 amd64 JSON module for php5
ii php5-mcrypt 5.4.6-0ubuntu5 amd64 MCrypt module for php5
ii php5-mysql 5.5.9+dfsg-1ubuntu4.19 amd64 MySQL module for php5
ii php5-pspell 5.5.9+dfsg-1ubuntu4.19 amd64 pspell module for php5
ii php5-readline 5.5.9+dfsg-1ubuntu4.19 amd64 Readline module for php5
ii php5-sqlite 5.5.9+dfsg-1ubuntu4.19 amd64 SQLite module for php5

and list after:

ii php-auth 1.6.4-1build1 all Creating an authentication system
ii php-auth-sasl 1.0.6-2build1 all Abstraction of various SASL mechanism responses
ii php-cli 1:7.0+35ubuntu6 all command-line interpreter for the PHP scripting language (default)
ii php-common 1:35ubuntu6 all Common files for PHP packages
ii php-db 1.7.14-3build1 all PHP PEAR Database Abstraction Layer
ii php-imap 1:7.0+35ubuntu6 all IMAP module for PHP [default]
ii php-log 1.12.9-1build1 all Logging Framework
ii php-mail 1.3.0-1 all Class that provides multiple interfaces for sending emails
ii php-mdb2 2.5.0b5-1build1 all merge of the PEAR DB and Metabase php database abstraction layers
ii php-net-smtp 1.7.1-1build1 all PHP PEAR module implementing SMTP protocol
ii php-net-socket 1.0.14-1build1 all PHP PEAR Network Socket Interface module
ii php-pear 1:1.10.1+submodules+notgz-6 all PEAR Base System
ii php-soap 1:7.0+35ubuntu6 all SOAP module for PHP [default]
ii php-xml 1:7.0+35ubuntu6 all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii php7.0-cli 7.0.8-0ubuntu0.16.04.2 amd64 command-line interpreter for the PHP scripting language
ii php7.0-common 7.0.8-0ubuntu0.16.04.2 amd64 documentation, examples and common module for PHP
ii php7.0-imap 7.0.8-0ubuntu0.16.04.2 amd64 IMAP module for PHP
ii php7.0-json 7.0.8-0ubuntu0.16.04.2 amd64 JSON module for PHP
ii php7.0-opcache 7.0.8-0ubuntu0.16.04.2 amd64 Zend OpCache module for PHP
ii php7.0-readline 7.0.8-0ubuntu0.16.04.2 amd64 readline module for PHP
ii php7.0-soap 7.0.8-0ubuntu0.16.04.2 amd64 SOAP module for PHP
ii php7.0-xml 7.0.8-0ubuntu0.16.04.2 amd64 DOM, SimpleXML, WDDX, XML, and XSL module for PHP

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
DigiAngel
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

sudo apt-get update; sudo apt-get -f install

Thanks

Revision history for this message
DigiAngel (jlay) said :
#2

As this is a vm I have snapshots of before and after the upgrade...would you like the command output on 14.04, or 16.04? Thank you.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

from after the upgrade please

Revision history for this message
DigiAngel (jlay) said :
#4

Will do...it will be later today as I won't have access for about 8 hours. Thank you.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Which package do you think was not upgraded?
The php5 packages have been replaced by their php7 successor.

And even packages that look the same like php-auth have been upgraded from 1.6.4-1 to 1.6.4-1build1 (which is the version designated for Ubuntu 16.04).

Revision history for this message
DigiAngel (jlay) said :
#6

Well...the biggie as shown in the lists above is libapache2-mod-php....this package was missing after upgrade, which completely broke php (blank page when accessed). Also, as I'm using an app called baikal, php-mysql and php-sqlite were also missing. After manually installing the libapache2-mod-php package via apt php was working.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Did this work in testing before you went live? or is this a home setup?

14.04 is LTS so will run until April 2019..... why the upgrade?

Revision history for this message
DigiAngel (jlay) said :
#8

Funny you should ask :(

WARNING: Security updates for your current Hardware Enablement
Stack ended on 2016-08-04:
 * http://wiki.ubuntu.com/1404_HWE_EOL

The following packages are no longer supported:
 linux-image-3.19.0-42-generic linux-image-extra-3.19.0-42-generic

uname -a
Linux gateway 3.19.0-42-generic #48~14.04.1-Ubuntu SMP Fri Dec 18 10:24:49 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Which is interesting to me since the kernel is pretty important to keep updated :) So I vm'd the physical machine to see how the upgrade would go...I guess I can try to run the Xenial kernel...that's my next thing to try, however running the hwe-support-status and attempting to install on the VM didn't do anything since I'm assuming the hardware is different. For reference, this is on an oldish iMac 20 inch works great as a router/server. Thank you.

Revision history for this message
DigiAngel (jlay) said :
#9

And additionally this is working flawlessly on 14.04 currently with the current LAMP stack. And yes, this is a home setup which is still up and running fine on 14.04.

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

see https://wiki.ubuntu.com/Kernel/LTSEnablementStack#Server

sudo apt-get install --install-recommends linux-generic-lts-xenial

should give you the 4.4 kernel.

Revision history for this message
DigiAngel (jlay) said :
#11

Thanks I will give the kernel install a try when I get physical access to the machine and report my results.

Revision history for this message
DigiAngel (jlay) said :
#12

So ok....the 4.4 kernel installed and worked on a physical backup of the router/server, so I will try and upgrade the production one over this weekend, so that's for that. Here's the command output:

[11:43:47 :~$] sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  aspell aspell-en dictionaries-common emacsen-common libaspell15 libmcrypt4
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I did find the below from /var/log/dist-upgrade/screenlog.0:

screenlog.0:dpkg: libapache2-mod-php5: dependency problems, but removing anyway as you requested:
screenlog.0: php5 depends on libapache2-mod-php5 (>= 5.5.9+dfsg-1ubuntu4.19) | libapache2-mod-php5filter (>= 5.5.9+dfsg-1ubuntu4.19) | php5-cgi (>= 5.5.9+dfsg-1ubuntu4.19) | php5-fpm (>= 5.5.9+dfsg-1ubuntu4.19); however:
screenlog.0: Package libapache2-mod-php5 is to be removed.
screenlog.0: Package libapache2-mod-php5filter is not installed.
screenlog.0:Removing libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.19) ...

looks like here it is, but I'm not sure what the dependency issue would have been. Are there other logs I can check? Thank you.

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

The logs should be in the /var/log/dist-upgrade/ directory.
If you cannot find any further hints to the background of the libapache2-mod-php5, then I would not know where to search.

I assume the php5 to php7 transition to be involved. In fact I would expect that on 16.04 you should have libapache2-mod-php7.0 and instead of libapache2-mod-php5

For an in-depth discussion with the developers you should create a bug report.

Revision history for this message
DigiAngel (jlay) said :
#14

Thanks to you both a LOT for your help on this...really appreciate it. And yes...I was assuming that all *php5* packages would be upgraded to *php7* packages, but as we can see above this doesn't appear to be the case. Resolution was simple as you just install what's needed. I will open up a bug report on this...thanks again.