Click to See Complete Forum and Search --> : Problems with Adept Installer


sjj500
02-05-2008, 01:46 AM
So even though it's embarrassing...I'll tell you what happened before hand.

So I was installing some extra stuff and needed to restart the computer but forgot it was still running. So when I started Kubuntu again and tried to run Abept Installer over again, It started giveing me this crap:

Another process is using the packaging system database (probably some other Adept application or apt-get or aptitude). Please close the other application before using this one.

I've ended every process I could think of and still get this, what can I do?

ph34r
02-05-2008, 01:39 PM
There is a lock file somewhere, possibly /var/cache/apt/archives/lock or
/var/lib/dpkg/lock

If those don't exist, try booting to single user mode and just finding all lock files -

find / -iname *lock*

sjj500
02-05-2008, 02:21 PM
what do i do when I find it? it won't let me delete it.

deathadder
02-05-2008, 02:44 PM
You need to be root if your trying to delete the file.

sjj500
02-05-2008, 03:08 PM
how do i become root? :(

ph34r
02-05-2008, 03:34 PM
Use "su - " and then enter the root password when prompted. Also, make sure hte file system isn't read only. Do

touch /tmp/test

If you don't get an error, you are not mounted read only. If you get an error, remount the root file system r/w.

mount -o remount,rw /

frimann
02-05-2008, 05:39 PM
I had a similar lockup, i then tried to install with apt-get from the command line, apt-get did not work but gave me the information i needed, run a "sudo dpkg --configure -a" in a konsole.
Or just try to install something "apt-get install mplayer" in a konsole and see if you get some info on the problem.

bwkaz
02-05-2008, 07:44 PM
Use "su - " and then enter the root password when prompted. Except that he's using Kubuntu, so root doesn't have a password, so "su -" won't work.

Instead, just prefix the rm command with "sudo", and then it will prompt you for your user's password. So something like:

sudo rm /var/lock/blah/blah/blah.lock.blah

should work (if you replace all the "blah"s, of course). :)

sjj500
02-14-2008, 02:54 AM
well...now what? now it just creates a new lock file when I get it removed :(

bwkaz
02-14-2008, 07:33 PM
OK, but does it finish the install? ;)

(I think the general idea here was to have you remove the lock file, then rerun the adept installer thingy. Of course I have no idea what that installer does, or what it requires, but hey, it's worth a shot at least.)

sjj500
02-14-2008, 10:11 PM
it's still tells me another process is using the packaging system :(

JohnT
02-14-2008, 10:29 PM
sudo dpkg --configure -a

rjhythloday
02-21-2008, 05:15 AM
http://kubuntuforums.net/forums/index.php?topic=3091350.msg115702#msg115702
Close anything resembling Adept or Synaptic, open the Konsole and enter sudo dpkg --configure -a

If it does not give errors, then continue with sudo apt-get update

sudo apt-get install

sudo apt-get autoclean

and you should be back in business. :)