Well, now is all fixed. Thanks to @sahsanu for all the help.
The problem can happen from jammy to noble because he has modified the name of the apt sources and is not using them.
/etc/apt/sources.list.d# ll
total 104
drwxr-xr-x 2 root root 4096 Mar 20 04:21 ./
drwxr-xr-x 8 root root 4096 Dec 31 21:14 ../
-rw-r--r-- 1 root root 95 Dec 31 20:33 apache2.list.distUpgrade
-rw-r--r-- 1 root root 107 Dec 31 20:33 apache2.sources
-rw-r--r-- 1 root root 103 Mar 20 04:21 hestia.list
-rw-r--r-- 1 root root 140 Dec 31 20:33 mariadb.list.distUpgrade
-rw-r--r-- 1 root root 83 Mar 19 00:34 monarx.list
-rw-r--r-- 1 root root 121 Dec 31 20:33 nginx.list.distUpgrade
-rw-r--r-- 1 root root 173 Dec 31 20:33 ondrej-ubuntu-php-jammy.list.distUpgrade
-rw-r--r-- 1 root root 746 Dec 31 20:33 ondrej-ubuntu-php-jammy.sources
-rw-r--r-- 1 root root 381 Dec 31 20:33 ubuntu.sources
-rw-r--r-- 1 root root 203 Dec 31 20:33 webupd8team-ubuntu-y-ppa-manager-jammy.list.distUpgrade
-rw-r--r-- 1 root root 11213 Dec 31 20:33 webupd8team-ubuntu-y-ppa-manager-jammy.sources
All files ending in .distUpgrade should only end in .list and the content should be modified to change jammy to noble.
The following code should be adapted to whoever has a similar problem, DO NOT COPY AND PASTE, the files may be different! Check it please
cd /etc/apt/sources.list.d
mkdir /root/backup_sources.list.d_2025-03-31
cp -rf * /root/backup_sources.list.d_2025-03-31
vi mariadb.list.distUpgrade
vi nginx.list.distUpgrade
mv mariadb.list.distUpgrade mariadb.list
mv nginx.list.distUpgrade nginx.list
rm ondrej-ubuntu-php-jammy.sources
rm ondrej-ubuntu-php.list
rm apache2.*
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/apache2
apt update
After making these changes, the packages are ready to be upgraded without any problems with a simple:
apt update && apt upgrade
Note:
Notifications of disconnection with the database may arrive, it may happen because of the update process. If after doing everything, the emails stop arriving, then it is normal, it was just updating while someone wanted to check the database.
Can't connect to MySQL localhost:3306 ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
Thanks for all, for the help everyone give me and special thanks to @sahsanu .
My recomendation? Remember support this great project!