GNU/Linux >> LINUX-Kenntnisse >  >> Ubuntu

Paket Php7.2-mbstring Nicht erfüllte Abhängigkeiten in Ubuntu 18.04?

Versuchen Sie, php-mbstring zu installieren für die MediaWiki-Einrichtung.

bereits nach dem ersten Versuch hinzugefügt Universe-Repository:Paket php7.2-mbstring fehlt in Ubuntu 18.04

Aber macht mir schwer
Hier Details:

[email protected]:~$ 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.

[email protected]:~$ 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.

[email protected]:~$ 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

[email protected]:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic

[email protected]:~$ 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.

[email protected]:~$ 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.
  • Aktualisieren Sie die angeforderten Informationen aus Kommentaren
[email protected]:~$ 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

[email protected]:~$ 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

[email protected]:~$ cat /etc/apt/sources.list.d/*
cat: '/etc/apt/sources.list.d/*': No such file or directory

Akzeptierte Antwort:

Ihnen fehlen einige notwendige Kanäle aus sources.list . Führen Sie sudo gedit /etc/apt/sources.list aus und lass es so aussehen:

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

Speichern und beenden.
Dann aktualisieren Sie Ihr Repository:

sudo apt update

Installieren Sie dann php-mbstring :

sudo apt install php7.2-mbstring

Ubuntu
  1. Überprüfen von Paketabhängigkeiten mit apt-rdepends auf Debian und Ubuntu

  2. So installieren Sie PHP 7.4 / 7.3 / 7.2 unter Ubuntu 18.04 / Ubuntu 16.04

  3. So ignorieren oder überspringen Sie Abhängigkeiten beim Installieren von Paketen unter Ubuntu

  4. Cuda 8 unter Ubuntu 16 installieren:Paket Cuda kann nicht gefunden werden?

  5. Installation von Lua5.2 Vs. Lua5.3 auf Ubuntu 16.10?

Ubuntu-Paketverwaltung mit apt

Laden Sie rekursive Abhängigkeiten eines Pakets in Ubuntu herunter

So installieren Sie Minecraft unter Ubuntu 20.04

Überprüfen Sie die Abhängigkeiten eines Pakets in Ubuntu 20.04 und Debian 10

So überprüfen Sie die Abhängigkeiten eines Pakets in Ubuntu/Debian-basierten Linux-Distributionen

Wie installiere ich GLPI auf Ubuntu 20.04?