Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-09-2011, 12:57 PM   #1
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, 01:04 PM   #2
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 536

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

1 members found this post helpful.
Old 11-09-2011, 01:13 PM   #3
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,483

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
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, 04:56 PM   #4
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.


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

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration