|
| ||||||||||
| Tags: dell, dell optiplex 745, linux, ubuntu, ubuntu software center |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How to remove "lock" files in root of linux ubuntu?
|
|
#2
| |||
| |||
| Re: How to remove "lock" files in root of linux ubuntu? Quote:
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. |
|
#3
| |||
| |||
| 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:~$ |
|
#4
| |||
| |||
| 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" |
|
#5
| |||
| |||
| 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:~$ |
|
#6
| |||
| |||
| 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?? |
|
#7
| |||
| |||
| 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 ![]() |
|
#8
| |||
| |||
| Re: How to remove "lock" files in root of linux ubuntu? Quote:
|
|
#9
| |||
| |||
| 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. |
|
#10
| |||
| |||
| 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. |
|
#11
| |||
| |||
| 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:~$ |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |
| Why everytime: "Initializing the Root Folders Display" | Bearing | MS Office Support | 3 | 29-01-2010 01:59 PM |
| 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 |