Update problem with php7

Hi, for a longer time I get the following notices in my OC admin view:

Sicherheits- & Einrichtungswarnungen

Der „Strict-Transport-Security“-HTTP-Header ist nicht auf mindestens „15768000“ Sekunden eingestellt. Für umfassende Sicherheit wird das Aktivieren von HSTS empfohlen, wie es in unseren Sicherheitshinweisen erläutert ist.

Es wurde kein PHP Memory Cache konfiguriert. Konfiguriere zur Erhöhung der Leistungsfähigkeit, soweit verfügbar, einen Memory Cache. Weitere Informationen finden Sie in unserer Dokumentation.
Deine PHP Version (5.4.45-0+deb7u2) wird nicht länger unterstützt. Wir empfehlen ein Upgrade deiner PHP Version, um die volle Performance und Sicherheit zu gewährleisten.

Bitte überprüfe noch einmal die Installationsanleitungen :arrow_upper_right: und kontrolliere das Log auf mögliche Fehler oder Warnungen.

Now I want update my PHP from 5.4.45 to 7.0.or 7.1, but I can't handle this.

In the begining I tried the following steps (or something similar):

echo 'deb http://packages.dotdeb.org jessie all' > /etc/apt/sources.list.d/dotdeb.list

curl http://www.dotdeb.org/dotdeb.gpg | apt-key add -

apt-get update

In the end of "apt-get update" I get this error message:

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.opensuse.org Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4ABE1AC7557BEFF9

W: Failed to fetch http://packages.dotdeb.org/dists/jessie/Release Unable to find expected entry 'all/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_12.04/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.

All following steps for solving the upper named problems didn't work.
I tried to fix the problem of the "armhf"-packages, or install PHP7.0 by using

sudo apt-get install php7.0

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.0
E: Couldn't find any package by regex 'php7.0'

I wasted several days and evenings now, I don't know, how I can fix the problem, so I hope someone can help.

I'm using
ownCloud 8.2.9 (production)
on Raspbian 7 (wheezy).

Thanks a lot in advance.

Dotdeb does not provide packages for ARM. You can use a different repo:


or you wait for Raspbian 9 (Stretch) which should be released this year.

For the missing key, you can try:
gpg --keyserver subkeys.pgp.net --recv-keys 4ABE1AC7557BEFF9

Hi tflidd,

here are the results:

root@raspberrypi:/# gpg --keyserver subkeys.pgp.net --recv-keys 4ABE1AC7557BEFF9
gpg: requesting key 557BEFF9 from hkp server subkeys.pgp.net
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

Furthermore I followed the instruction from your link.
I added the repositories successfully.

Then I tried

root@raspberrypi:/etc/apt# sudo gpg --keyserver pgpkeys.mit.edu --recv-key CCD91D6111A06851
gpg: requesting key 11A06851 from hkp server pgpkeys.mit.edu
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 11A06851: public key "Mateusz Łukasik mati75@linuxmint.pl" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

root@raspberrypi:/etc/apt# sudo gpg --armor --export CCD91D6111A06851 | sudo apt-key add -
OK

So far, so good.
But in the next step I get an error message in the end:

root@raspberrypi:/etc/apt# sudo apt-get update
Get:1 http://repozytorium.mati75.eu jessie-backports Release.gpg [488 B]
Hit http://packages.dotdeb.org jessie Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Get:2 http://download.opensuse.org Release.gpg [481 B]
Hit http://mirrordirector.raspbian.org wheezy Release.gpg
Hit http://packages.dotdeb.org jessie Release
Hit http://mirrordirector.raspbian.org wheezy Release
Get:3 http://repozytorium.mati75.eu jessie-backports Release [6,305 B]
Hit http://raspberrypi.collabora.com wheezy Release
Get:4 http://download.opensuse.org Release [1,049 B]
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://repository.wolfram.com stable Release.gpg
Hit http://archive.raspberrypi.org wheezy Release
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Get:5 http://repozytorium.mati75.eu jessie-backports/main armhf Packages [117 kB]
Hit http://repository.wolfram.com stable Release
Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
Err http://download.opensuse.org Release

Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Get:6 http://repozytorium.mati75.eu jessie-backports/contrib armhf Packages [20 B]
Get:7 http://repozytorium.mati75.eu jessie-backports/non-free armhf Packages [13.3 kB]
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Hit http://repository.wolfram.com stable/non-free armhf Packages
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_US
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en_US
Ign http://repozytorium.mati75.eu jessie-backports/contrib Translation-en_US
Ign http://repozytorium.mati75.eu jessie-backports/contrib Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://repozytorium.mati75.eu jessie-backports/main Translation-en_US
Ign http://repozytorium.mati75.eu jessie-backports/main Translation-en
Ign http://repozytorium.mati75.eu jessie-backports/non-free Translation-en_US
Ign http://repozytorium.mati75.eu jessie-backports/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://repository.wolfram.com stable/non-free Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_US
Ign http://repository.wolfram.com stable/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Fetched 138 kB in 12s (10.7 kB/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.opensuse.org Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4ABE1AC7557BEFF9

W: Failed to fetch http://packages.dotdeb.org/dists/jessie/Release Unable to find expected entry 'all/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_12.04/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.

And last but not least to accomplish the instruction:

root@raspberrypi:/etc/apt# apt-get install apache2 php7.0 php7.0-curl php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-xmlrpc libapache2-mod-php7.0
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:
libapache2-mod-php7.0 : Depends: libpcre3 (>= 1:8.35) but 1:8.31-2rpi2 is to be installed
Depends: php7.0-cli but it is not going to be installed
Depends: php7.0-common (= 7.0.15-1~bpo8+1) but it is not going to be installed
Depends: apache2-api-20120211 but it is not installable
Depends: libc6 (>= 2.15) but 2.13-38+rpi2+deb7u10 is to be installed
php7.0 : Depends: php7.0-common but it is not going to be installed
php7.0-curl : Depends: php7.0-common (= 7.0.15-1~bpo8+1) but it is not going to be installed
php7.0-gd : Depends: php7.0-common (= 7.0.15-1~bpo8+1) but it is not going to be installed
Depends: libgd3 (>= 2.1.0) but it is not going to be installed
Depends: libjpeg62-turbo (>= 1.3.1) but it is not installable
php7.0-imap : Depends: php7.0-common (= 7.0.15-1~bpo8+1) but it is not going to be installed
php7.0-json : Depends: php7.0-common (= 7.0.15-1~bpo8+1) but it is not going to be installed
php7.0-mcrypt : Depends: php7.0-common (= 7.0.15-1~bpo8+1) but it is not going to be installed
php7.0-mysql : Depends: php7.0-common (= 7.0.15-1~bpo8+1) but it is not going to be installed
Depends: libc6 (>= 2.15) but 2.13-38+rpi2+deb7u10 is to be installed
php7.0-opcache : Depends: php7.0-common (= 7.0.15-1~bpo8+1) but it is not going to be installed
php7.0-xmlrpc : Depends: php7.0-common (= 7.0.15-1~bpo8+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Any idea?

Hi,

as updating PHP is absolutely nothing ownCloud specific and heavily vary / depends on your used linux distribution its highly advised to get help for such issues from a community dedicated to your used linux distro.

You're probably not the first one trying to update PHP on this distribution and people familiar with your linux distro have more qualified knowledge to help you with this issue.

There might be even existing tutorials as @tflidd has pointed out in his last post.

I agree with the previous poster. With regard to the actual implementation and updating of PHP, owncloud is not specifically focused on that. I depends a lot on how your system is configured. There's a few big linux forums, I would also recommend to check them out.