rszkutak
Verified User
I've been having this issue for a week and a half now. All my searching has yielded no results or results that simply do not work. None of my websites on the server use PHP8.x at this time thankfully but i would like to move them to variations of 8 for obvious reasons. What seemed to be a trigger for the event is when i did a fresh install of wordpress on a new website for a friend that I was helping him build, once i got it installed on PHP 8.4 all versions of 8 crashed and would never restart. Prior to that his simple website with no content ran away with memory on php 8.4 using 80% of all the servers memory.
I have absolutely no idea how to resolve this issue and get PHP running again, this is on all versions of PHP 8.x. I have tried to reinstall from custombuild but that bombs out.
As indicated in the below information i also tried the apt --fix-broken install command, still nothing there. This error message comes about every hour so clearly i'm getting a bit tired of it.
I'm open to suggestions here to resolve this issue once and for all. Worst case here I guess I could request a new server build and do a migration but i'd rather not unless that's what i need to do.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
i run a command i got off the web to install PHP on the server and it shows this:
root@ws1:~# sudo apt update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB]
Hit:5 https://rspamd.com/apt-stable focal InRelease
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB]
Fetched 383 kB in 1s (456 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@ws1:~# sudo apt install php
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
linux-image-generic : Depends: linux-image-5.4.0-216-generic but it is not going to be installed
Recommends: thermald but it is not going to be installed
linux-modules-extra-5.4.0-216-generic : Depends: linux-image-5.4.0-216-generic but it is not going to be installed or
linux-image-unsigned-5.4.0-216-generic but it is not going to be installed
php : Depends: php7.4 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@ws1:~# sudo apt --fix-broken install php
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
linux-image-generic : Depends: linux-image-5.4.0-216-generic but it is not going to be installed
Recommends: thermald but it is not going to be installed
linux-modules-extra-5.4.0-216-generic : Depends: linux-image-5.4.0-216-generic but it is not going to be installed or
linux-image-unsigned-5.4.0-216-generic but it is not going to be installed
php : Depends: php7.4 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@ws1:~#
I have absolutely no idea how to resolve this issue and get PHP running again, this is on all versions of PHP 8.x. I have tried to reinstall from custombuild but that bombs out.
As indicated in the below information i also tried the apt --fix-broken install command, still nothing there. This error message comes about every hour so clearly i'm getting a bit tired of it.
I'm open to suggestions here to resolve this issue once and for all. Worst case here I guess I could request a new server build and do a migration but i'd rather not unless that's what i need to do.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
i run a command i got off the web to install PHP on the server and it shows this:
root@ws1:~# sudo apt update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB]
Hit:5 https://rspamd.com/apt-stable focal InRelease
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB]
Fetched 383 kB in 1s (456 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@ws1:~# sudo apt install php
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
linux-image-generic : Depends: linux-image-5.4.0-216-generic but it is not going to be installed
Recommends: thermald but it is not going to be installed
linux-modules-extra-5.4.0-216-generic : Depends: linux-image-5.4.0-216-generic but it is not going to be installed or
linux-image-unsigned-5.4.0-216-generic but it is not going to be installed
php : Depends: php7.4 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@ws1:~# sudo apt --fix-broken install php
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
linux-image-generic : Depends: linux-image-5.4.0-216-generic but it is not going to be installed
Recommends: thermald but it is not going to be installed
linux-modules-extra-5.4.0-216-generic : Depends: linux-image-5.4.0-216-generic but it is not going to be installed or
linux-image-unsigned-5.4.0-216-generic but it is not going to be installed
php : Depends: php7.4 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@ws1:~#