LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-04-2018, 03:15 PM   #1
JakeWalker21
LQ Newbie
 
Registered: Jul 2018
Location: Liverpool
Distribution: Ubuntu
Posts: 3

Rep: Reputation: Disabled
Question dpkg was interrupted, you must now run sudo dpkg --configure -a


Hello anybody ,

recently i tried to download virtualbox to run a windows VM, however midway through the download it just stopped and halts at a certain point.

I get an error saying "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."

However when i run this command, it halts midway through the build process again & halts indefinitely.

Can anybody help me with this? as it is interupting me downloading anything via apt-get and is increasingly becoming a burden.

Thank you,

Jake
 
Old 07-04-2018, 03:27 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861Reputation: 2861
Can you please paste the output (within CODE tags and not including the equals signs) from:

Code:
dpkg -l | grep -v "^ii"
This will allow us to see which of your packages have not been properly installed and take action to remedy these.
 
Old 07-05-2018, 05:47 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,507
Blog Entries: 9

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
flaky internet connection?

bad sources.list?

can't hurt to show us
Code:
cat /etc/apt/sources.list{,.d/*}
 
Old 07-05-2018, 07:15 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,941
Blog Entries: 1

Rep: Reputation: 832Reputation: 832Reputation: 832Reputation: 832Reputation: 832Reputation: 832Reputation: 832
I've broken dpkg before. Some /var/lib/dpkg/ trickery solved the issue. Copying the -old to the current for status or other things, been a long time. But it was workable, for me anyway. Using a filesystem with snapshots and the ability to rollback helps for situation like these. Otherwise nuke and pave is often the quicker solution.
 
Old 07-06-2018, 07:55 AM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
I've used a few techniques to solve the problem.
Code:
$ apt-get -f install
OR download the package file
Code:
$ apt-get install virtualbox --download-only
and run
Code:
$ dpkg -i --force-depends virtualbox
OR launch 'synaptic' and resolve the broken packages by removing them. OR
Code:
$ dpkg --configure --pending
 
Old 07-14-2018, 03:11 PM   #6
JakeWalker21
LQ Newbie
 
Registered: Jul 2018
Location: Liverpool
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for your replies and sorry for the late reply.

I have tried a couple of solutions from above so far and each produce different errors. Hydroguru I have pasted the GIGANTIC output from your command and pasted it into a .txt file which i will try to upload.

Thanks for your efforts in helping so far although I am still experiencing this error

Jake
 
Old 07-16-2018, 09:11 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
I think you need to post the actual errors.
 
Old 07-17-2018, 04:08 PM   #8
JakeWalker21
LQ Newbie
 
Registered: Jul 2018
Location: Liverpool
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi LQ Guru, my error is anytime I try to apt-get install anything.

I get the error "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."

however when I run "sudo dpkg --configure -a", it runs: sudo dpkg --configure -a
Setting up virtualbox-dkms (5.2.10-dfsg-6ubuntu18.04.1) ...
Removing old virtualbox-5.2.10 DKMS files...

-------- Uninstall Beginning --------
Module: virtualbox
Version: 5.2.10
Kernel: 4.15.0-23-generic (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 5.2.10
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-5.2.10 DKMS files...
Building for 4.15.0-23-generic
Building initial module for 4.15.0-23-generic
________________________________________________

Then it just halts and wont continue.

Thanks for your reply LG Guru, I hope this was of use to you.
 
1 members found this post helpful.
Old 10-06-2018, 10:55 AM   #9
Lilleyen
LQ Newbie
 
Registered: Jan 2017
Distribution: Ubuntu & puppy
Posts: 7

Rep: Reputation: Disabled
I'm having the same problem.
Any time I try "apt-get" almost anything I get that error message.

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

When I do as asked this is the result, and no matter how long I leave it running nothing else happens.

sudo dpkg --configure -a
Setting up gce-compute-image-packages (20180510+dfsg1-0ubuntu4~18.04.1) ...

That's as far as I get.

Last edited by Lilleyen; 10-06-2018 at 12:17 PM.
 
Old 10-06-2018, 06:39 PM   #10
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Try 'dpkg --configure --pending'.
 
Old 10-06-2018, 07:55 PM   #11
Lilleyen
LQ Newbie
 
Registered: Jan 2017
Distribution: Ubuntu & puppy
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
Try 'dpkg --configure --pending'.
Did that.
Here is the result.

richard@richard-RY877AA-ABA-a6045x:~$ sudo dpkg --configure --pending
[sudo] password for richard:
dpkg: error: dpkg status database is locked by another process
richard@richard-RY877AA-ABA-a6045x:~$
 
Old 10-07-2018, 02:27 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,507
Blog Entries: 9

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
Quote:
Originally Posted by Lilleyen View Post
dpkg: error: dpkg status database is locked by another process
this means that some other software is trying to do updates.
you have to close that first.
then try again what was suggested.

also, when "dpkg --configure -a" always hangs at the same package you might need to uninstall that one first.

PS: which distro???
 
Old 10-07-2018, 12:15 PM   #13
Lilleyen
LQ Newbie
 
Registered: Jan 2017
Distribution: Ubuntu & puppy
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
this means that some other software is trying to do updates.
you have to close that first.
then try again what was suggested.

also, when "dpkg --configure -a" always hangs at the same package you might need to uninstall that one first.

PS: which distro???
distro - ubuntu 18.04
How would I know which package is at fault and how would I uninstall it?

P.S.
Thanks for the help BTW all.
 
Old 10-07-2018, 01:05 PM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,507
Blog Entries: 9

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
Quote:
Originally Posted by Lilleyen View Post
How would I know which package is at fault and how would I uninstall it?
Quote:
Originally Posted by Lilleyen View Post
sudo dpkg --configure -a
Setting up gce-compute-image-packages (20180510+dfsg1-0ubuntu4~18.04.1) ...
if it's always the above same package that makes dpkg hang.
 
Old 10-08-2018, 10:26 AM   #15
Lilleyen
LQ Newbie
 
Registered: Jan 2017
Distribution: Ubuntu & puppy
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
if it's always the above same package that makes dpkg hang.
So how do I uninstall that package (relative newbie here)
As far as I know no other software was doing anything
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 'dpkg--configure-a' E: dpkg was interrupted error Mountain Man 77 Linux - Newbie 8 02-21-2015 10:59 PM
dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the prob krishna.nitk Linux - Newbie 3 03-21-2009 02:41 PM
Ubuntu newbie, E: dpkg was interrupted, you must manually run 'dpkg --configure -a' ? chinkychan Linux - Newbie 1 01-28-2009 10:21 PM
E:dpkg was interrupted,you must manually run"dpkg --configure -a" to correct problem loplop4 Debian 5 09-29-2008 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration