Unable to install php-mbstring
I am attempting to install php-mbstring on a Ubuntu 18.04 server which already has apache2, php and mariadb installed. I have tried with the following sequence of commands:
jonathan@samuel:~$ sudo apt update
[sudo] password for jonathan:
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://downloads.mariadb.com/MariaDB/mariadb-10.3/repo/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Ign:4 http://downloads.mariadb.com/MaxScale/2.2/ubuntu bionic InRelease
Hit:5 http://downloads.mariadb.com/Tools/ubuntu bionic InRelease
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:7 http://downloads.mariadb.com/MaxScale/2.2/ubuntu bionic Release
Fetched 172 kB in 2s (91.6 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
jonathan@samuel:~$ sudo apt 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.
jonathan@samuel:~$ sudo apt -f 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.
It appears that there is an unresolveable dependency involved. How can I correct the situation? This problem is blocking my attempt to install phpMyAdmin.
18.04 php
add a comment |
I am attempting to install php-mbstring on a Ubuntu 18.04 server which already has apache2, php and mariadb installed. I have tried with the following sequence of commands:
jonathan@samuel:~$ sudo apt update
[sudo] password for jonathan:
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://downloads.mariadb.com/MariaDB/mariadb-10.3/repo/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Ign:4 http://downloads.mariadb.com/MaxScale/2.2/ubuntu bionic InRelease
Hit:5 http://downloads.mariadb.com/Tools/ubuntu bionic InRelease
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:7 http://downloads.mariadb.com/MaxScale/2.2/ubuntu bionic Release
Fetched 172 kB in 2s (91.6 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
jonathan@samuel:~$ sudo apt 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.
jonathan@samuel:~$ sudo apt -f 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.
It appears that there is an unresolveable dependency involved. How can I correct the situation? This problem is blocking my attempt to install phpMyAdmin.
18.04 php
add a comment |
I am attempting to install php-mbstring on a Ubuntu 18.04 server which already has apache2, php and mariadb installed. I have tried with the following sequence of commands:
jonathan@samuel:~$ sudo apt update
[sudo] password for jonathan:
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://downloads.mariadb.com/MariaDB/mariadb-10.3/repo/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Ign:4 http://downloads.mariadb.com/MaxScale/2.2/ubuntu bionic InRelease
Hit:5 http://downloads.mariadb.com/Tools/ubuntu bionic InRelease
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:7 http://downloads.mariadb.com/MaxScale/2.2/ubuntu bionic Release
Fetched 172 kB in 2s (91.6 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
jonathan@samuel:~$ sudo apt 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.
jonathan@samuel:~$ sudo apt -f 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.
It appears that there is an unresolveable dependency involved. How can I correct the situation? This problem is blocking my attempt to install phpMyAdmin.
18.04 php
I am attempting to install php-mbstring on a Ubuntu 18.04 server which already has apache2, php and mariadb installed. I have tried with the following sequence of commands:
jonathan@samuel:~$ sudo apt update
[sudo] password for jonathan:
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://downloads.mariadb.com/MariaDB/mariadb-10.3/repo/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Ign:4 http://downloads.mariadb.com/MaxScale/2.2/ubuntu bionic InRelease
Hit:5 http://downloads.mariadb.com/Tools/ubuntu bionic InRelease
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:7 http://downloads.mariadb.com/MaxScale/2.2/ubuntu bionic Release
Fetched 172 kB in 2s (91.6 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
jonathan@samuel:~$ sudo apt 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.
jonathan@samuel:~$ sudo apt -f 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.
It appears that there is an unresolveable dependency involved. How can I correct the situation? This problem is blocking my attempt to install phpMyAdmin.
18.04 php
18.04 php
edited Aug 12 '18 at 12:04
karel
59.8k13129151
59.8k13129151
asked Aug 12 '18 at 11:53
JonathanJonathan
5433619
5433619
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I had to enable universe in my sources.list
sudo vi /etc/apt/sources.list
change the file to look like this:
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
updated apt-get
sudo apt update
And then I could install php7.2-mbstring
I have universe enabled and it did not help.
– Jonathan
Aug 13 '18 at 1:04
weird, can you post what you have in your sources.list?
– bradhancock
Aug 13 '18 at 3:27
I have changed my environment for reasons unrelated to this problem but as soon as I have apache2 and php installed I will try again and report.
– Jonathan
Aug 13 '18 at 15:42
add a comment |
I had the same trouble in Ubuntu 18.04
Edit the file /etc/apt/sources.list with the next lines:
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 run:
sudo apt update && sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
And it's done
If you're like me you might be tempted to copy those lines and update and install and move on without knowing what those things mean. I'm not sure which switch(es) made it work, so that's a little frustrating--how do I find that out? If it was restricted or multiverse do I have to pay for it? I only had "main" originally in my sources.list file. I learned: restricted=not_free/canonical_supported. universe=free/not_supported. multiverse=not_free/not_supported. en.wikipedia.org/wiki/Ubuntu#Package_classification_and_support
– jbobbins
Oct 30 '18 at 16:31
mbstring is only universe repositories so you need add multiverse, you can reach more information here: packages.ubuntu.com/bionic/php7.2-mbstring
– Jorgeee
Nov 5 '18 at 16:27
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1064634%2funable-to-install-php-mbstring%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I had to enable universe in my sources.list
sudo vi /etc/apt/sources.list
change the file to look like this:
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
updated apt-get
sudo apt update
And then I could install php7.2-mbstring
I have universe enabled and it did not help.
– Jonathan
Aug 13 '18 at 1:04
weird, can you post what you have in your sources.list?
– bradhancock
Aug 13 '18 at 3:27
I have changed my environment for reasons unrelated to this problem but as soon as I have apache2 and php installed I will try again and report.
– Jonathan
Aug 13 '18 at 15:42
add a comment |
I had to enable universe in my sources.list
sudo vi /etc/apt/sources.list
change the file to look like this:
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
updated apt-get
sudo apt update
And then I could install php7.2-mbstring
I have universe enabled and it did not help.
– Jonathan
Aug 13 '18 at 1:04
weird, can you post what you have in your sources.list?
– bradhancock
Aug 13 '18 at 3:27
I have changed my environment for reasons unrelated to this problem but as soon as I have apache2 and php installed I will try again and report.
– Jonathan
Aug 13 '18 at 15:42
add a comment |
I had to enable universe in my sources.list
sudo vi /etc/apt/sources.list
change the file to look like this:
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
updated apt-get
sudo apt update
And then I could install php7.2-mbstring
I had to enable universe in my sources.list
sudo vi /etc/apt/sources.list
change the file to look like this:
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
updated apt-get
sudo apt update
And then I could install php7.2-mbstring
answered Aug 12 '18 at 16:29
bradhancockbradhancock
612
612
I have universe enabled and it did not help.
– Jonathan
Aug 13 '18 at 1:04
weird, can you post what you have in your sources.list?
– bradhancock
Aug 13 '18 at 3:27
I have changed my environment for reasons unrelated to this problem but as soon as I have apache2 and php installed I will try again and report.
– Jonathan
Aug 13 '18 at 15:42
add a comment |
I have universe enabled and it did not help.
– Jonathan
Aug 13 '18 at 1:04
weird, can you post what you have in your sources.list?
– bradhancock
Aug 13 '18 at 3:27
I have changed my environment for reasons unrelated to this problem but as soon as I have apache2 and php installed I will try again and report.
– Jonathan
Aug 13 '18 at 15:42
I have universe enabled and it did not help.
– Jonathan
Aug 13 '18 at 1:04
I have universe enabled and it did not help.
– Jonathan
Aug 13 '18 at 1:04
weird, can you post what you have in your sources.list?
– bradhancock
Aug 13 '18 at 3:27
weird, can you post what you have in your sources.list?
– bradhancock
Aug 13 '18 at 3:27
I have changed my environment for reasons unrelated to this problem but as soon as I have apache2 and php installed I will try again and report.
– Jonathan
Aug 13 '18 at 15:42
I have changed my environment for reasons unrelated to this problem but as soon as I have apache2 and php installed I will try again and report.
– Jonathan
Aug 13 '18 at 15:42
add a comment |
I had the same trouble in Ubuntu 18.04
Edit the file /etc/apt/sources.list with the next lines:
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 run:
sudo apt update && sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
And it's done
If you're like me you might be tempted to copy those lines and update and install and move on without knowing what those things mean. I'm not sure which switch(es) made it work, so that's a little frustrating--how do I find that out? If it was restricted or multiverse do I have to pay for it? I only had "main" originally in my sources.list file. I learned: restricted=not_free/canonical_supported. universe=free/not_supported. multiverse=not_free/not_supported. en.wikipedia.org/wiki/Ubuntu#Package_classification_and_support
– jbobbins
Oct 30 '18 at 16:31
mbstring is only universe repositories so you need add multiverse, you can reach more information here: packages.ubuntu.com/bionic/php7.2-mbstring
– Jorgeee
Nov 5 '18 at 16:27
add a comment |
I had the same trouble in Ubuntu 18.04
Edit the file /etc/apt/sources.list with the next lines:
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 run:
sudo apt update && sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
And it's done
If you're like me you might be tempted to copy those lines and update and install and move on without knowing what those things mean. I'm not sure which switch(es) made it work, so that's a little frustrating--how do I find that out? If it was restricted or multiverse do I have to pay for it? I only had "main" originally in my sources.list file. I learned: restricted=not_free/canonical_supported. universe=free/not_supported. multiverse=not_free/not_supported. en.wikipedia.org/wiki/Ubuntu#Package_classification_and_support
– jbobbins
Oct 30 '18 at 16:31
mbstring is only universe repositories so you need add multiverse, you can reach more information here: packages.ubuntu.com/bionic/php7.2-mbstring
– Jorgeee
Nov 5 '18 at 16:27
add a comment |
I had the same trouble in Ubuntu 18.04
Edit the file /etc/apt/sources.list with the next lines:
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 run:
sudo apt update && sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
And it's done
I had the same trouble in Ubuntu 18.04
Edit the file /etc/apt/sources.list with the next lines:
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 run:
sudo apt update && sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
And it's done
edited Nov 10 '18 at 22:02
answered Sep 10 '18 at 22:16
JorgeeeJorgeee
335
335
If you're like me you might be tempted to copy those lines and update and install and move on without knowing what those things mean. I'm not sure which switch(es) made it work, so that's a little frustrating--how do I find that out? If it was restricted or multiverse do I have to pay for it? I only had "main" originally in my sources.list file. I learned: restricted=not_free/canonical_supported. universe=free/not_supported. multiverse=not_free/not_supported. en.wikipedia.org/wiki/Ubuntu#Package_classification_and_support
– jbobbins
Oct 30 '18 at 16:31
mbstring is only universe repositories so you need add multiverse, you can reach more information here: packages.ubuntu.com/bionic/php7.2-mbstring
– Jorgeee
Nov 5 '18 at 16:27
add a comment |
If you're like me you might be tempted to copy those lines and update and install and move on without knowing what those things mean. I'm not sure which switch(es) made it work, so that's a little frustrating--how do I find that out? If it was restricted or multiverse do I have to pay for it? I only had "main" originally in my sources.list file. I learned: restricted=not_free/canonical_supported. universe=free/not_supported. multiverse=not_free/not_supported. en.wikipedia.org/wiki/Ubuntu#Package_classification_and_support
– jbobbins
Oct 30 '18 at 16:31
mbstring is only universe repositories so you need add multiverse, you can reach more information here: packages.ubuntu.com/bionic/php7.2-mbstring
– Jorgeee
Nov 5 '18 at 16:27
If you're like me you might be tempted to copy those lines and update and install and move on without knowing what those things mean. I'm not sure which switch(es) made it work, so that's a little frustrating--how do I find that out? If it was restricted or multiverse do I have to pay for it? I only had "main" originally in my sources.list file. I learned: restricted=not_free/canonical_supported. universe=free/not_supported. multiverse=not_free/not_supported. en.wikipedia.org/wiki/Ubuntu#Package_classification_and_support
– jbobbins
Oct 30 '18 at 16:31
If you're like me you might be tempted to copy those lines and update and install and move on without knowing what those things mean. I'm not sure which switch(es) made it work, so that's a little frustrating--how do I find that out? If it was restricted or multiverse do I have to pay for it? I only had "main" originally in my sources.list file. I learned: restricted=not_free/canonical_supported. universe=free/not_supported. multiverse=not_free/not_supported. en.wikipedia.org/wiki/Ubuntu#Package_classification_and_support
– jbobbins
Oct 30 '18 at 16:31
mbstring is only universe repositories so you need add multiverse, you can reach more information here: packages.ubuntu.com/bionic/php7.2-mbstring
– Jorgeee
Nov 5 '18 at 16:27
mbstring is only universe repositories so you need add multiverse, you can reach more information here: packages.ubuntu.com/bionic/php7.2-mbstring
– Jorgeee
Nov 5 '18 at 16:27
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1064634%2funable-to-install-php-mbstring%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown