LinuxQuestions.org
Visit Jeremy's Blog.
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:06 PM   #1
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Rep: Reputation: Disabled
sudo apt-get update error


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-17-2016, 09:29 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
Probably a stale lock file, remove it and try again.
 
Old 02-17-2016, 09:33 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,773
Blog Entries: 17

Rep: Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313Reputation: 3313
You can understand Linux. Just remember that it's different and there is a learning curve.

This tutorial on apt may help: https://help.ubuntu.com/community/AptGet/Howto
 
Old 02-17-2016, 09:38 PM   #4
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,279
Blog Entries: 3

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
Hi...

Adding to what Emerson has stated...

As mentioned here, you can try using this command to remove the stale file...

Code:
sudo rm -f /var/lock/<name of lock file>
Simply replace the "<name of lock file>" with the name of the file in question. Navigate to /var/lock/ to get the name(s) of the file(s).

Regards...
 
Old 02-17-2016, 09:55 PM   #5
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ardvark71 View Post
Hi...

Adding to what Emerson has stated...

As mentioned here, you can try using this command to remove the stale file...

Code:
sudo rm -f /var/lock/<name of lock file>
Simply replace the "<name of lock file>" with the name of the file in question. Navigate to /var/lock/ to get the name(s) of the file(s).

Regards...
umm not sure where to find this name of the file, btw does rm mean to delete?
 
Old 02-17-2016, 10:01 PM   #6
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
You can understand Linux. Just remember that it's different and there is a learning curve.

This tutorial on apt may help: https://help.ubuntu.com/community/AptGet/Howto
so i saw a command which I thought would help get rid of kodi because i dont think kodi can get along with linux cause i think it killed my old distro:LXLE so anyway heres what I got:shawn@shawn-Aspire-T690 ~ $ apt-get autoremove kodi
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
shawn@shawn-Aspire-T690 ~ $




Please dont hack my computer -_-

Last edited by iHateErrors; 02-17-2016 at 10:02 PM.
 
Old 02-17-2016, 10:03 PM   #7
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,279
Blog Entries: 3

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
Quote:
Originally Posted by iHateErrors View Post
umm not sure where to find this name of the file, btw does rm mean to delete?
Hi...

What is the distribution and version of Linux you're running?

Regards...
 
Old 02-17-2016, 10:04 PM   #8
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ardvark71 View Post
Hi...

What is the distribution and version of Linux you're running?

Regards...
I am using linux mint i think its cinnimon
 
Old 02-17-2016, 10:06 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,862
Blog Entries: 10

Rep: Reputation: Disabled
Quote:
btw does rm mean to delete?
rm means remove:-
 
Old 02-17-2016, 10:10 PM   #10
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,279
Blog Entries: 3

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
Quote:
Originally Posted by iHateErrors View Post
I am using linux mint i think its cinnimon
If it's Cinnamon, then I'm guessing you are using the Nemo file manager. I've never used Mint, so I don't know how you would open a regular "files" window but perhaps the last post here might help.

Regards...
 
Old 02-17-2016, 10:10 PM   #11
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by Ztcoracat View Post
rm means remove:-
well i didnt know
 
Old 02-17-2016, 10:12 PM   #12
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,279
Blog Entries: 3

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

Regards...
 
Old 02-17-2016, 10:12 PM   #13
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
should I dban the computer and reinstall?

Last edited by iHateErrors; 02-17-2016 at 10:17 PM.
 
Old 02-17-2016, 10:13 PM   #14
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,279
Blog Entries: 3

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
Quote:
Originally Posted by iHateErrors View Post
well i didnt know
That's ok, no one is upset with you (that I'm aware of.) It takes time to learn these things.
 
Old 02-17-2016, 10:16 PM   #15
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,279
Blog Entries: 3

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
Quote:
Originally Posted by iHateErrors View Post
I assume this a error by linux mint because i was just doing a routine update
I have no idea, it's possible kodi was uninstalled incorrectly.

Regards...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:25 PM
sudo apt-get update ERROR HELP linuxmarble Linux - Software 2 09-02-2014 05: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 11:33 AM
sudo apt-get update problem yasokrish Linux - Newbie 6 04-16-2010 07:11 AM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 10:37 AM

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

All times are GMT -5. The time now is 05:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration