phpmyadmin: Depende: php-phpmyadmin-sql-parser (<5 ~~) pero se debe instalar 5.4.0-1

Oct 13 2020

Después de dist-upgrade de mi debian, de 10.5 a 10.6 tengo este pequeño problema

No puedo actualizar este paquete

The following packages have been kept back:
  php-phpmyadmin-sql-parser

Pensé en instalar, pero Debian me pidió que eliminara phpmyadmin. y no es una buena idea creo

The following packages will be REMOVED:
  phpmyadmin
The following packages will be upgraded:
  php-phpmyadmin-sql-parser

Luego pensé en instalar phpmyadmin y php-phpmyadmin-sql-parser pero tengo otro puesto

apt install phpmyadmin php-phpmyadmin-sql-parser

Reading package lists... Done
Building dependency tree
Reading state information... Done
phpmyadmin is already the newest version (4:4.9.5+dfsg1-2).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 phpmyadmin : Depends: php-phpmyadmin-sql-parser (< 5~~) but 5.4.0-1 is to be installed
E: Unable to correct problems, you have held broken packages.

Lo intenté

 dpkg --get-selections | grep hold

Pero no me da ningún resultado. Salida cero

Así que intenté usar aptitude, pero aptitude me pidió que eliminara phpmyadmin

# aptitude install php-phpmyadmin-sql-parser
The following packages will be upgraded:
  php-phpmyadmin-sql-parser
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 78.4 kB of archives. After unpacking 12.3 kB will be used.
The following packages have unmet dependencies:
 phpmyadmin : Depends: php-phpmyadmin-sql-parser (< 5~~) but 5.4.0-1 is to be installed
The following actions will resolve these dependencies:

     Remove the following packages:
1)     phpmyadmin [4:4.9.5+dfsg1-2 (now, unstable)]



Accept this solution? [Y/n/q/?]

Así que eliminé phpmyadmin y php-phpmyadmin-sql-parser, luego intenté reinstalar solo phpmyadmin

# apt install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 phpmyadmin : Depends: php-phpmyadmin-sql-parser (< 5~~) but 5.4.0-1 is to be installed
              Recommends: php-bz2
              Recommends: php-tcpdf but it is not going to be installed

Así que terminé sin poder instalar phpmyadmin en absoluto

Mi lista de fuentes

deb http://mirrors.linode.com/debian buster main
deb-src http://mirrors.linode.com/debian buster main

deb http://mirrors.linode.com/debian-security buster/updates main
deb-src http://mirrors.linode.com/debian-security buster/updates main

deb http://mirrors.linode.com/debian buster-updates main
deb-src http://mirrors.linode.com/debian buster-updates main

Y este es el contenido de todos los archivos .list adicionales en sources.list.d

deb http://ftp.debian.org/debian unstable main contrib

deb https://packages.sury.org/php/ buster main

deb https://dl.yarnpkg.com/debian/ stable main

¿Qué puedo hacer para desbloquear esta situación?

Soluciones y esits sugeridos

No puedo quitar

deb http://ftp.debian.org/debian unstable main contrib

porque eliminar esto hará que phpmyadmin no esté disponible, no hay candidato para instalar

-

Respuestas

2 StephenKitt Oct 13 2020 at 15:31

Tiene problemas porque tiene configurado el repositorio inestable y phpmyadminno se puede instalar allí actualmente. phpmyadminno está disponible en Debian 10, pero está disponible e instalable desde backports, sin riesgo de actualizar (partes de) su sistema a inestable.

Para arreglar su configuración:

  1. eliminar inestable de su lista de repositorios

  2. agregar backports:

    echo deb http://deb.debian.org/debian buster-backports main | sudo tee /etc/apt/sources.list.d/buster-backports.list
    sudo apt update
    
  3. instalar el backported phpmyadmin:

    sudo apt install -t buster-backports phpmyadmin
    

Probablemente se encontrará con problemas causados ​​por paquetes que terminó instalando desde inestable; deberá degradarlos manualmente, ejecutando el mismo apt installcomando anterior, reemplazándolos phpmyadmincon los paquetes que necesita degradar (o agregándolos al phpmyadmin apt installcomando).