I have been trying to install PHP 8+ on my Parrot 5.0 but nothing works.
I tried following Instructions on Digital Ocean
I also tried running and adding the repo sudo add-apt-repository ppa:ondrej/php but it gives me this error described in this issue
Currently, there seems to be no solution on the net. Anyone to help?
I had the same issue but here is how I solved it:
Enable/Add the Sury repository:
I used aptitude for the installation so I can the handle the ummet dependencies error.( I got libpcre2-8-0 error in my case).
Install aptitude:
install php and it's dependencies:
I picked a suitable option from the solutions aptitude suggested.
Because the OS has a default php already installed, I ran:
and selected the number of the newer version of php from the numbered options (it was numbered 3 in my case).
I hope this solves your problem. Let me know it if you encounter any issues while following the above steps.
For reference, Check the ReadMe on Sury's official repo.