LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-09-2011, 01:57 PM   #1
edier88
LQ Newbie
 
Registered: May 2011
Posts: 9

Rep: Reputation: Disabled
installing multiple packages at the same time


Ok folks, first, sorry if my english is not very good.
Im testing the new Ubuntu 11.10 with Unity, well, that's not the point, the point is that a realized a time ago that when im installing something I can't install other thing, I need to wait to install the first thing after installing the other.

An example, I entered in a terminal "sudo apt-get install ubuntu-restricted-extras" in order to get the restricted extras. Later in another terminal I entered "sudo apt-get install fping" and I got the next message:


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?

My question is: Can I install, use or do something in order to install many things at the same time?

Thank you
 
Old 11-09-2011, 02:04 PM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 494

Rep: Reputation: 75
You can put them all on the same line, one after another, like this:
Code:
sudo apt-get install fping apache2 mysql ubuntu-restricted-extras
and so on, just put a space between the packages.

Angel.
 
1 members found this post helpful.
Old 11-09-2011, 02:13 PM   #3
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,593

Rep: Reputation: 162Reputation: 162
You need to wait a few moments for the lock on the previous instance of dpkg to release. But unless I want to override a policy, such as remove individual games or utility front ends without removing the entire desktop GUI, I just use synaptic or dselect.
 
1 members found this post helpful.
Old 11-09-2011, 05:56 PM   #4
inoculos
Member
 
Registered: Apr 2009
Location: Seattle
Distribution: Arch, Crunchbang, Fedora
Posts: 38

Rep: Reputation: 6
just an add on to what's already been said, and I know it wasn't what was asked but...

Its a good idea to run sudo apt-get update before running install, you can just do this all in one command:

sudo apt-get update && sudo apt-get install fping apache2 mysql ubuntu-restricted-extras
 
1 members found this post helpful.
  


Reply

Tags
install, installation, installpkg, terminal


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 multiple packages and dependencies offline quidoloremipsum Debian 3 02-01-2009 10:21 AM
installing multiple packages btexpress Linux - Software 10 05-24-2004 01:30 AM
Installing multiple RPM Packages free_andrew Linux - Software 4 12-08-2003 03:04 PM
Installing multiple cd with the same packages Sylhouette Slackware 2 11-14-2003 06:46 PM
Hard Time Installing Packages. rvijay Linux - Newbie 1 09-15-2003 09:19 AM


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