• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 600
  • Last Modified:

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

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.
0
princeservice
Asked:
princeservice
  • 2
1 Solution
 
serialbandCommented:
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
0
 
xeroxzeroxCommented:
Some simple install mysql you need to run below command.
First update the repository.
# apt-get update
#tasksel
and choose Lamp server.Once it done restart mysql service and connect mysql.

If you face any issue.Please write down here.
0
 
princeserviceAuthor Commented:
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?
0
 
serialbandCommented:
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
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now