LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-17-2014, 03:14 PM   #1
rstuff
Member
 
Registered: Jul 2011
Posts: 117

Rep: Reputation: Disabled
APT used by DPKG


When I try to use Software Manager in LinuxMint I get a message about APT being used by DPKG and the install does not work. I am trying to install Nautilus on LinuxMint 17 LMDE Mate 64 bit. I have had this problem installing other programs as well. Am I suppose to use apt-get on a command line?
 
Old 06-17-2014, 06:18 PM   #2
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 28
There is a database that contains all of the updates and package data for the system (APT). If another application (such as dpkg) is currently accessing this database, you'll get that error. It is usually one of two things:

1. There is an update/updates in progress in the background (in which case trying again a little later should be ok)
or 2. Something crashed/was killed while updating, in which case a lockfile may still exist which says that the database is already in use. In this case, you'd need to delete the file /var/lib/dpkg/lock by hand.
 
Old 06-17-2014, 08:47 PM   #3
rstuff
Member
 
Registered: Jul 2011
Posts: 117

Original Poster
Rep: Reputation: Disabled
Deleting file worked

Thank you. Deleting the file worked. It told me that the file was empty but I was then able to install Nautilus.
 
Old 06-17-2014, 09:26 PM   #4
replica9000
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Debian, FreeBSD, Android
Posts: 1,053
Blog Entries: 2

Rep: Reputation: 227Reputation: 227Reputation: 227
The file will never contain anything, but only needs to simply exist to lock the database.
 
Old 06-18-2014, 02:43 PM   #5
josephj
Member
 
Registered: Nov 2007
Location: Northeastern USA
Distribution: kubuntu
Posts: 146

Rep: Reputation: 79
Several things can make apt/dpkg unhappy after it or a program built on top of it terminates prematurely. Sometimes the lock files can't be deleted because something (inactive) is still "using" them.

The following script fixes most of them. I found the details from a number of posts on stackexchange.

bigbird@ramdass:~/bin$ cat apt_unlock
#!/bin/bash
## Get apt to work again after a crash/hang

sudo fuser -vki /var/lib/dpkg/lock
sudo fuser -vki /var/cache/apt/archives/lock
sudo fuser -vki /var/cache/debconf/config.dat
sudo dpkg --configure -a
 
  


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
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 10:24 AM
[SOLVED] DPKG/apt-get broken - GLIBC_2.6 not found (required by dpkg) Alize Linux - Software 15 05-23-2011 05:25 AM
apt-get dpkg error 5%dpkg akhund_bilal Debian 15 02-10-2010 07:13 AM
Apt-get, Dpkg Kincaid Debian 3 03-01-2007 08:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration