tag:blogger.com,1999:blog-6960114002200644246.post6315410401061664595..comments2024-03-28T10:08:14.948+05:30Comments on Linux Halwa: How to fix E: Could not get lock /var/lib/apt/lists/lock problemVimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-6960114002200644246.post-32684594565437402122016-07-12T19:35:16.732+05:302016-07-12T19:35:16.732+05:30apt-get update
After all above steps following lin...apt-get update<br />After all above steps following lines appear,help!<br />0% [Connecting to 192.168.0.3 (192.168.0.3)] [Connecting to 192.168.0.3 (192.16<br />0% [Connecting to 192.168.0.3 (192.168.0.3)] [Connecting to 192.168.0.3 (192.16<br />3https://www.blogger.com/profile/08817236893336708040noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-33525357457069588272016-02-16T09:34:07.801+05:302016-02-16T09:34:07.801+05:30VERY USEFUL FOR ME<a href="http://www.jobtodayinfo.com" rel="nofollow">VERY USEFUL FOR ME</a>Anonymoushttps://www.blogger.com/profile/10553576781632174739noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-16560140364305829892015-12-05T10:12:11.039+05:302015-12-05T10:12:11.039+05:30This Worked for me in installing Inkscape. Thank Y...This Worked for me in installing Inkscape. Thank YouAnonymoushttps://www.blogger.com/profile/17210577936956093795noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-92006647053926164142015-11-11T16:42:37.255+05:302015-11-11T16:42:37.255+05:30You can delete the lock file with the following co...You can delete the lock file with the following command:<br /><br />sudo rm /var/lib/apt/lists/lock<br /><br />sudo rm /var/cache/apt/archives/lock<br /><br />sudo apt-get updateAnonymoushttps://www.blogger.com/profile/11770453553495427272noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-70105824592286639762015-10-20T13:19:43.766+05:302015-10-20T13:19:43.766+05:30Ubuntu 13.04 is also a stable release. It's ju...Ubuntu 13.04 is also a stable release. It's just not an LTS (long term support) which has a commitment (in general) from canonical to release updates for 5 years for server and 3 years for desktop. For all standard (non-LTS) releases, the maximum duration of support is 18 months.<br /><br />Both versions have pros and cons - LTS gets long term support and standard gets latest features. You decide which version you want. If you don't update your system very often, LTS is the way to go. I have 6 systems with a mix of both... :PUnknownhttps://www.blogger.com/profile/01888032428391447761noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-85661081721249448502015-10-20T13:08:56.332+05:302015-10-20T13:08:56.332+05:30Nooooo... Don't recommend deleting lock file.....Nooooo... Don't recommend deleting lock file... This may leave the user stranded with a broken system. This should be done only if everything else fails... By deleting a file used by system, you risk the system integrity. Don't be so fast in removing anything before trying other solutions. Before trying any solution that needs a manual modification to the system environment, reboot the system to see if the problem is solved.<br /><br />Vivek Kumar had suggested a fairly reasonable approach above. To add to his solution, <br /><br />1. Search for process<br />ps aux | grep apt<br /><br />This will catch all running processes that contain apt in their name. <br /><br />2. If you see a process listed with apt-get or aptitude, kill that process as it got stuck and did not release the lock. do it with <br />sudo kill <br /><br />Process-id is the process number that you identified from step 1.<br /><br />If that doesn't work, then try (like Vivek suggested)<br />kill -9 <br /><br />Also, note that it is not a very good idea to kill ap-get process whlie it is installing packages, do this only if your ap-get got stuck (of course, it is the subject of this post).<br /><br />In the end, if nothing above worked, you can remove the lock file at your own risk. But to reduce the risk of corrupting an installation, it is better to first close the program that's holding the lock (which in essence is covered by step #2 above). Be informed that this approach may even crash your system(but will reboot releasing the lock), this has never been my choice. <br />sudo fuser -cuk /var/cache/apt/lists/lock<br />sudo rm -f /var/cache/apt/lists/lock<br />OR (as the case may be)<br />sudo fuser -cuk /var/cache/apt/archives/lock<br />sudo rm -f /var/cache/apt/archives/lock<br />OR (if dpkg was stuck instead of apt)<br />sudo fuser -cuk /var/lib/dpkg/lock<br />sudo rm -f /var/lib/dpkg/lock <br /><br />NOTE: Use any and every command in terminal only if you understand what you are doing. Don't use sudo unless you know what you are doing. Don't use rm -f (for that matter rm command in general) if you don't know what you are doing.<br />Hope this helps!Unknownhttps://www.blogger.com/profile/01888032428391447761noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-36123237650332947102015-09-10T00:08:19.053+05:302015-09-10T00:08:19.053+05:30thank youthank you°°°°°°°°°°°°°°°°°°https://www.blogger.com/profile/12505677662627610106noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-9548386425714508352015-09-04T19:08:06.808+05:302015-09-04T19:08:06.808+05:30after sudo apt-get update
am getting below error...after sudo apt-get update <br /><br />am getting below error<br /><br />E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)<br />E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?SREESANKAR .Rhttps://www.blogger.com/profile/04605059848460401432noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-39266874645641881452015-05-17T22:13:56.136+05:302015-05-17T22:13:56.136+05:30Thanks Vivek.Thanks Vivek.Vimalhttps://www.blogger.com/profile/16315338813797680405noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-33367346055478323052015-05-16T22:34:08.924+05:302015-05-16T22:34:08.924+05:30You can also use the following command
1. Search ...You can also use the following command<br /><br />1. Search for processes<br /> ps -A | grep apt-get<br /><br />2. See if there is any process running as apt-get then kill that process<br /> sudo kill -9 Vivek Kumarhttps://www.blogger.com/profile/06074040304306301850noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-57575847660292144372015-03-14T23:22:40.894+05:302015-03-14T23:22:40.894+05:30This cmd resolves the pblm thankzThis cmd resolves the pblm thankzAnonymoushttps://www.blogger.com/profile/01627254722098194772noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-25764688884262591122015-01-22T13:20:13.710+05:302015-01-22T13:20:13.710+05:30sudo rm /var/lib/dpkg/lock
Resolved error using ...sudo rm /var/lib/dpkg/lock <br /><br />Resolved error using this above command :p)Anonymoushttps://www.blogger.com/profile/08255545048456559059noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-39431341511088766442014-12-11T20:49:57.158+05:302014-12-11T20:49:57.158+05:30awesome this single command saved my 2days headach...awesome this single command saved my 2days headache!boom!Anonymoushttps://www.blogger.com/profile/09025773600556054317noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-9966362498390042992014-10-20T11:40:10.844+05:302014-10-20T11:40:10.844+05:30Better to use Ubuntu stable releases. E.g. 12.04 L...Better to use Ubuntu stable releases. E.g. 12.04 LTS and 14.04 LTS.Vimalhttps://www.blogger.com/profile/16315338813797680405noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-7900645512596700462014-10-01T22:43:03.665+05:302014-10-01T22:43:03.665+05:30@Lalit Patil ubuntu have stopped releasing updates...@Lalit Patil ubuntu have stopped releasing updates for ubuntu 13.04.<br />Thus, I recommend you to back up your files and install either ubuntu 12.04 or ubuntu 14.04.<br />Anonymoushttps://www.blogger.com/profile/16639301877582312031noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-34347902743391973482014-10-01T22:39:29.024+05:302014-10-01T22:39:29.024+05:30@Lalit Patil Same thing happened with me.!
When I ...@Lalit Patil Same thing happened with me.!<br />When I tried to figure it out, I came to know that ubuntu have stopped releasing any updates for ubuntu 13.04.<br />So, try downloading ubuntu 12.04/14.04.<br />Good Luck!Anonymoushttps://www.blogger.com/profile/16639301877582312031noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-61375930312205898882014-09-12T11:43:34.597+05:302014-09-12T11:43:34.597+05:30Err http://archive.ubuntu.com raring/main Sources ...Err http://archive.ubuntu.com raring/main Sources <br /> 404 Not Found [IP: 91.189.92.200 80]<br />Anonymoushttps://www.blogger.com/profile/12482074818962464668noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-26392129237510973962014-02-27T16:25:30.242+05:302014-02-27T16:25:30.242+05:30Please try this commands,
sudo rm /var/lib/dpkg/l...Please try this commands, <br />sudo rm /var/lib/dpkg/lock <br />apt-get updateVimalhttps://www.blogger.com/profile/16315338813797680405noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-75666643679003409992014-02-27T11:09:08.975+05:302014-02-27T11:09:08.975+05:30dear sir vimal i have tried the command you have g...dear sir vimal i have tried the command you have given but i still encounter the same problem and i cannot install postfix on our server because of this error..Anonymoushttps://www.blogger.com/profile/03811235462613776749noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-68519721113806972422014-02-26T22:48:43.765+05:302014-02-26T22:48:43.765+05:30This command alone can solve the problem?
This command alone can solve the problem?<br />Vimalhttps://www.blogger.com/profile/16315338813797680405noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-50779638490183249712014-02-26T13:49:01.772+05:302014-02-26T13:49:01.772+05:30This may imply that a process using apt is already...This may imply that a process using apt is already underway, simply close or update your package manager (Synaptic Package Manager), if the problem persists open a terminal and type the following command: <br /><br />sudo rm /var/lib/dpkg/lockAnonymoushttps://www.blogger.com/profile/12478702312334029028noreply@blogger.comtag:blogger.com,1999:blog-6960114002200644246.post-29393225264206383542014-02-26T13:48:18.515+05:302014-02-26T13:48:18.515+05:30This may imply that a process using apt is already...This may imply that a process using apt is already underway, simply close or update your package manager (Synaptic Package Manager), if the problem persists open a terminal and type the following command: Anonymoushttps://www.blogger.com/profile/12478702312334029028noreply@blogger.com