LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-02-2011, 05:29 AM   #1
lingaraj
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Rep: Reputation: Disabled
facing problems in loading g++


hi,
i am a new user in linux.I just tried to install g++ in my laptop from command prompt.i Use this code

qvantel@qvantel-laptop:~$ sudo apt-get install g++
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?
qvantel@qvantel-laptop:~$

and got the above error.Please tell me what to do.


Lingaraj
 
Old 06-02-2011, 06:02 AM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Sounds like the error you get if the GUI package manager is open while you try to use the command line package manager.

If you really want to use the command line package manager (apt-get) then make sure the GUI package manager is closed.

But you may be better off finding g++ in the GUI package manager and getting it that way.

Last edited by johnsfine; 06-02-2011 at 06:03 AM.
 
Old 06-02-2011, 06:07 AM   #3
lingaraj
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
then tell me how to install g++
 
Old 06-02-2011, 07:02 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'sudo apt-get install g++' will do.

But you will have to wait until the "Automatic check for updates"
has finished. And of course close all 'GUI package install' tools,
as said by @johnsfine.

Or use 'Synaptic' or 'Ubuntu Software center' for the install.

..

Last edited by knudfl; 06-02-2011 at 07:04 AM.
 
Old 06-02-2011, 09:12 AM   #5
lingaraj
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thumbs down

hI,

thanks for your replay.But i think i got the problem.Actually previously i installed sunjava through apt-get install
sun java6.0.Which is installed successfully and i am able to use it.but at end of the installation it is opening a gui prompt of java.As i am doing from command prompt i am not able to close it.So even if i am closing the terminal the process still exit.So,next time when i am doing any apt-get install g++ it is not allowing.I clean up the apt-get lock but after that whenever i trying to install anything through apt-get it is upgrading the java file again and stopping at same point. Is there any way i can solve it.if not i think i need to uninstall the java application and then try to install g++.


can u suggest as per the suitability.

Lingaraj
 
Old 06-02-2011, 12:23 PM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Hopefully someone else can give you better details than what I recall. But in case waiting for a better answer is slow:

I have seen this problem using Synaptic, which doesn't look exactly the same but is the same underlying issue.

Installing Sun Java from the package manager is not self contained. During the install it tells you to get some additional file directly from Sun (I guess Oracle now). After you get that file, you can make the install complete. Until you have done that, every other install operation re reports the problem.

With Synaptic, I have had no trouble skipping over the problem, so other packages (G++ etc.) can be installed while the Java install is still unfinished. Also I have no trouble closing the failure in Synaptic leaving it unsolved (but not leaving it locked). Apparently closing it unsolved by not locked was not obvious using apt-get instead of Synaptic.
 
  


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
Some problems facing in Fedora 12 dnskdas Linux - Desktop 1 12-07-2009 05:22 PM
facing problems in installation on my laptop amsri Linux - Laptop and Netbook 2 08-21-2006 10:48 AM
New to linux, facing problems sibnath LinuxQuestions.org Member Intro 1 04-12-2006 03:38 AM
facing problems with nfs saradhi Solaris / OpenSolaris 8 02-02-2006 06:12 AM
Newbie facing some problems safrout Slackware 4 05-17-2003 10:21 AM

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

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