phpmyadmin: Zależy: php-phpmyadmin-sql-parser (<5 ~~), ale ma być zainstalowany 5.4.0-1

Oct 13 2020

Po aktualizacji dystrybucji Debiana z 10.5 do 10.6 mam ten mały problem

Nie mogę zaktualizować tego pakietu

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

Myślałem o instalacji, ale debian poprosił mnie o usunięcie phpmyadmin. i myślę, że nie jest to dobry pomysł

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

Potem pomyślałem o zainstalowaniu zarówno phpmyadmin, jak i php-phpmyadmin-sql-parser, ale mam inne stoisko

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.

próbowałem

 dpkg --get-selections | grep hold

Ale to nie daje mi żadnych rezultatów. Zero wyjścia

Próbowałem więc użyć aptitude, ale aptitude poprosił mnie o usunięcie 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/?]

Więc usunąłem, ale phpmyadmin i php-phpmyadmin-sql-parser, a następnie próbowałem ponownie zainstalować tylko 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

Skończyło się na tym, że w ogóle nie mogłem zainstalować phpmyadmin

Moja lista źródeł

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

I to jest zawartość wszystkich dodatkowych plików .list w 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

Co mogę zrobić, aby odblokować tę sytuację?

Sugerowane rozwiązania i rozwiązania

Nie mogę usunąć

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

ponieważ usunięcie tego spowoduje, że phpmyadmin będzie niedostępny, nie będzie kandydata do zainstalowania

-

Odpowiedzi

2 StephenKitt Oct 13 2020 at 15:31

Występują problemy, ponieważ masz skonfigurowane repozytorium niestabilne i phpmyadminobecnie nie można go tam zainstalować. phpmyadminnie jest dostępny w Debianie 10, ale jest dostępny i można go zainstalować z backportów, bez ryzyka aktualizacji (części) systemu do niestabilnego.

Aby naprawić konfigurację:

  1. usuń niestabilną z listy repozytoriów

  2. dodać backporty:

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

    sudo apt install -t buster-backports phpmyadmin
    

Prawdopodobnie napotkasz problemy spowodowane pakietami, które zainstalowałeś z niestabilnej; musisz ręcznie obniżyć wersję, uruchamiając to samo apt installpolecenie, co powyżej, zastępując phpmyadminpakiety, które chcesz obniżyć (lub dodając je do phpmyadmin apt installpolecenia).