LinuxQuestions.org
Help answer threads with 0 replies.
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 09-16-2015, 03:57 AM   #1
shreesailam
LQ Newbie
 
Registered: Sep 2015
Posts: 2

Rep: Reputation: Disabled
manually dpkg


dpkg was interrupted, you must manually run 'dpkg --configure -a'
I tried manually tried but it does not work
 
Old 09-16-2015, 04:06 AM   #2
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Can you give us more detail? Errors? Output?
 
Old 09-23-2015, 03:55 AM   #3
shreesailam
LQ Newbie
 
Registered: Sep 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Question Update not available

sudo apt-get update
After this I got the result as
Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
How to solve this?
 
Old 09-23-2015, 04:05 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
probably synaptic (or other package management tool) already started. You are not allowed to run them parallel.
 
Old 09-23-2015, 07:41 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by shreesailam View Post
Code:
sudo dpkg --configure -a
What is the exact result of this command?
"Doesn't work" doesn't tell us anything.
Bullet 1

Thank you.
 
Old 09-23-2015, 07:51 AM   #6
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Before removing any files, make backups.

Code:
cp -arf /var/lib/dpkg ${HOME}/var-lib-dpkg.backup
Don't forget to remove the lock files.

/var/lib/dpkg/lock

If problems persist, there may be others you need to remove. Try the above first, and only move on if it doesn't help.

/var/lib/apt/lists/lock
/var/cache/apt/archives/lock

Now run the following after deleting each of the above files:
Code:
dpkg --configure -a
After you have done this, you may want to retry running the process you were running at the time dpkg had been interrupted (upgrade, dist-upgrade, etc.) to make sure there aren't more packages that need to be installed.

Last edited by goumba; 09-23-2015 at 07:57 AM.
 
  


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
Configuring dpkg manually dicksonmaxcastillo Linux Mint 1 09-08-2015 12:19 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 07:55 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
Open Source Consulting | Domain Registration