Results 1 to 4 of 4

Thread: apt-get upgrade returns dpkg error

  1. #1
    Join Date
    2017-Jan
    Posts
    4

    apt-get upgrade returns dpkg error

    Good day, I'm on a Toshiba Satellite i7 running Linux dual booting with Win10.
    Code:
    root@scallion:~# id; uname -a; lsb_release -a
    
    uid=0(root) gid=0(root) groups=0(root)
    Linux scallion 4.9.0-kali4-amd64 #1 SMP Debian 4.9.25-1kali1 (2017-05-04) x86_64 GNU/Linux
    No LSB modules are available.
    Distributor ID:	Kali
    Description:	Kali GNU/Linux Rolling
    Release:	kali-rolling
    Codename:	kali-rolling
    Repositories I'm using are:

    Code:
    root@scallion:~# cat /etc/apt/sources.list#deb http://http.kali.org/kali kali-rolling main contrib non-free
    # For source package access, uncomment the following line
    #deb-src http://http.kali.org/kali kali-rolling main contrib non-free
    
    # 
    
    #deb http://old.kali.org/kali sana main non-free contrib
    # For source package access, uncomment the following line
    #deb-src http://old.kali.org/kali sana main non-free contrib
    
    deb http://kali.mirror.garr.it/mirrors/kali kali-rolling main non-free contrib
    deb-src http://kali.mirror.garr.it/mirrors/kali kali-rolling main non-free contrib
    My issue is with trying to perform a standard "apt-get upgrade" which generates a bunch of error msgs after trying to install/setup "mariadb-server-10.1". The errors are related to "dpkg"

    The errors look like this:
    Code:
    root@scallion:~# apt --fix-broken install
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    5 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up mariadb-server-10.1 (10.1.23-8) ...
    dpkg: error processing package mariadb-server-10.1 (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of default-mysql-server:
     default-mysql-server depends on mariadb-server-10.1; however:
      Package mariadb-server-10.1 is not configured yet.
    
    dpkg: error processing package default-mysql-server (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of mysql-server:
     mysql-server depends on default-mysql-server; however:
      Package default-mysql-server is not configured yet.
    
    dpkg: error processing package mysql-server (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of kali-linux:
     kali-linux depends on default-mysql-server; however:
      Package default-mysql-server is not configured yet.
    
    dpkg: error processing package kali-linux (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of mariadb-server:
     mariadb-server depends on mariadb-server-10.1 (>= 10.1.23-8); however:
      Package mariadb-server-10.1 is not configured yet.
    
    dpkg: error processing package mariadb-server (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     mariadb-server-10.1
     default-mysql-server
     mysql-server
     kali-linux
     mariadb-server
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    As can be seen, I've tried to fix any broken installs. I've also tried to fix anything that seems wrong with mariadb-server:

    Code:
    root@scallion:~# apt search mariadb-server-10.1
    Sorting... Done
    Full Text Search... Done
    mariadb-server-10.1/now 10.1.23-8 amd64 [installed,local]
      MariaDB database server binaries
    
    root@scallion:~# dpkg --configure -a 
    Setting up mariadb-server-10.1 (10.1.23-8) ...
    dpkg: error processing package mariadb-server-10.1 (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of default-mysql-server:
     default-mysql-server depends on mariadb-server-10.1; however:
      Package mariadb-server-10.1 is not configured yet.
    
    dpkg: error processing package default-mysql-server (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of mysql-server:
     mysql-server depends on default-mysql-server; however:
      Package default-mysql-server is not configured yet.
    .
    .
    .
    
    Errors were encountered while processing:
     mariadb-server-10.1
     default-mysql-server
     mysql-server
     kali-linux
     mariadb-server
    Same set of errors.

    Tried a different method:

    Code:
    root@scallion:~# apt-get install mariadb-server
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    mariadb-server is already the newest version (10.1.23-8).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    5 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Setting up mariadb-server-10.1 (10.1.23-8) ...
    dpkg: error processing package mariadb-server-10.1 (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of default-mysql-server:
     default-mysql-server depends on mariadb-server-10.1; however:
      Package mariadb-server-10.1 is not configured yet.
    I also tried to clean up any lingering packages:

    Code:
    root@scallion:/etc# apt-get autoclean
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    root@scallion:/etc# apt-get autoremove
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    5 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up mariadb-server-10.1 (10.1.23-8) ...
    dpkg: error processing package mariadb-server-10.1 (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of default-mysql-server:
     default-mysql-server depends on mariadb-server-10.1; however:
      Package mariadb-server-10.1 is not configured yet.

  2. #2
    Join Date
    2016-Dec
    Posts
    806
    Sana isn't supported anymore. I think repository have been removed about a year or 2 ago (or more).

    Get 2017.1

  3. #3
    Join Date
    2017-Jan
    Posts
    4

    Sana repo is commented out

    Quote Originally Posted by Mister_X View Post
    Sana isn't supported anymore. I think repository have been removed about a year or 2 ago (or more).

    Get 2017.1
    Understood.. It's already commented out, if you take another look. Thanks.

  4. #4
    Join Date
    2017-Jan
    Posts
    4
    I believe I've rectified the mariadb-server problem. I first cd'd into the directory /var/lib/mysql and backed up everything in there to another directory, in my case I used /var/lib/mysqlbkup . Then I used the command:
    Code:
      sudo apt-get remove --purge mysql-server mysql-client mysql-common
    Then:

    Code:
    sudo apt-get autoremove
    sudo apt-get autoclean
    sudo apt-get install mariadb-server
    At which time I was informed that I needed to have the old sana repo enabled in my sources.list file.. So I did that and the update/upgrade went thru ok.

    Code:
    sudo apt-get update && sudo apt-get upgrade

Similar Threads

  1. Dradis and DPKG error during apt dist-upgrade
    By Sagaryal in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2017-05-17, 04:37
  2. DPKG Error when running Apt-Get Upgrade
    By Bsullivan1983 in forum TroubleShooting Archive
    Replies: 13
    Last Post: 2017-05-09, 03:17

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •