LinuxQuestions.org
Review your favorite Linux distribution.
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, 08: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, 08:29 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Probably a stale lock file, remove it and try again.
 
Old 02-17-2016, 08:33 PM   #3
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
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, 08:38 PM   #4
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...

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, 08: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, 09: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 09:02 PM.
 
Old 02-17-2016, 09:03 PM   #7
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
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, 09: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, 09:06 PM   #9
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:
btw does rm mean to delete?
rm means remove:-
 
Old 02-17-2016, 09:10 PM   #10
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
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, 09: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, 09:12 PM   #12
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 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, 09: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 09:17 PM.
 
Old 02-17-2016, 09:13 PM   #14
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
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, 09:16 PM   #15
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
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



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 01:33 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
Open Source Consulting | Domain Registration