I upgraded from Debian Buster to Debian Bullseye, after that when I did apt update: the following warnings and errors appear:
t
root@servpc:~# apt update
Hit:1 Index of /debian bullseye InRelease
Hit:2 Index of /debian-security bullseye-security InRelease
Hit:3 Index of /debian bullseye-updates InRelease
Get:4 Index of /apache2/ bullseye InRelease [7,482 B]
Get:5 Index of /php/ bullseye InRelease [7,551 B]
Err:4 Index of /apache2/ bullseye InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
Err:5 Index of /php/ bullseye InRelease
The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
Get:6 Index of /packages/mainline/debian/ bullseye InRelease [2,878 B]
Err:6 Index of /packages/mainline/debian/ bullseye InRelease
The following signatures were invalid: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key [email protected]
Hit:7 https://apt.hestiacp.com bullseye InRelease
Ign:8 mirror - MvA bullseye InRelease
Err:9 mirror - MvA bullseye Release
404 Not Found [IP: 195.65.111.42 443]
Reading package lists… Done
W: GPG error: Index of /apache2/ bullseye InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
E: The repository ‘Index of /apache2/ bullseye InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: Index of /php/ bullseye InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key [email protected]
E: The repository ‘Index of /php/ bullseye InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: Index of /packages/mainline/debian/ bullseye InRelease: The following signatures were invalid: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key [email protected]
E: The repository ‘Index of /packages/mainline/debian/ bullseye InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘mirror - MvA bullseye Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
And when doing apt full-upgrade, the following appears:
Preconfiguring packages …
Determining localhost credentials from /etc/mysql/debian.cnf: failed (no client section).
(Reading database … 67074 files and directories currently installed.)
Preparing to unpack …/phpmyadmin_4%3a5.0.4+dfsg2-2+deb11u1_all.deb …
Determining localhost credentials from /etc/mysql/debian.cnf: failed (no client section).
dpkg-maintscript-helper: error: file ‘/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint’ not owned by package ‘phpmyadmin:all’
dpkg-maintscript-helper: error: file ‘/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint/sql-hint.js’ not owned by package ‘phpmyadmin:all’
dpkg-maintscript-helper: error: file ‘/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint/show-hint.css’ not owned by package ‘phpmyadmin:all’
dpkg-maintscript-helper: error: file ‘/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint/show-hint.js’ not owned by package ‘phpmyadmin:all’
dpkg-maintscript-helper: error: directory ‘/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint’ contains files not owned by package phpmyadmin:all, cannot switch to symlink
dpkg: error processing archive /var/cache/apt/archives/phpmyadmin_4%3a5.0.4+dfsg2-2+deb11u1_all.deb (–unpack):
new phpmyadmin package pre-installation script subprocess returned error exit status 1
Determining localhost credentials from /etc/mysql/debian.cnf: failed (no client section).
dbconfig-common: flushing administrative password
Errors were encountered while processing:
/var/cache/apt/archives/phpmyadmin_4%3a5.0.4+dfsg2-2+deb11u1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Regarding the debian.cnf and phpmyadmin issues, first fix the expired keys and then we will take a look to the other issues.
Anyway, for the debian.cnf error, check if the file exists and if there is a section like this, if it isn’t, you should create it:
[client]
host = localhost
user = root
password='HereYourPassword'
You must replace HereYourPassword with actual root password (the root user is the one on MySQL/MariaDB not the root system user). If you don’t know the root password, check this file, the pass should be there:
cat /root/.my.cnf
You should not install phpmyadmin using debian packages but as I said, first fix the other issues.
apt update
Hit:1 Index of /debian bullseye InRelease
Hit:2 Index of /debian-security bullseye-security InRelease
Hit:3 Index of /debian bullseye-updates InRelease
Hit:4 Index of /apache2/ bullseye InRelease
Hit:5 Index of /php/ bullseye InRelease
Hit:6 Index of /packages/mainline/debian/ bullseye InRelease
Hit:7 https://apt.hestiacp.com bullseye InRelease
Ign:8 mirror - MvA bullseye InRelease
Err:9 mirror - MvA bullseye Release
404 Not Found [IP: 195.65.111.42 443]
Reading package lists… Done
E: The repository ‘mirror - MvA bullseye Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
deb http://mirrors.linode.com/debian bullseye main contrib non-free
deb-src http://mirrors.linode.com/debian bullseye main contrib non-free
deb http://mirrors.linode.com/debian-security bullseye-security main contrib non-free
deb-src http://mirrors.linode.com/debian-security bullseye-security main contrib non-free
# buster-updates, previously known as 'volatile'
deb http://mirrors.linode.com/debian bullseye-updates main contrib non-free
deb-src http://mirrors.linode.com/debian bullseye-updates main contrib non-free
Gracias, en todo caso hice las ultimas recomendaciones y todo sigue igual:
Unpacking mariadb-server-10.5 (1:10.5.26+maria~deb11) over (1:10.5.23-0+deb11u1) …
Preparing to unpack …/mariadb-server-core-10.5_1%3a10.5.26+maria~deb11_amd64.deb …
Unpacking mariadb-server-core-10.5 (1:10.5.26+maria~deb11) over (1:10.5.23-0+deb11u1) …
Preparing to unpack …/phpmyadmin_4%3a5.0.4+dfsg2-2+deb11u1_all.deb …
Determining localhost credentials from /etc/mysql/debian.cnf: failed (no client section).
dpkg-maintscript-helper: error: file ‘/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint’ not owned by package ‘phpmyadmin:all’
dpkg-maintscript-helper: error: file ‘/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint/sql-hint.js’ not owned by package ‘phpmyadmin:all’
dpkg-maintscript-helper: error: file ‘/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint/show-hint.css’ not owned by package ‘phpmyadmin:all’
dpkg-maintscript-helper: error: file ‘/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint/show-hint.js’ not owned by package ‘phpmyadmin:all’
dpkg-maintscript-helper: error: directory ‘/usr/share/phpmyadmin/js/vendor/codemirror/addon/hint’ contains files not owned by package phpmyadmin:all, cannot switch to symlink
dpkg: error processing archive /var/cache/apt/archives/phpmyadmin_4%3a5.0.4+dfsg2-2+deb11u1_all.deb (–unpack):
new phpmyadmin package pre-installation script subprocess returned error exit status 1
Determining localhost credentials from /etc/mysql/debian.cnf: failed (no client section).
dbconfig-common: flushing administrative password
Errors were encountered while processing:
/var/cache/apt/archives/phpmyadmin_4%3a5.0.4+dfsg2-2+deb11u1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sigo buscando una solución, si la encuentro te aviso, y/o espero cuando puedas, yo puedo seguir viendo esto un rato mas y despues hasta mañana.
Above script will hold Debian’s phpmyadmin package, will remove the current phpmyadmin dirs (/etc/phpmyadmin/, /usr/share/phpmyadmin/ and /var/lib/phpmyadmin/) and will install the last phpMyAdmin version and will configure it.
First of all thank you very much for your help.
I’m stuck on the last thing with phpmyadmin, this is what happens:
/usr/local/hestia/install/upgrade/manual/migrate_phpmyadmin.sh
To remove phpMyAdmin you will need use the root password. Password can be found in /usr/local/hestia/conf/mysql.conf
Would you like to continue? [y/n]y
[ * ] Backing up old configuration files…
[ * ] Marking phpmyadmin as held in apt…
phpmyadmin was already set on hold.
[ * ] Removing old folders… [ * ] Creating new folders… [ * ] Installing phpMyAdmin version v5.2.1… [ * ] Creating localhost configuration… [ * ] Dropping database (could throw an error if successful)… apt full-upgrade Reading package lists… Done Building dependency tree… Done Reading state information… Done Calculating upgrade… Done The following packages have been kept back: phpmyadmin 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded .