Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to remove "lock" files in root of linux ubuntu?

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 28-11-2011
Member
 
Join Date: Nov 2011
Posts: 199
How to remove "lock" files in root of linux ubuntu?
  

I donít have much knowledge about the linux ubuntu 11.10 but then I have just upgraded to Ubuntu 11.10 and I am willing to remove "lock" files in root of linux ubuntu . I have tried doing that from the Home folder but then it did not helped or maybe I am doing it wrong, so I just wanted to know the proper procedure of using the apt command line. So is there anyone who can help me out. Any help regarding this will be highly appreciated.

Reply With Quote
  #2  
Old 28-11-2011
Member
 
Join Date: Jul 2011
Posts: 361
Re: How to remove "lock" files in root of linux ubuntu?

Quote:
I donít have much knowledge about the linux ubuntu 11.10 but then I have just upgraded to Ubuntu 11.10 and I am willing to remove "lock" files in root of linux ubuntu . I have tried doing that from the Home folder but then it did not helped or maybe I am doing it wrong, so I just wanted to know the proper procedure of using the apt command line. So is there anyone who can help me out. Any help regarding this will be highly appreciated.
First of all I will like to know that why do you want to remove it but then if you really want to do the same then just open a terminal and then enter the below code:
sudo lsof /var/lib/dpkg/lock
After doing this just copy and paste the result here so I can take a look at it and help you further as well.
Reply With Quote
  #3  
Old 28-11-2011
Member
 
Join Date: Nov 2011
Posts: 199
Re: How to remove "lock" files in root of linux ubuntu?

This is what I have got:
ankit@Dell-745:~$ sudo lsof /var/lib/dpkg/lock
[sudo] password for ankit:
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/ankit/.gvfs
Output information may be incomplete.
ankit@Dell-745:~$ ^C
ankit@Dell-745:~$
Reply With Quote
  #4  
Old 28-11-2011
Member
 
Join Date: Jul 2011
Posts: 361
Re: How to remove "lock" files in root of linux ubuntu?

I think that the above method is not helping you out can you just type the below command in to a terminal and then again copy and paste the same so I can take a look at what it returns:
ps aux | grep -E "apt|synaptic|software-center|update-manager|dpkg|aptitude"
Reply With Quote
  #5  
Old 28-11-2011
Member
 
Join Date: Nov 2011
Posts: 199
Re: How to remove "lock" files in root of linux ubuntu?

This is what I have found now:
ankit@Dell-745:~$ ps aux | grep -E "apt|synaptic|software-center|update-manager|dpkg|aptitude"
ankit 2431 0.0 0.0 4444 800 pts/0 S+ 16:19 0:00 grep --color=auto -E apt|synaptic|software-center|update-manager|dpkg|aptitude
ankit@Dell-745:~$
Reply With Quote
  #6  
Old 28-11-2011
Member
 
Join Date: Jul 2011
Posts: 361
Re: How to remove "lock" files in root of linux ubuntu?

You can delete the lock file by entering the below command into a terminal:
sudo rm /var/lib/dpkg/lock
You might have to enter the password for the same but then I will like to inform you that the same will not come as a prompt on your screen and the other thing that I wanted to know is that after seeing the result that you have posted it doesnít not appear as it is locked can you just tell me that what exactly you are willing to perform??
Reply With Quote
  #7  
Old 28-11-2011
Member
 
Join Date: Nov 2011
Posts: 199
Re: How to remove "lock" files in root of linux ubuntu?

Actually as I told before that I have recently switched to the ubuntu and as far as I remember I had made the installation by upgrading 105 files approximately 105 files and just 2 days before had added apt-get clean and auto clean and after adding it I came across this lock notice and I thought that I have to remove it to avoid further problem that might be caused because of it. Anyways I have tried the above solution but then I am still able to see the lock file in the lists file. Other than that I also wanted to share that my computer is not able to download any programs from the Ubuntu software downloads and I am always getting a "check network connection" message whenever I am trying to download any application. Any further help will be appreciated
Reply With Quote
  #8  
Old 28-11-2011
Member
 
Join Date: Jul 2011
Posts: 329
Re: How to remove "lock" files in root of linux ubuntu?

Quote:
Actually as I told before that I have recently switched to the ubuntu and as far as I remember I had made the installation by upgrading 105 files approximately 105 files and just 2 days before had added apt-get clean and auto clean and after adding it I came across this lock notice and I thought that I have to remove it to avoid further problem that might be caused because of it. Anyways I have tried the above solution but then I am still able to see the lock file in the lists file. Other than that I also wanted to share that my computer is not able to download any programs from the Ubuntu software downloads and I am always getting a "check network connection" message whenever I am trying to download any application. Any further help will be appreciated.
Before I suggest you something for the "check network connection" just answer me the following questions:
  • Are you facing any problem in browsing over the internet?
  • Are you using a proxy?
  • What are you suing to connect to the internet, I mean are you using the network manager or wvdial?
Reply With Quote
  #9  
Old 28-11-2011
Member
 
Join Date: Nov 2011
Posts: 199
Re: How to remove "lock" files in root of linux ubuntu?

I will like to explain the same I am using Dell Optiplex 745 which is switched to Pent 4( 2.8ghz) with a hard wired connection and I am not using any kind of proxy and I am very well able to browse but then I am not able to connect to the Ubuntu Software Center. Hope my situation is clear to you now. Any further help regarding this will be appreciated.
Reply With Quote
  #10  
Old 29-11-2011
Member
 
Join Date: Jul 2011
Posts: 329
Re: How to remove "lock" files in root of linux ubuntu?

Ok then just open the terminal and then type the following:
sudo apt-get update
After this you will get a large so now just check if you are getting any kind of connection failed error or something and if then just try to ping the server and then paste what you get as a output. Hope that’s clear.
Reply With Quote
  #11  
Old 29-11-2011
Member
 
Join Date: Nov 2011
Posts: 199
Re: How to remove "lock" files in root of linux ubuntu?

Yes I am getting Connection failed [IP: 192.168.1. 7] and after that I ping the server by ping Ėc3 192.168.1. 7 and then I got the following:
ankit@Dell-745:~$ ping -c3 192.168.1.7
PING 192.168.1.7 (192.168.1.7) 56(84) bytes of data.
64 bytes from 192.168.1.7: icmp_req=1 ttl=44 time=128 ms
64 bytes from 192.168.1.7: icmp_req=2 ttl=44 time=131 ms
64 bytes from 192.168.1.7: icmp_req=3 ttl=44 time=151 ms

--- 192.168.1.7 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 128.648/137.355/151.468/10.078 ms
ankit@Dell-745:~$ ^C
ankit@Dell-745:~$
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to remove "lock" files in root of linux ubuntu?"
Thread Thread Starter Forum Replies Last Post
Cannot remove "Zygna Games" and "Splashtop Connect" Bar@dot Video Games 8 11-04-2012 12:12 AM
"Allow" and "Remove" button missing in Microsoft Security Essentials after upgrading Leanne Networking & Security 6 31-08-2011 12:33 AM
Open IME" & "Reconversion" option on context menu, How do I remove RHPT Vista Help 7 27-01-2010 12:11 AM
Windows Media Player "sync" problem -- files with status "stopped" Theodore Long Media Player 1 15-11-2007 01:13 PM
Adding commands to "Folder Options/Edit File Type/Actions" grayed-out "Edit" & "Remove" Green_XP Windows XP Support 1 06-11-2007 01:18 PM


All times are GMT +5.5. The time now is 11:31 PM.