I have just dusted down my Model 1 B+ RPi and installed the latest Raspbian version from the RPi website. I was following the instructions in Eben Upton's "Raspberry Pi User Guide (3rd edition)" to install a LAMP stack. He suggests running the following commands:
sudo apt-get update
sudo apt-get install apache2 php5 php5-mysql mysql-server
I tried with with my RPi but got these messages:
php5 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.
php5-mysql 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.
mysql-server 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-server.10.0
E: Package 'php5' has no installation candidate
E: Package 'mysql-php5' has no installation candidate
E: Package 'mysql-server' has no installation candidate
Does this mean that php5, mysql etc. are no longer available for the Model 1 B+ or is there an alternative? I just want to use the RPi to pull the data from my PV inverter via our home LAN and store it in a DB, so nothing too taxing for the processor. However, if the Model 1 B+ is basically obsolete and there is no software for it then I will upgrade
** Update **
I found this web page which basically does what I was trying to do but uses the -y
argument to sudo apt install
- this seems to have done the trick, so it looks like it was user error on my part