Skip to content

Instantly share code, notes, and snippets.

@madeindjs
Last active March 11, 2019 11:47
Show Gist options
  • Save madeindjs/3aecc9b4b563cabdee52bf3994340e29 to your computer and use it in GitHub Desktop.
Save madeindjs/3aecc9b4b563cabdee52bf3994340e29 to your computer and use it in GitHub Desktop.
Install PHP7 on Raspberry PI
sudo apt-get update && sudo apt-get upgrade
echo "deb http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free" >> /etc/apt/sources.list
echo "#deb-src http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free" >> /etc/apt/sources.list
sudo gpg --keyserver pgpkeys.mit.edu --recv-key CCD91D6111A06851
sudo su
gpg --armor --export CCD91D6111A06851 | apt-key add -
exit
sudo apt-get remove php5*
sudo apt-get update
sudo apt-get install php7.0 php7.0-opcache
@Mr-Kumar-Abhishek
Copy link

I got this error while update ... seems it is closed ?

Err http://repozytorium.mati75.eu jessie-backports InRelease                                   
  
Err http://repozytorium.mati75.eu jessie-backports Release.gpg
  Cannot initiate the connection to repozytorium.mati75.eu:80 (2a01:4f8:1c0c:4ac0::bad:cafe). - connect (101: Network is unreachable) [IP: 2a01:4f8:1c0c:4ac0::bad:cafe 80]
Reading package lists... Done
W: Failed to fetch http://repozytorium.mati75.eu/raspbian/dists/jessie-backports/InRelease  

W: Failed to fetch http://repozytorium.mati75.eu/raspbian/dists/jessie-backports/Release.gpg  Cannot initiate the connection to repozytorium.mati75.eu:80 (2a01:4f8:1c0c:4ac0::bad:cafe). - connect (101: Network is unreachable) [IP: 2a01:4f8:1c0c:4ac0::bad:cafe 80]

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

@xoxefdp
Copy link

xoxefdp commented Sep 18, 2018

I got the same error, not pretty sure about it but it could be the ipv6 support of the device, i can't tested it because my ISP won't provide me support for it.

Additional to it, there is another error i got while installing.

➜ ~ sudo gpg --keyserver pgpkeys.mit.edu --recv-key CCD91D6111A06851
gpg: solicitando clave 11A06851 de hkp servidor pgpkeys.mit.edu

gpgkeys: key CCD91D6111A06851 can't be retrieved
gpg: no se han encontrado datos OpenPGP válidos
gpg: Cantidad total procesada: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment