Error while installation of mariadb 10 on Ubuntu 14.04












4















When I tried to install mariadb on Ubuntu 14.04, it shows:



dpkg: error processing archive 
/var/cache/apt/archives/libmysqlclient18_10.0.14+maria-1~trusty_amd64.deb (--unpack):
libmysqlclient18:amd64 10.0.14+maria-1~trusty
(Multi-Arch: no) is not co-installable
with libmysqlclient18 which has multiple installed instances
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tried many ways to solve it but no one solved it.










share|improve this question

























  • mariadb.com/kb/en/mariadb/documentation/getting-started/… seems the way to fix this.

    – Rinzwind
    Nov 1 '14 at 11:30
















4















When I tried to install mariadb on Ubuntu 14.04, it shows:



dpkg: error processing archive 
/var/cache/apt/archives/libmysqlclient18_10.0.14+maria-1~trusty_amd64.deb (--unpack):
libmysqlclient18:amd64 10.0.14+maria-1~trusty
(Multi-Arch: no) is not co-installable
with libmysqlclient18 which has multiple installed instances
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tried many ways to solve it but no one solved it.










share|improve this question

























  • mariadb.com/kb/en/mariadb/documentation/getting-started/… seems the way to fix this.

    – Rinzwind
    Nov 1 '14 at 11:30














4












4








4








When I tried to install mariadb on Ubuntu 14.04, it shows:



dpkg: error processing archive 
/var/cache/apt/archives/libmysqlclient18_10.0.14+maria-1~trusty_amd64.deb (--unpack):
libmysqlclient18:amd64 10.0.14+maria-1~trusty
(Multi-Arch: no) is not co-installable
with libmysqlclient18 which has multiple installed instances
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tried many ways to solve it but no one solved it.










share|improve this question
















When I tried to install mariadb on Ubuntu 14.04, it shows:



dpkg: error processing archive 
/var/cache/apt/archives/libmysqlclient18_10.0.14+maria-1~trusty_amd64.deb (--unpack):
libmysqlclient18:amd64 10.0.14+maria-1~trusty
(Multi-Arch: no) is not co-installable
with libmysqlclient18 which has multiple installed instances
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tried many ways to solve it but no one solved it.







14.04 apt dpkg mysql mariadb






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 13 '17 at 13:37









Cristiana Nicolae

2,79582141




2,79582141










asked Nov 1 '14 at 10:54









Marwan ZakariyaMarwan Zakariya

2112




2112













  • mariadb.com/kb/en/mariadb/documentation/getting-started/… seems the way to fix this.

    – Rinzwind
    Nov 1 '14 at 11:30



















  • mariadb.com/kb/en/mariadb/documentation/getting-started/… seems the way to fix this.

    – Rinzwind
    Nov 1 '14 at 11:30

















mariadb.com/kb/en/mariadb/documentation/getting-started/… seems the way to fix this.

– Rinzwind
Nov 1 '14 at 11:30





mariadb.com/kb/en/mariadb/documentation/getting-started/… seems the way to fix this.

– Rinzwind
Nov 1 '14 at 11:30










3 Answers
3






active

oldest

votes


















5














From comments in the mariadb documentation:



To fix the "libmysqlclient18:amd64 5.5.34+maria-1~saucy (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances" problem follow further steps:




The problem is that libmysqlclient18:i386 was not fully removed by the automated install. Rather than "messing" with /var/lib/dpkg/status, my solution was:




  • fully remove libmariadbclient18 (because it depends on libmysqlclient18) with apt-get --purge remove libmariadbclient18


  • fully remove libmysqlclient18:i386 with apt-get --purge remove libmysqlclient18:i386



Then proceed with the automated Software Update installation (or install libmariadbclient18 and libmysqlclient18 5.5.34+maria-1saucy from the terminal)







