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 11-03-2012, 10: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, 06:04 PM   #2
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,097

Rep: Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809
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, 06:07 PM   #3
arun5002
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 549
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 arun5002; 11-03-2012 at 06:10 PM.
 
Old 11-04-2012, 07: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 07:21 AM.
 
Old 11-04-2012, 09:21 PM   #5
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,430

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
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, 09: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, 11:24 AM   #7
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,430

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
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, 11: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, 08: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


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


All times are GMT -5. The time now is 08:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration