Package php7.2-mbstring unmet dependencies in Ubuntu 18.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


.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






share|improve this question

















  • 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
















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






share|improve this question

















  • 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












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






share|improve this question













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








share|improve this question












share|improve this question




share|improve this question








edited 2 days ago
























asked 2 days ago









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












  • 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










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)






share|improve this answer




























    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





    share|improve this answer





















      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',
      convertImagesToLinks: true,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );








       

      draft saved


      draft discarded


















      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






























      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)






      share|improve this answer

























        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)






        share|improve this answer























          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)






          share|improve this answer













          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)







          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered 2 days ago









          Thomas Ward♦

          40.5k23110166




          40.5k23110166






















              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





              share|improve this answer

























                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





                share|improve this answer























                  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





                  share|improve this answer













                  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






                  share|improve this answer













                  share|improve this answer



                  share|improve this answer











                  answered 2 days ago









                  Olimjon

                  1,666423




                  1,666423






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      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













































































                      Popular posts from this blog

                      pylint3 and pip3 broken

                      Missing snmpget and snmpwalk

                      How to enroll fingerprints to Ubuntu 17.10 with VFS491