Essayez d'installer php-mbstring pour l'installation de mediawiki.
déjà ajouté après la première tentative de référentiel d'univers: Paquet php7.2-mbstring manquant dans Ubuntu 18.04
Mais me donne du mal ici Voici les détails:
usertilo@myserver4:~$ Sudo apt-get install php-mbstring
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:
php-mbstring : Depends: php7.2-mbstring but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
usertilo@myserver4:~$ Sudo apt-get install php7.2-mbstring
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:
php7.2-mbstring : Depends: php7.2-common (= 7.2.3-1ubuntu1) but 7.2.7-0ubuntu0.18.04.2 is to be installed
E: Unable to correct problems, you have held broken packages.
usertilo@myserver4:~$ uname -a
Linux myserver4 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
usertilo@myserver4:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
usertilo@myserver4:~$ Sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
usertilo@server4:~$ Sudo apt-get install php7.2-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
php7.2-common is already the newest version (7.2.7-0ubuntu0.18.04.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
usertilo@myserver4:~$ Sudo apt-cache policy php7.2-common php7.2-mbstring
php7.2-common:
Installed: 7.2.7-0ubuntu0.18.04.2
Candidate: 7.2.7-0ubuntu0.18.04.2
Version table:
*** 7.2.7-0ubuntu0.18.04.2 500
500 http://archive.ubuntu.com/ubuntu bionic-security/main AMD64 Packages
500 http://archive.ubuntu.com/ubuntu bionic-updates/main AMD64 Packages
100 /var/lib/dpkg/status
7.2.3-1ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/main AMD64 Packages
php7.2-mbstring:
Installed: (none)
Candidate: 7.2.3-1ubuntu1
Version table:
7.2.3-1ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/universe AMD64 Packages
usertilo@myserver4:~$ cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main
# deb-src http://archive.ubuntu.com/ubuntu bionic universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main
usertilo@myserver4:~$ cat /etc/apt/sources.list.d/*
cat: '/etc/apt/sources.list.d/*': No such file or directory
Il vous manque des canaux nécessaires de sources.list
. Faites Sudo gedit /etc/apt/sources.list
et faites-le ressembler à ceci:
deb http://archive.ubuntu.com/ubuntu bionic main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-security main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse restricted universe
Sauvegarder et quitter. Puis mettez à jour votre référentiel:
Sudo apt update
Puis installez php-mbstring
:
Sudo apt install php7.2-mbstring
Les informations sur votre package dont apt
a connaissance sont obsolètes.
En utilisant l'outil rmadison
, nous pouvons voir toutes les versions de php7.2-mbstring
dans le dépôt:
php7.2-mbstring | 7.2.3-1ubuntu1 | bionic/universe | AMD64, arm64, armhf, i386, ppc64el, s390x
php7.2-mbstring | 7.2.7-0ubuntu0.18.04.2 | bionic-security/universe | AMD64, arm64, armhf, i386, ppc64el, s390x
php7.2-mbstring | 7.2.7-0ubuntu0.18.04.2 | bionic-updates/universe | AMD64, arm64, armhf, i386, ppc64el, s390x
bien que je ne montre que les objets bioniques ici.
Étant donné que votre système ne connaît pas le php7.2-mbstring
le plus récent dans le référentiel de sécurité ou de mises à jour, vous obtenez une incompatibilité de version.
Lance ça:
Sudo apt-get update
Sudo apt-get upgrade
Sudo apt-get install php7.2-mbstring
Cela devrait vous aider à ramener vos versions là où elles doivent être. (Notez que vous voudrez peut-être utiliser dist-upgrade
au lieu de upgrade
pour que les packages tels que les packages du noyau mis à jour soient également installés et mis à niveau)