share|improve this answer

































    3














    For those in Ubuntu 14.10 upgrading from MySQL to Maria DB, I would find this as one answer from Google searches. I would get stuck in 14.10 also with a similar



     libmysqlclient18:amd64 10.0.16+maria-1~utopic (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances


    After following these suggestions to no avail, the following helped me greatly: How to Replace MySQL with MariaDB in Ubuntu Server by JournalXtra .



    Editing /var/lib/dpkg/status and removing the two instances of libmysqlclient18 like this:



    Package: libmysqlclient18
    Status: deinstall ok config-files
    Priority: optional
    Section: libs
    Installed-Size: 3392
    Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
    Architecture: i386
    Multi-Arch: same
    Source: mysql-5.5
    Version: 5.5.40-0ubuntu1
    Config-Version: 5.5.40-0ubuntu1
    Depends: mysql-common (>= 5.5.40-0ubuntu1), libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), zlib1g (>= 1:1.1.4)
    Pre-Depends: multiarch-support
    Description: MySQL database client library
    MySQL is a fast, stable and true multi-user, multi-threaded SQL database
    server. SQL (Structured Query Language) is the most popular database query
    language in the world. The main goals of MySQL are speed, robustness and
    ease of use.
    .
    This package includes the client library.
    Homepage: http://dev.mysql.com/
    Original-Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>


    Allowed me to install MariaDB smoothly afterward.



    sudo apt-get install mariadb-server


    Note: I did get here after many attempts at this removing libmariadbclient18 and libmysqlclient18 before this solution worked. I couldn't get past apt-get issues until these two were removed since they were reported as broken packages before I could attempt any other repair.






    share|improve this answer

































      0














      It works for me.



      sudo dpkg --purge libmysqlclient18  
      sudo dpkg --purge libmysqlclient18:i386
      sudo apt install -f





      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',
        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
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f544345%2ferror-while-installation-of-mariadb-10-on-ubuntu-14-04%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        5














        From comments in the mariadb documentation:



        To fix the "libmysqlclient18:amd64 5.5.34+maria-1~saucy (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances" problem follow further steps:




        The problem is that libmysqlclient18:i386 was not fully removed by the automated install. Rather than "messing" with /var/lib/dpkg/status, my solution was:




        • fully remove libmariadbclient18 (because it depends on libmysqlclient18) with apt-get --purge remove libmariadbclient18


        • fully remove libmysqlclient18:i386 with apt-get --purge remove libmysqlclient18:i386



        Then proceed with the automated Software Update installation (or install libmariadbclient18 and libmysqlclient18 5.5.34+maria-1saucy from the terminal)







        share|improve this answer






























          5














          From comments in the mariadb documentation:



          To fix the "libmysqlclient18:amd64 5.5.34+maria-1~saucy (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances" problem follow further steps:




          The problem is that libmysqlclient18:i386 was not fully removed by the automated install. Rather than "messing" with /var/lib/dpkg/status, my solution was:




          • fully remove libmariadbclient18 (because it depends on libmysqlclient18) with apt-get --purge remove libmariadbclient18


          • fully remove libmysqlclient18:i386 with apt-get --purge remove libmysqlclient18:i386



          Then proceed with the automated Software Update installation (or install libmariadbclient18 and libmysqlclient18 5.5.34+maria-1saucy from the terminal)







          share|improve this answer




























            5












            5








            5







            From comments in the mariadb documentation:



            To fix the "libmysqlclient18:amd64 5.5.34+maria-1~saucy (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances" problem follow further steps:




            The problem is that libmysqlclient18:i386 was not fully removed by the automated install. Rather than "messing" with /var/lib/dpkg/status, my solution was:




            • fully remove libmariadbclient18 (because it depends on libmysqlclient18) with apt-get --purge remove libmariadbclient18


            • fully remove libmysqlclient18:i386 with apt-get --purge remove libmysqlclient18:i386



            Then proceed with the automated Software Update installation (or install libmariadbclient18 and libmysqlclient18 5.5.34+maria-1saucy from the terminal)







            share|improve this answer















            From comments in the mariadb documentation:



            To fix the "libmysqlclient18:amd64 5.5.34+maria-1~saucy (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances" problem follow further steps:




            The problem is that libmysqlclient18:i386 was not fully removed by the automated install. Rather than "messing" with /var/lib/dpkg/status, my solution was:




            • fully remove libmariadbclient18 (because it depends on libmysqlclient18) with apt-get --purge remove libmariadbclient18


            • fully remove libmysqlclient18:i386 with apt-get --purge remove libmysqlclient18:i386



            Then proceed with the automated Software Update installation (or install libmariadbclient18 and libmysqlclient18 5.5.34+maria-1saucy from the terminal)








            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 13 '17 at 9:05









            Oleg Abrazhaev

            13417




            13417










            answered Nov 1 '14 at 11:34









            RinzwindRinzwind

            206k28392526




            206k28392526

























                3














                For those in Ubuntu 14.10 upgrading from MySQL to Maria DB, I would find this as one answer from Google searches. I would get stuck in 14.10 also with a similar



                 libmysqlclient18:amd64 10.0.16+maria-1~utopic (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances


                After following these suggestions to no avail, the following helped me greatly: How to Replace MySQL with MariaDB in Ubuntu Server by JournalXtra .



                Editing /var/lib/dpkg/status and removing the two instances of libmysqlclient18 like this:



                Package: libmysqlclient18
                Status: deinstall ok config-files
                Priority: optional
                Section: libs
                Installed-Size: 3392
                Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
                Architecture: i386
                Multi-Arch: same
                Source: mysql-5.5
                Version: 5.5.40-0ubuntu1
                Config-Version: 5.5.40-0ubuntu1
                Depends: mysql-common (>= 5.5.40-0ubuntu1), libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), zlib1g (>= 1:1.1.4)
                Pre-Depends: multiarch-support
                Description: MySQL database client library
                MySQL is a fast, stable and true multi-user, multi-threaded SQL database
                server. SQL (Structured Query Language) is the most popular database query
                language in the world. The main goals of MySQL are speed, robustness and
                ease of use.
                .
                This package includes the client library.
                Homepage: http://dev.mysql.com/
                Original-Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>


                Allowed me to install MariaDB smoothly afterward.



                sudo apt-get install mariadb-server


                Note: I did get here after many attempts at this removing libmariadbclient18 and libmysqlclient18 before this solution worked. I couldn't get past apt-get issues until these two were removed since they were reported as broken packages before I could attempt any other repair.






                share|improve this answer






























                  3














                  For those in Ubuntu 14.10 upgrading from MySQL to Maria DB, I would find this as one answer from Google searches. I would get stuck in 14.10 also with a similar



                   libmysqlclient18:amd64 10.0.16+maria-1~utopic (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances


                  After following these suggestions to no avail, the following helped me greatly: How to Replace MySQL with MariaDB in Ubuntu Server by JournalXtra .



                  Editing /var/lib/dpkg/status and removing the two instances of libmysqlclient18 like this:



                  Package: libmysqlclient18
                  Status: deinstall ok config-files
                  Priority: optional
                  Section: libs
                  Installed-Size: 3392
                  Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
                  Architecture: i386
                  Multi-Arch: same
                  Source: mysql-5.5
                  Version: 5.5.40-0ubuntu1
                  Config-Version: 5.5.40-0ubuntu1
                  Depends: mysql-common (>= 5.5.40-0ubuntu1), libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), zlib1g (>= 1:1.1.4)
                  Pre-Depends: multiarch-support
                  Description: MySQL database client library
                  MySQL is a fast, stable and true multi-user, multi-threaded SQL database
                  server. SQL (Structured Query Language) is the most popular database query
                  language in the world. The main goals of MySQL are speed, robustness and
                  ease of use.
                  .
                  This package includes the client library.
                  Homepage: http://dev.mysql.com/
                  Original-Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>


                  Allowed me to install MariaDB smoothly afterward.



                  sudo apt-get install mariadb-server


                  Note: I did get here after many attempts at this removing libmariadbclient18 and libmysqlclient18 before this solution worked. I couldn't get past apt-get issues until these two were removed since they were reported as broken packages before I could attempt any other repair.






                  share|improve this answer




























                    3












                    3








                    3







                    For those in Ubuntu 14.10 upgrading from MySQL to Maria DB, I would find this as one answer from Google searches. I would get stuck in 14.10 also with a similar



                     libmysqlclient18:amd64 10.0.16+maria-1~utopic (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances


                    After following these suggestions to no avail, the following helped me greatly: How to Replace MySQL with MariaDB in Ubuntu Server by JournalXtra .



                    Editing /var/lib/dpkg/status and removing the two instances of libmysqlclient18 like this:



                    Package: libmysqlclient18
                    Status: deinstall ok config-files
                    Priority: optional
                    Section: libs
                    Installed-Size: 3392
                    Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
                    Architecture: i386
                    Multi-Arch: same
                    Source: mysql-5.5
                    Version: 5.5.40-0ubuntu1
                    Config-Version: 5.5.40-0ubuntu1
                    Depends: mysql-common (>= 5.5.40-0ubuntu1), libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), zlib1g (>= 1:1.1.4)
                    Pre-Depends: multiarch-support
                    Description: MySQL database client library
                    MySQL is a fast, stable and true multi-user, multi-threaded SQL database
                    server. SQL (Structured Query Language) is the most popular database query
                    language in the world. The main goals of MySQL are speed, robustness and
                    ease of use.
                    .
                    This package includes the client library.
                    Homepage: http://dev.mysql.com/
                    Original-Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>


                    Allowed me to install MariaDB smoothly afterward.



                    sudo apt-get install mariadb-server


                    Note: I did get here after many attempts at this removing libmariadbclient18 and libmysqlclient18 before this solution worked. I couldn't get past apt-get issues until these two were removed since they were reported as broken packages before I could attempt any other repair.






                    share|improve this answer















                    For those in Ubuntu 14.10 upgrading from MySQL to Maria DB, I would find this as one answer from Google searches. I would get stuck in 14.10 also with a similar



                     libmysqlclient18:amd64 10.0.16+maria-1~utopic (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances


                    After following these suggestions to no avail, the following helped me greatly: How to Replace MySQL with MariaDB in Ubuntu Server by JournalXtra .



                    Editing /var/lib/dpkg/status and removing the two instances of libmysqlclient18 like this:



                    Package: libmysqlclient18
                    Status: deinstall ok config-files
                    Priority: optional
                    Section: libs
                    Installed-Size: 3392
                    Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
                    Architecture: i386
                    Multi-Arch: same
                    Source: mysql-5.5
                    Version: 5.5.40-0ubuntu1
                    Config-Version: 5.5.40-0ubuntu1
                    Depends: mysql-common (>= 5.5.40-0ubuntu1), libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), zlib1g (>= 1:1.1.4)
                    Pre-Depends: multiarch-support
                    Description: MySQL database client library
                    MySQL is a fast, stable and true multi-user, multi-threaded SQL database
                    server. SQL (Structured Query Language) is the most popular database query
                    language in the world. The main goals of MySQL are speed, robustness and
                    ease of use.
                    .
                    This package includes the client library.
                    Homepage: http://dev.mysql.com/
                    Original-Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org>


                    Allowed me to install MariaDB smoothly afterward.



                    sudo apt-get install mariadb-server


                    Note: I did get here after many attempts at this removing libmariadbclient18 and libmysqlclient18 before this solution worked. I couldn't get past apt-get issues until these two were removed since they were reported as broken packages before I could attempt any other repair.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Apr 26 '17 at 10:43









                    jakob-r

                    1233




                    1233










                    answered Feb 9 '15 at 7:52









                    m1st0m1st0

                    892




                    892























                        0














                        It works for me.



                        sudo dpkg --purge libmysqlclient18  
                        sudo dpkg --purge libmysqlclient18:i386
                        sudo apt install -f





                        share|improve this answer






























                          0














                          It works for me.



                          sudo dpkg --purge libmysqlclient18  
                          sudo dpkg --purge libmysqlclient18:i386
                          sudo apt install -f





                          share|improve this answer




























                            0












                            0








                            0







                            It works for me.



                            sudo dpkg --purge libmysqlclient18  
                            sudo dpkg --purge libmysqlclient18:i386
                            sudo apt install -f





                            share|improve this answer















                            It works for me.



                            sudo dpkg --purge libmysqlclient18  
                            sudo dpkg --purge libmysqlclient18:i386
                            sudo apt install -f






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Jan 15 at 1:20









                            Pablo Bianchi

                            2,5751532




                            2,5751532










                            answered Jan 14 at 10:41









                            yuliayulia

                            1




                            1






























                                draft saved

                                draft discarded




















































                                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.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f544345%2ferror-while-installation-of-mariadb-10-on-ubuntu-14-04%23new-answer', 'question_page');
                                }
                                );

                                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







                                Popular posts from this blog

                                flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                Mangá

                                Eduardo VII do Reino Unido