Package php7.2-mbstring unmet dependencies in Ubuntu 18.04
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
Try to install php-mbstring for mediawiki setup.
already added after first attempt universe repository: Package php7.2-mbstring missing in Ubuntu 18.04
But gives me hard time
Here details:
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.
- update add info requested from comments
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
apt package-management 18.04 dependencies
add a comment |Â
up vote
1
down vote
favorite
Try to install php-mbstring for mediawiki setup.
already added after first attempt universe repository: Package php7.2-mbstring missing in Ubuntu 18.04
But gives me hard time
Here details:
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.
- update add info requested from comments
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
apt package-management 18.04 dependencies
1
Show us the output of the following, please, I'd like to see whether having different repositories enabled or disabled may be the cause of your problems, and this will help shed some light:apt-cache policy php7.2-common php7.2-mbstring
(Also, FYI, Universe is enabled by default on Ubuntu 18.04)
â Thomas Wardâ¦
2 days ago
@TiloBunt What sources do you have in/etc/apt/sources.list
? And same question for the sources in/etc/apt/sources.list.d/*
. Those are the sources you get all your packages from. So make sure, that all looks alright. Get the repository of the package you want to install and check whether you have its source within the mentioned lists.
â Socrates
2 days ago
@ThomasWard and Socrates, added info to my question. let me know if I should check anything else. It's a brand new install
â TiloBunt
2 days ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Try to install php-mbstring for mediawiki setup.
already added after first attempt universe repository: Package php7.2-mbstring missing in Ubuntu 18.04
But gives me hard time
Here details:
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.
- update add info requested from comments
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
apt package-management 18.04 dependencies
Try to install php-mbstring for mediawiki setup.
already added after first attempt universe repository: Package php7.2-mbstring missing in Ubuntu 18.04
But gives me hard time
Here details:
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.
- update add info requested from comments
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
apt package-management 18.04 dependencies
edited 2 days ago
asked 2 days ago
![](https://i.stack.imgur.com/Rvet8.jpg?s=32&g=1)
![](https://i.stack.imgur.com/Rvet8.jpg?s=32&g=1)
TiloBunt
1,19311529
1,19311529
1
Show us the output of the following, please, I'd like to see whether having different repositories enabled or disabled may be the cause of your problems, and this will help shed some light:apt-cache policy php7.2-common php7.2-mbstring
(Also, FYI, Universe is enabled by default on Ubuntu 18.04)
â Thomas Wardâ¦
2 days ago
@TiloBunt What sources do you have in/etc/apt/sources.list
? And same question for the sources in/etc/apt/sources.list.d/*
. Those are the sources you get all your packages from. So make sure, that all looks alright. Get the repository of the package you want to install and check whether you have its source within the mentioned lists.
â Socrates
2 days ago
@ThomasWard and Socrates, added info to my question. let me know if I should check anything else. It's a brand new install
â TiloBunt
2 days ago
add a comment |Â
1
Show us the output of the following, please, I'd like to see whether having different repositories enabled or disabled may be the cause of your problems, and this will help shed some light:apt-cache policy php7.2-common php7.2-mbstring
(Also, FYI, Universe is enabled by default on Ubuntu 18.04)
â Thomas Wardâ¦
2 days ago
@TiloBunt What sources do you have in/etc/apt/sources.list
? And same question for the sources in/etc/apt/sources.list.d/*
. Those are the sources you get all your packages from. So make sure, that all looks alright. Get the repository of the package you want to install and check whether you have its source within the mentioned lists.
â Socrates
2 days ago
@ThomasWard and Socrates, added info to my question. let me know if I should check anything else. It's a brand new install
â TiloBunt
2 days ago
1
1
Show us the output of the following, please, I'd like to see whether having different repositories enabled or disabled may be the cause of your problems, and this will help shed some light:
apt-cache policy php7.2-common php7.2-mbstring
(Also, FYI, Universe is enabled by default on Ubuntu 18.04)â Thomas Wardâ¦
2 days ago
Show us the output of the following, please, I'd like to see whether having different repositories enabled or disabled may be the cause of your problems, and this will help shed some light:
apt-cache policy php7.2-common php7.2-mbstring
(Also, FYI, Universe is enabled by default on Ubuntu 18.04)â Thomas Wardâ¦
2 days ago
@TiloBunt What sources do you have in
/etc/apt/sources.list
? And same question for the sources in /etc/apt/sources.list.d/*
. Those are the sources you get all your packages from. So make sure, that all looks alright. Get the repository of the package you want to install and check whether you have its source within the mentioned lists.â Socrates
2 days ago
@TiloBunt What sources do you have in
/etc/apt/sources.list
? And same question for the sources in /etc/apt/sources.list.d/*
. Those are the sources you get all your packages from. So make sure, that all looks alright. Get the repository of the package you want to install and check whether you have its source within the mentioned lists.â Socrates
2 days ago
@ThomasWard and Socrates, added info to my question. let me know if I should check anything else. It's a brand new install
â TiloBunt
2 days ago
@ThomasWard and Socrates, added info to my question. let me know if I should check anything else. It's a brand new install
â TiloBunt
2 days ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
0
down vote
Your package information that apt
knows about is out of date.
Using the rmadison
tool, we can see all the versions of php7.2-mbstring
in the repos:
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
though I am only showing the Bionic items here.
Because your system doesn't know about the newer php7.2-mbstring
in the security or updates repos, you're getting a version mismatch.
Run this:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
This should assist in getting your versions back to where they need to be. (Note you may wish to use dist-upgrade
instead of upgrade
so that packages such as updated kernel packages get installed and upgraded too)
add a comment |Â
up vote
0
down vote
You are missing some necessary channels from sources.list
. Do sudo gedit /etc/apt/sources.list
and make it look like this:
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
Save and exit.
Then update your repository:
sudo apt update
Then install php-mbstring
:
sudo apt install php7.2-mbstring
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Your package information that apt
knows about is out of date.
Using the rmadison
tool, we can see all the versions of php7.2-mbstring
in the repos:
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
though I am only showing the Bionic items here.
Because your system doesn't know about the newer php7.2-mbstring
in the security or updates repos, you're getting a version mismatch.
Run this:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
This should assist in getting your versions back to where they need to be. (Note you may wish to use dist-upgrade
instead of upgrade
so that packages such as updated kernel packages get installed and upgraded too)
add a comment |Â
up vote
0
down vote
Your package information that apt
knows about is out of date.
Using the rmadison
tool, we can see all the versions of php7.2-mbstring
in the repos:
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
though I am only showing the Bionic items here.
Because your system doesn't know about the newer php7.2-mbstring
in the security or updates repos, you're getting a version mismatch.
Run this:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
This should assist in getting your versions back to where they need to be. (Note you may wish to use dist-upgrade
instead of upgrade
so that packages such as updated kernel packages get installed and upgraded too)
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Your package information that apt
knows about is out of date.
Using the rmadison
tool, we can see all the versions of php7.2-mbstring
in the repos:
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
though I am only showing the Bionic items here.
Because your system doesn't know about the newer php7.2-mbstring
in the security or updates repos, you're getting a version mismatch.
Run this:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
This should assist in getting your versions back to where they need to be. (Note you may wish to use dist-upgrade
instead of upgrade
so that packages such as updated kernel packages get installed and upgraded too)
Your package information that apt
knows about is out of date.
Using the rmadison
tool, we can see all the versions of php7.2-mbstring
in the repos:
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
though I am only showing the Bionic items here.
Because your system doesn't know about the newer php7.2-mbstring
in the security or updates repos, you're getting a version mismatch.
Run this:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
This should assist in getting your versions back to where they need to be. (Note you may wish to use dist-upgrade
instead of upgrade
so that packages such as updated kernel packages get installed and upgraded too)
answered 2 days ago
![](https://i.stack.imgur.com/jLgkr.jpg?s=32&g=1)
![](https://i.stack.imgur.com/jLgkr.jpg?s=32&g=1)
Thomas Wardâ¦
40.5k23110166
40.5k23110166
add a comment |Â
add a comment |Â
up vote
0
down vote
You are missing some necessary channels from sources.list
. Do sudo gedit /etc/apt/sources.list
and make it look like this:
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
Save and exit.
Then update your repository:
sudo apt update
Then install php-mbstring
:
sudo apt install php7.2-mbstring
add a comment |Â
up vote
0
down vote
You are missing some necessary channels from sources.list
. Do sudo gedit /etc/apt/sources.list
and make it look like this:
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
Save and exit.
Then update your repository:
sudo apt update
Then install php-mbstring
:
sudo apt install php7.2-mbstring
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You are missing some necessary channels from sources.list
. Do sudo gedit /etc/apt/sources.list
and make it look like this:
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
Save and exit.
Then update your repository:
sudo apt update
Then install php-mbstring
:
sudo apt install php7.2-mbstring
You are missing some necessary channels from sources.list
. Do sudo gedit /etc/apt/sources.list
and make it look like this:
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
Save and exit.
Then update your repository:
sudo apt update
Then install php-mbstring
:
sudo apt install php7.2-mbstring
answered 2 days ago
Olimjon
1,666423
1,666423
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1062160%2fpackage-php7-2-mbstring-unmet-dependencies-in-ubuntu-18-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Show us the output of the following, please, I'd like to see whether having different repositories enabled or disabled may be the cause of your problems, and this will help shed some light:
apt-cache policy php7.2-common php7.2-mbstring
(Also, FYI, Universe is enabled by default on Ubuntu 18.04)â Thomas Wardâ¦
2 days ago
@TiloBunt What sources do you have in
/etc/apt/sources.list
? And same question for the sources in/etc/apt/sources.list.d/*
. Those are the sources you get all your packages from. So make sure, that all looks alright. Get the repository of the package you want to install and check whether you have its source within the mentioned lists.â Socrates
2 days ago
@ThomasWard and Socrates, added info to my question. let me know if I should check anything else. It's a brand new install
â TiloBunt
2 days ago