LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-03-2012, 09:02 AM   #1
ajay06081993
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Rep: Reputation: Disabled
not able to install vlc through terminal in ubuntu12.04


hey

i want to install vlc from terminal.i typed sudo apt-get update it shows
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

don't know what to do can anybody help me out

with regards
ajay
 
Old 11-03-2012, 05:04 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,568

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
That will happen if you have the Software Manager open when you run the command. If you don't, I'm not sure what the problem is.
 
Old 11-03-2012, 05:07 PM   #3
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
Check whether any other process holding the lock First.If not rename the lock and try to update

Rename lock to lock.bak

sudo mv /var/lib/dpkg/lock /var/lib/dpkg/lock.bak

sudo apt-get update

Last edited by jsaravana87; 11-03-2012 at 05:10 PM.
 
Old 11-04-2012, 06:17 AM   #4
ajay06081993
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by arun5002 View Post
Check whether any other process holding the lock First.If not rename the lock and try to update

Rename lock to lock.bak

sudo mv /var/lib/dpkg/lock /var/lib/dpkg/lock.bak
sudo apt-get update

i typed the followind commands sudo fuser -cuk /var/lib/dpkg/lock
sudo rm -f /var/lib/dpkg/lock

from first command the computer screen goes blank and i have to press the start up button to restart the computer
then after rebooting i typed the second command in the terminal and after that i typed sudo apt-get update it works fine
but the speed is very-very-very slow and it is stuck at 25%working ,in between it shows
Err https://extras.ubuntu.com precise/main Sources
Couldn't resolve host 'extras.ubuntu.com'
Err https://extras.ubuntu.com precise/main i386 Packages
Couldn't resolve host 'extras.ubuntu.com'
how to get rid of this? i changed http to https does it make any differences??

should i download apt-fast before sudo apt-get update??

Last edited by ajay06081993; 11-04-2012 at 06:21 AM.
 
Old 11-04-2012, 08:21 PM   #5
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
try typing
Code:
sudo apt-get -f install
let it do its think once is done try to upgrade again with the command
Code:
sudo apt-get update && apt-get upgrade
Let us know how it works for you.
 
Old 11-05-2012, 08:57 AM   #6
ajay06081993
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TroN-0074 View Post
try typing
Code:
sudo apt-get -f install
let it do its think once is done try to upgrade again with the command
Code:
sudo apt-get update && apt-get upgrade
Let us know how it works for you.
it goes to 32%working then it come down to 24%working and shows
Err https://extras.ubuntu.com precise/main Sources
couldn't connect to host
Err https://extras.ubuntu.com precise/main i386 Packages
couldn't connect to host
Ign https://archive.ubuntu.com precise-backports Release

did my linux distro is corrupted or not??

internet is very slow in linux what can i do??
 
Old 11-05-2012, 10:24 AM   #7
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
I am not an expert but I think your connection will have something to do with this problem. Are you able to test your system in a different location with a hot spot? perhaps in a coffee shop or in a library?

I don't think your installation is corrupted and perhaps with a different connection it might work. but really I don't know much .

Good luck to you.
 
Old 11-05-2012, 10:49 AM   #8
hunternet93
Member
 
Registered: Jun 2009
Posts: 87

Rep: Reputation: 31
Quote:
Originally Posted by TroN-0074 View Post
I am not an expert but I think your connection will have something to do with this problem. Are you able to test your system in a different location with a hot spot? perhaps in a coffee shop or in a library?

I don't think your installation is corrupted and perhaps with a different connection it might work. but really I don't know much .

Good luck to you.
The error means that apt-get is having trouble downloading the file it needs. Wait a little while and try again, or try a different internet connection.

Code:
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
The above message means that another program is currently accessing apt's files. You can wait a few minutes and try again when this appears or look for programs like Update Manager and close them.
 
Old 11-29-2012, 07:37 AM   #9
ajay06081993
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hunternet93 View Post
The error means that apt-get is having trouble downloading the file it needs. Wait a little while and try again, or try a different internet connection.

Code:
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
The above message means that another program is currently accessing apt's files. You can wait a few minutes and try again when this appears or look for programs like Update Manager and close them.
i reinstalled the linux and then do the proxy settings in linux terminal and from then onwards linux is working fine.
thanks for reply
with regards ajay
 
  


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
how to install postgresql8.1.2 in ubuntu12.04 vignesh4sh Ubuntu 5 10-21-2012 11:41 PM
Error installing Ubuntu12.4 kawasakioutlaw Linux - Newbie 2 08-08-2012 10:18 PM
Installing SPro on ubuntu12.04 squishything Linux - Software 2 06-29-2012 01:18 PM
LXer: Nvidia 302.17 has been released! Install in Ubuntu12.04, LinuxMint13, Fedora17 LXer Syndicated Linux News 0 06-19-2012 03:10 AM
Opening VLC with the terminal line so the terminal will go back to normal baldurpet Linux - Newbie 3 01-14-2009 09:57 AM

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

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