LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2016, 09:22 PM   #16
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142

Quote:
well i didnt know
To build on what ardvark71, there was a time when none of us knew.

We were all newbies once. That's why LQ is here. LQ helped me when I was new, and it still helps me now that I am old.
 
Old 02-17-2016, 09:24 PM   #17
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ardvark71 View Post
I have no idea, it's possible kodi was uninstalled incorrectly.

Regards...
i followed the guide on the kodi site, any other way to fix the error?
 
Old 02-17-2016, 09:40 PM   #18
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
What error you are talking about? You got the stale lock file because you killed the process instead of exiting normally.
 
Old 02-17-2016, 09:49 PM   #19
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by ardvark71 View Post
Thanks, Ztcoracat, I was going to answer that but forgot when I asked the OP about his distribution.

Regards...
You're Welcome-

Cheers
 
Old 02-17-2016, 09:50 PM   #20
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by frankbell View Post
To build on what ardvark71, there was a time when none of us knew.

We were all newbies once. That's why LQ is here. LQ helped me when I was new, and it still helps me now that I am old.
Ditto:-
 
Old 02-17-2016, 10:14 PM   #21
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
What error you are talking about? You got the stale lock file because you killed the process instead of exiting normally.
yea thats exactly what happened because i didnt know how to exit anyway can you shone some light on this please
 
Old 02-17-2016, 10:23 PM   #22
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by iHateErrors View Post
yea thats exactly what happened because i didnt know how to exit anyway can you shone some light on this please
Please see post #10 of this thread, then #4 again and let us know what happens.

Regards...

Last edited by ardvark71; 02-17-2016 at 10:25 PM. Reason: Added information.
 
Old 02-17-2016, 10:42 PM   #23
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ardvark71 View Post
Please see post #10 of this thread, then #4 again and let us know what happens.

Regards...

Code:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
shawn@shawn-Aspire-T690 ~ $ sudo rm -f /var/lock/dpkg
shawn@shawn-Aspire-T690 ~ $ sudo rm -f /var/lock/var/lib/dpkg/lock
shawn@shawn-Aspire-T690 ~ $ sudo rm -f /var/lock/var/lib/dpkg/11
shawn@shawn-Aspire-T690 ~ $ 
shawn@shawn-Aspire-T690 ~ $ kdjdfpfofj
kdjdfpfofj: command not found

Last edited by Tinkster; 02-21-2016 at 01:42 PM. Reason: profanity removed.
 
Old 02-18-2016, 01:26 AM   #24
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi...

While I realize your frustrated, please watch the language. Take a look at some of the other solutions listed here.

Regards...
 
Old 02-19-2016, 03:44 PM   #25
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
[QUOTE=ardvark71;5502071]Hi...

do you know any other way to find out the name of the locked file? Because I havent gotten this stale file fixed and I need my terminal.
 
Old 02-19-2016, 04:40 PM   #26
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
The path to lock file is in your first post.
 
1 members found this post helpful.
Old 02-19-2016, 04:47 PM   #27
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
The path to lock file is in your first post.
i really dont know where that is im not used to the terminal
 
Old 02-19-2016, 06:36 PM   #28
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by iHateErrors View Post
tried to get kodi running and now it screwed it up, so uninstalled it usuing kodi website than tried to use sudo apt-get update and than it it asked me a bunch of options for some new update i clicked d (to compare) and it just said some weird codes and than ~~~~~~~~~~~end. so i closed the terminal and tried to sudo apt-get update and got this: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


BS eh I cant seem to understand linux
............
 
Old 02-19-2016, 08:33 PM   #29
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thumbs down

Quote:
Originally Posted by Emerson View Post
............
Code:
shawn@shawn-Aspire-T690 ~ $ sudo rm -f /var/lock/ /var/lib/dpkg/lock
[sudo] password for shawn: 
rm: cannot remove ‘/var/lock/’: Is a directory
shawn@shawn-Aspire-T690 ~ $ sudo rm -f /var/lock /var/lib/dpkg/lock
shawn@shawn-Aspire-T690 ~ $ sudo rm -f /var/lock/var/lib/dpkg/lock
shawn@shawn-Aspire-T690 ~ $ sudo rm -f /var/lib/dpkg/lock
shawn@shawn-Aspire-T690 ~ $  /var/lib/dpkg/lock
bash: /var/lib/dpkg/lock: No such file or directory
shawn@shawn-Aspire-T690 ~ $ sudo rm  /var/lib/dpkg/lock
rm: cannot remove ‘/var/lib/dpkg/lock’: No such file or directory
shawn@shawn-Aspire-T690 ~ $
Can somebody just tell me what i have to put inside my terminal to remove the stale file?
 
Old 02-19-2016, 08:37 PM   #30
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I think you just did.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo apt-get update error list Firebeast Ubuntu 3 09-12-2015 07:25 PM
sudo apt-get update ERROR HELP linuxmarble Linux - Software 2 09-02-2014 04:23 AM
[SOLVED] 404errors when running apt-get update already tried sudo rm /var/lib/apt/lists/* -vf rasec8711 Linux - Software 2 05-31-2012 10:33 AM
sudo apt-get update problem yasokrish Linux - Newbie 6 04-16-2010 06:11 AM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration