not able to dpkg

Status
Not open for further replies.

Ishan

In the zone
i am using ubuntu 7.10

Problem 1)

when i am giving the command:
sudo dpkg -i <any debian package>.deb

it says dpkg: status database area is locked by another process

what should i do?
i even tried alien but the same error...

Problem 2)

Till yesterday everything was fine with my ubuntu...it was automatically mounting my all NTFS as well as FAT32 partitions and was showing on Desktop

But today i rebooted twice
and both the time it wasnt able to mount them automatically.

i tried to mount them manually and it didnt gave any error.
but when i checked the mount points i found that NTFS partitions were not mounted and only two FAT32 partitions were mounted where as i have more.

but all the mount points were shown and the ones which were not mounted properly were having a Cross on their icon.


Pendrives work FIne.
 

amitava82

MMO Addict
Thats because You may have Synaptic package manager any other package manager running in the background. Try quiting all of them.

Go to Windows and run scandisk on the NTFS partition, The restart computer. You can add force mount option in fstab
Code:
# Entry for /dev/sda5 :
UUID=1E3C966C3C963EA9 /media/sda5 ntfs-3g defaults,[B]force 0 0[/B]
 

Rahim

Married!
SOmetimes when you dont shutdown Windows properly, Ubuntu might not mount ntfs partitions. So boot it into Windows and run chkdsk as said by Amitava above, then boot into Ubuntu and it will sure mount everything again.
Have you installed ntfs-3g? Do you still have the folders in /media?

As for your 1st query only one package manager should be running at one time, among Synaptic, Update Manager, Add/Remove or dpkg.
 
Last edited:
OP
Ishan

Ishan

In the zone
O ya ...i hibernated windows thats why?
i try to reboot in to ubuntu and tell u...
 

Rahim

Married!
^OK Boot into Windows and then shutdown properly. Then Boot into Ubuntu.
Anyway have you edited your partitions? Jus a query as it changes the UUID used ny ntfs-3g to mount different partitions.
 

praka123

left this forum longback
Problem 1)

when i am giving the command:
sudo dpkg -i <any debian package>.deb

it says dpkg: status database area is locked by another process

what should i do?
i even tried alien but the same error...
make sure,ur not running add/remove app or synaptic!
now still if the error is faced,
do:
Code:
sudo rm /var/lib/dpkg/lock
and try :)

ntfs not mounting means ur ntfs fs needs error checking.u should do that using windows chkdsk by selecting the partition.

u can force mount ntfs using ntfs utils.I dont wanna say that!as it can corrupt ur ntfs partn :-|
 
OP
Ishan

Ishan

In the zone
when i restarted ubuntu ...debian problem solved
and when i did a proper shutdown of XP(which i hibernated) partitions got mounted properly

Thanks EveryBody............
 
Status
Not open for further replies.
Top Bottom