Announcement

Collapse
No announcement yet.

Package disaster

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Package disaster

    So I tried installing MariaDB, a replacement for Mysql. The installation failed and Im now in package hell. Ive tried correcting everything with apt-get install -f, but it doesnt work.
    Code:
    $ sudo apt-get install -f
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following additional packages will be installed:
      mariadb-client-10.1
    The following NEW packages will be installed:
      mariadb-client-10.1
    0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
    5 not fully installed or removed.
    Need to get 0 B/1,093 kB of archives.
    After this operation, 25.2 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    (Reading database ... 332592 files and directories currently installed.)
    Preparing to unpack .../mariadb-client-10.1_10.1.14+maria-1~xenial_amd64.deb ...
    Unpacking mariadb-client-10.1 (10.1.14+maria-1~xenial) ...
    dpkg: error processing archive /var/cache/apt/archives/mariadb-client-10.1_10.1.14+maria-1~xenial_amd64.deb (--unpack):
     trying to overwrite '/usr/bin/innochecksum', which is also in package mysql-server-core-5.7 5.7.12-0ubuntu1
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Processing triggers for man-db (2.7.5-1) ...
    Processing triggers for menu (2.1.47ubuntu1) ...
    Errors were encountered while processing:
     /var/cache/apt/archives/mariadb-client-10.1_10.1.14+maria-1~xenial_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Ive basically been going in circles for a full day now trying to resolve dependency issue only to create new ones. Any help would be much appreciated.

    #2
    Have you 'updated' the package cache before attempting the fix?
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      How do you do that?

      Comment


        #4
        sudo apt update
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Ok. That solved the MariaDB issue. Thanks! But still cant install mysql.
          Code:
          $ sudo apt-get install mysql-server --fix-missing --fix-broken
          Reading package lists... Done
          Building dependency tree       
          Reading state information... Done
          The following additional packages will be installed:
            mysql-server-5.7
          Suggested packages:
            tinyca
          The following NEW packages will be installed:
            mysql-server mysql-server-5.7
          0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
          Need to get 0 B/2,594 kB of archives.
          After this operation, 48.5 MB of additional disk space will be used.
          Do you want to continue? [Y/n] y
          Preconfiguring packages ...
          Selecting previously unselected package mysql-server-5.7.
          (Reading database ... 332613 files and directories currently installed.)
          Preparing to unpack .../mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb ...
          grep: /etc/mysql/: No such file or directory
          Unpacking mysql-server-5.7 (5.7.12-0ubuntu1) ...
          Selecting previously unselected package mysql-server.
          Preparing to unpack .../mysql-server_5.7.12-0ubuntu1_all.deb ...
          Unpacking mysql-server (5.7.12-0ubuntu1) ...
          Processing triggers for systemd (229-4ubuntu6) ...
          Processing triggers for ureadahead (0.100.0-19) ...
          Processing triggers for man-db (2.7.5-1) ...
          Setting up mysql-server-5.7 (5.7.12-0ubuntu1) ...
          update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
          Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
          invoke-rc.d: initscript mysql, action "start" failed.
          dpkg: error processing package mysql-server-5.7 (--configure):
           subprocess installed post-installation script returned error exit status 1
          No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                    dpkg: dependency problems prevent configuration of mysql-server:
           mysql-server depends on mysql-server-5.7; however:
            Package mysql-server-5.7 is not configured yet.
          
          dpkg: error processing package mysql-server (--configure):
           dependency problems - leaving unconfigured
          Processing triggers for systemd (229-4ubuntu6) ...
          Processing triggers for ureadahead (0.100.0-19) ...
          Errors were encountered while processing:
           mysql-server-5.7
           mysql-server
          E: Sub-process /usr/bin/dpkg returned an error code (1)

          Comment


            #6
            Try running sudo apt update again followed by sudo apt install -f again.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Same error. It seems like no matter what I do, I always end up back at this error. It looks like it may be a mysql issue, not a package issue: https://bugs.launchpad.net/ubuntu/+s...7/+bug/1573279 Ive tried most of the suggestions there, but none of them seem to work for me.

              Comment


                #8
                Remove/purge MariaDB maybe, then install/reinstall/fix mysql?
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  Edit:
                  When I try to uninstall MariaDB, I get the same errors:
                  Code:
                  $ sudo apt-get purge mariadb*
                  Reading package lists... Done
                  Building dependency tree       
                  Reading state information... Done
                  Note, selecting 'mariadb-test' for glob 'mariadb*'
                  Note, selecting 'mariadb-test-data-10.0' for glob 'mariadb*'
                  Note, selecting 'mariadb-test-data' for glob 'mariadb*'
                  Note, selecting 'mariadb-test-5.5' for glob 'mariadb*'
                  Note, selecting 'mariadb-common' for glob 'mariadb*'
                  Note, selecting 'mariadb-plugin-connect' for glob 'mariadb*'
                  Note, selecting 'mariadb-server-core-5.5' for glob 'mariadb*'
                  Note, selecting 'mariadb-server-5.5' for glob 'mariadb*'
                  Note, selecting 'mariadb-tokudb-engine-5.5' for glob 'mariadb*'
                  Note, selecting 'mariadb-server-core-10.0' for glob 'mariadb*'
                  Note, selecting 'mariadb-connect-engine-10.0' for glob 'mariadb*'
                  Note, selecting 'mariadb-galera-server' for glob 'mariadb*'
                  Note, selecting 'mariadb-client-5.5' for glob 'mariadb*'
                  Note, selecting 'mariadb-server-10.0' for glob 'mariadb*'
                  Note, selecting 'mariadb-plugin-oqgraph' for glob 'mariadb*'
                  Note, selecting 'mariadb-plugin-spider' for glob 'mariadb*'
                  Note, selecting 'mariadb-galera-server-10.0' for glob 'mariadb*'
                  Note, selecting 'mariadb-plugin-tokudb' for glob 'mariadb*'
                  Note, selecting 'mariadb-client-10.0' for glob 'mariadb*'
                  Note, selecting 'mariadb-server' for glob 'mariadb*'
                  Note, selecting 'mariadb-tokudb-engine-10.0' for glob 'mariadb*'
                  Note, selecting 'mariadb-client-core-10.0' for glob 'mariadb*'
                  Note, selecting 'mariadb-client' for glob 'mariadb*'
                  Note, selecting 'mariadb-test-10.0' for glob 'mariadb*'
                  Note, selecting 'mariadb-oqgraph-engine-10.0' for glob 'mariadb*'
                  Note, selecting 'mariadb-galera-server-5.5' for glob 'mariadb*'
                  Note, selecting 'mariadb-client-core-5.5' for glob 'mariadb*'
                  Note, selecting 'mariadb-plugin-mroonga' for glob 'mariadb*'
                  Package 'mariadb-server-5.5' is not installed, so not removed
                  Package 'mariadb-client-5.5' is not installed, so not removed
                  Package 'mariadb-client-core-5.5' is not installed, so not removed
                  Package 'mariadb-galera-server-10.0' is not installed, so not removed
                  Package 'mariadb-connect-engine-10.0' is not installed, so not removed
                  Package 'mariadb-oqgraph-engine-10.0' is not installed, so not removed
                  Package 'mariadb-tokudb-engine-10.0' is not installed, so not removed
                  Package 'mariadb-tokudb-engine-5.5' is not installed, so not removed
                  Package 'mariadb-galera-server' is not installed, so not removed
                  Package 'mariadb-galera-server-5.5' is not installed, so not removed
                  Package 'mariadb-server-core-5.5' is not installed, so not removed
                  Package 'mariadb-test-10.0' is not installed, so not removed
                  Package 'mariadb-test-5.5' is not installed, so not removed
                  Package 'mariadb-test-data-10.0' is not installed, so not removed
                  Package 'mariadb-client' is not installed, so not removed
                  Package 'mariadb-client-10.0' is not installed, so not removed
                  Package 'mariadb-client-core-10.0' is not installed, so not removed
                  Package 'mariadb-common' is not installed, so not removed
                  Package 'mariadb-plugin-connect' is not installed, so not removed
                  Package 'mariadb-plugin-mroonga' is not installed, so not removed
                  Package 'mariadb-plugin-oqgraph' is not installed, so not removed
                  Package 'mariadb-plugin-spider' is not installed, so not removed
                  Package 'mariadb-plugin-tokudb' is not installed, so not removed
                  Package 'mariadb-server' is not installed, so not removed
                  Package 'mariadb-server-10.0' is not installed, so not removed
                  Package 'mariadb-server-core-10.0' is not installed, so not removed
                  Package 'mariadb-test' is not installed, so not removed
                  Package 'mariadb-test-data' is not installed, so not removed
                  0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
                  2 not fully installed or removed.
                  After this operation, 0 B of additional disk space will be used.
                  Setting up mysql-server-5.7 (5.7.12-0ubuntu1) ...
                  Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
                  invoke-rc.d: initscript mysql, action "start" failed.
                  dpkg: error processing package mysql-server-5.7 (--configure):
                   subprocess installed post-installation script returned error exit status 1
                  No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                            dpkg: dependency problems prevent configuration of mysql-server:
                   mysql-server depends on mysql-server-5.7; however:
                    Package mysql-server-5.7 is not configured yet.
                  
                  dpkg: error processing package mysql-server (--configure):
                   dependency problems - leaving unconfigured
                  Errors were encountered while processing:
                   mysql-server-5.7
                   mysql-server
                  E: Sub-process /usr/bin/dpkg returned an error code (1)

                  Comment


                    #10
                    If I try to purge both mysql and mariadb, Im going to end up scrubbing a lot out of my system.
                    Code:
                    $ sudo apt purge mariadb-client-10.0 mariadb-common mysql-client mysql-client-5.7 mysql-client-core-5.7 mysql-common dbconfig-mysql
                    Reading package lists... Done
                    Building dependency tree       
                    Reading state information... Done
                    Package 'mariadb-client-10.0' is not installed, so not removed
                    Package 'mariadb-common' is not installed, so not removed
                    The following package was automatically installed and is no longer required:
                      libgps21
                    Use 'sudo apt autoremove' to remove it.
                    The following additional packages will be installed:
                      dbconfig-no-thanks
                    The following packages will be REMOVED:
                      accountwizard* akonadi-backend-mysql* akonadi-server* akregator* amarok* amarok-utils* dbconfig-mysql* kaddressbook* kdepim-runtime* knotes* kontact* korganizer* libdbd-mysql-perl* libkdepimdbusinterfaces4*
                      libkpeople4* libktpcommoninternalsprivate8* libktploggerprivate8* libktpmodelsprivate8* libktpwidgetsprivate8* libmysqlclient-dev* libmysqlclient20* libqt4-sql-mysql* libqt5sql5-mysql* mysql-client*
                      mysql-client-5.7* mysql-client-core-5.7* mysql-common* mysql-server* mysql-server-5.7* plasma-dataengines-workspace*
                    The following NEW packages will be installed:
                      dbconfig-no-thanks
                    0 upgraded, 1 newly installed, 30 to remove and 7 not upgraded.
                    Really dont want to go that route....

                    Comment


                      #11
                      Got it. At the end of the launchpad issue I posted above was a post that exactly described the exact issue I was having. https://bugs.launchpad.net/ubuntu/+s...79/comments/18
                      Doing what was described in there plus deleting all the my.cnf files and mysql directories in the system allowed me to install mysql successfully. Thanks for your help, Snowhog.

                      Comment

                      Working...
                      X