Community
OpenEnergyMonitor

Community

Full version Emoncms with external USB 250G Drive

I get errors when installing php7.0 starting with “Package php7.0-common is not available”
Previously, when I used NOOBS 3.0, I was able to install this, now that I am using NOOBS 3.2 I can’t install php7.0. Either something changed with Linux version or something changed with php package?

Thanks in advance for any assistance?

I am using the “Install Emoncms on Raspberry Pi (Raspbian Stretch)”
At https://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/readme.md
Noobs 3.1 Raspbian Lite

uname -a
Linux version 4.19.58-v7+ ([email protected]) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1245 SMP Fri Jul 12 17:25:51 BST 2019

I get to “Install the dependencies:”

[email protected]:~ $ sudo apt-get install -y apache2 mariadb-server mysql-client php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-gd php7.0-opcache php7.0-curl php-pear php7.0-dev php7.0-mcrypt php7.0-common redis-server php-redis git build-essential php7.0-mbstring

I get these errors:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php7.0-thrift' for regex 'php7.0'
Note, selecting 'php7.0-remctl' for regex 'php7.0'
Note, selecting 'php7.0-common' for regex 'php7.0'
Note, selecting 'php7.0-curl' for regex 'php7.0'
Note, selecting 'php-remctl' instead of 'php7.0-remctl'
Package mysql-client is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
mariadb-client-10.0

Package php7.0-common is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php7.0-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mysql-client' has no installation candidate
E: Unable to locate package libapache2-mod-php7.0
E: Couldn't find any package by glob 'libapache2-mod-php7.0'
E: Couldn't find any package by regex 'libapache2-mod-php7.0'
E: Unable to locate package php7.0-mysql
E: Couldn't find any package by glob 'php7.0-mysql'
E: Couldn't find any package by regex 'php7.0-mysql'
E: Unable to locate package php7.0-gd
E: Couldn't find any package by glob 'php7.0-gd'
E: Couldn't find any package by regex 'php7.0-gd'
E: Unable to locate package php7.0-opcache
E: Couldn't find any package by glob 'php7.0-opcache'
E: Couldn't find any package by regex 'php7.0-opcache'
E: Package 'php7.0-curl' has no installation candidate
E: Unable to locate package php7.0-dev
E: Couldn't find any package by glob 'php7.0-dev'
E: Couldn't find any package by regex 'php7.0-dev'
E: Unable to locate package php7.0-mcrypt
E: Couldn't find any package by glob 'php7.0-mcrypt'
E: Couldn't find any package by regex 'php7.0-mcrypt'
E: Package 'php7.0-common' has no installation candidate
E: Unable to locate package php7.0-mbstring
E: Couldn't find any package by glob 'php7.0-mbstring'
E: Couldn't find any package by regex 'php7.0-mbstring'

Correct, if you use the latest NOOBS you will get the latest Raspbian version which is Buster not Stretch. Buster installs PHP7.3 not 7.0 see the Raspberry Pi 4 thread about moving to using more generic “php-” package names and letting the package manager install the correct packages.

@dlmpryor - we are reasonably close to replacing these instructions with a set of scripts for the install. Is this a fresh Raspbian Image you are building this on? If so, you would be better with Raspbian Lite as the base image.

Thanks Paul & Brian,
For now, I will roll back to NOOBS 3.0.
I won’t wait for the Raspberry Pi 4 using more generic “php-”

Yes, this is a fresh Raspbian image, so I will be sure to select the Raspbian Lite as the base image.
Thanks for the tip.