LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2011, 10:11 PM   #1
vynel
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
VLC is not installing in Ubuntu


After months of experimenting with my old family computer i got as a hand me down, i finally decided to do a windows/ubuntu dual boot on it. Well when i went to put VLC on Ubuntu through the GUI, it says "package already installed" even though it is not. So i turned to the command line, and got this 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?
Ideas?
 
Old 08-07-2011, 10:17 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
Hello,

I would make sure that apt-get or aptitude is not running in the background first, and if not, log in as root within a terminal, and remove the lock. From there, try reinstalling VLC again.

Cheers,

Josh
 
Old 08-07-2011, 10:20 PM   #3
vynel
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Ok i am incredibly rusty with Linux as i haven't been able to touch it much since i started college >.< so how do i log in as a root in terminal and remove the lock(again, super rusty) and also i remember you, you helped me get easytether up and running several months back under debian. I still appreciate that
 
Old 08-07-2011, 10:35 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
Sure thing man.... Open a terminal, and type the following:
Code:
su -
From there, enter your root password, and type the following:
Code:
ps aux | grep apt-get
ps aux | grep dpkg
If you see any processes that are running, kill them using the "kill" command. Once you are certain that you don't have anything running anymore,
perform the following:
Code:
rm /var/lib/dpkg/lock
From there, try running the last piece of code:
Code:
apt-get install vlc
Now you should be good, I think.... If that doesn't work, report back and let me know, and we can start troubleshooting.

Cheers,

Josh
 
Old 08-07-2011, 10:42 PM   #5
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
^--- No.

Ubuntu does not have a "root account" or "root password." Use "sudo" instead:

https://help.ubuntu.com/community/RootSudo

To answer the OP's specific question, you can launch your already-installed VLC by pressing Alt
F2 and typing "vlc". If for some reason it is not installed (the system is telling you it is) then you can install it with a few mouse clicks in the Ubuntu Software Center or the terminal command "sudo apt-get install vlc".
 
Old 08-07-2011, 10:43 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,102
Blog Entries: 27

Rep: Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251
In Ubuntu, su doesn't work unless you set a root password.

But you can do sudo su, use your sudo password, and have a lengthy session as su.

I have VLC running just fine on two Ubuntu boxes, so it should install and work, if that's any comfort.

If you get the "already in use" error message again, I would suggest running ps -A and inspecting the output to see what other process might be hogging apt.
 
Old 08-07-2011, 10:45 PM   #7
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
Damn it! Thanks guys.... That's why I don't use ubuntu.... Because it's way too new-age for me....
Quote:
If you get the "already in use" error message again, I would suggest running ps -A and inspecting the output to see what other process might be hogging apt.
I already said that, bro
 
Old 08-07-2011, 10:52 PM   #8
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
Quote:
Originally Posted by frankbell View Post
But you can do sudo su, use your sudo password, and have a lengthy session as su.
You could, but you don't want to! Please read the documentation on the topic:

https://help.ubuntu.com/community/RootSudo
 
1 members found this post helpful.
Old 08-08-2011, 09:26 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,102
Blog Entries: 27

Rep: Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251
Snowpine, we'll have to disagree on this.

If su is good enough for Slackware, it's good enough for Ubuntu.
 
1 members found this post helpful.
Old 08-09-2011, 08:47 AM   #10
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
Quote:
Originally Posted by frankbell View Post
Snowpine, we'll have to disagree on this.

If su is good enough for Slackware, it's good enough for Ubuntu.
Nothing wrong with su, nothing wrong with Slackware--this doesn't have to be a "vs" thread.

However "sudo su" has been known to cause file permission/ownership issues in Ubuntu, I have seen this happen many times on the Ubuntu forums. "sudo -i" is safer (similar to "sudo su -") as it changes the shell variables to root's instead of the user's.

Again this is all well-documented here (I am not making this stuff up just to be argumentative): https://help.ubuntu.com/community/RootSudo
 
  


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
Installing VLC.. adenial Linux - Newbie 19 10-04-2012 10:56 AM
no acceptable c compilier found in ubuntu 10.04 when installing vlc promadex Linux - Newbie 3 10-11-2010 01:36 PM
Installing VLC using vlc-0.9.9a-4.el5.rf.i386.rpm--Error relating to Dependencies redhat5 Linux - Newbie 1 12-17-2009 05:23 PM
VLC error: VLC could not open the file "/usr/share/vlc/skins2/text.bmp". brjoon1021 Ubuntu 1 01-14-2009 11:48 PM
Problem installing VLC on Ubuntu Bakoulou Ubuntu 3 11-13-2005 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:51 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