Running sudo dpkg --configure -a returns >. Now what?

Posted on 2014-07-12
Last Modified: 2014-08-18
After a failed install of mysql I attempted to run another sudo apt-get. Ubuntu returns:

dpkg package was interrupted, you must manually run sudo dpkg --configure -a to correct the problem.

When I run sudo dpkg --configure -a It returns a single > on the next line. Now what am I supposed to do?

Thanks in advance for your help.
Question by:princeservice
    LVL 27

    Accepted Solution

    Maybe try this:

    sudo dpkg-reconfigure -a

    Otherwise, try removing the mysql package and run apt-get install again

    apt-get remove mysql
    apt-get clean
    apt-get install

    If that's not working, try the following:
    sudo dpkg deinstall mysql
    LVL 6

    Expert Comment

    Some simple install mysql you need to run below command.
    First update the repository.
    # apt-get update
    and choose Lamp server.Once it done restart mysql service and connect mysql.

    If you face any issue.Please write down here.

    Author Comment

    When I tried this: sudo dpkg-reconfigure -a
    This was returned: libc-bin is broken or not fully installed

    When I tried this: apt-get update
    This was returned:
    E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
    E: Unable to lock directory /var/lib/apt/lists/
    E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
    E: Unable to lock administrative directory (/var/lib/dpkg/), are you root?
    LVL 27

    Expert Comment

    It seems that an apt-get process is either still running or failed during the update and kept the lock file.

    You should first run

    ps -ef | grep apt
    ps -ef |grep dpkg

    to make sure that it's not still running.  If it is, then you may have to kill the process id(s).  Killing the process should remove the lock file if it's running.  If it's not running, then remove the lock files, because the processes crashed and left them behind.

    rm /var/lib/apt/lists/lock /var/lib/dpkg/lock

    Then run

    apt-get clean all

    Once you've cleared it out, then fix any updates.
    apt-get update
    apt-get upgrade

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now