Download your favorite Linux distribution at LQ ISO.
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 10-17-2011, 02:45 PM   #1
LQ Newbie
Registered: Dec 2009
Location: Florida
Distribution: Ubuntu 9.10
Posts: 1

Rep: Reputation: 0
aptitude in Ubuntu 11.10

I have installed Ubuntu 11.10 and have tried to use a command that I have used in past versions (i.e 10.10, 11.04). Now Ubuntu is telling me (1) aptitude is "not installed", and when i try to install it it tells me that the dependency's are not met. It needs "libapt-pkg4.10". libapt-pkg4.11 is installed in Ubuntu 11.10. How can I get aptitude installed, or how can I change my command to get the results I'm looking for?

The command is:
aptitude search -F "%p" --disable-columns ~i >~/tmp/programs-install.txt

I'm trying to get text list of every program I have installed in one version so as to run a comparison to locate the name and then install packages from one version to another. I know it is a manual process, but it works for me. Can anyone help? Thanks, if you can
Old 10-17-2011, 03:03 PM   #2
Senior Member
Registered: Feb 2009
Posts: 4,210

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install aptitude
This will refresh your package list, update your system, and install aptitude.
Old 10-17-2011, 03:06 PM   #3
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,144
Blog Entries: 2

Rep: Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846
Do I understand you right, you need a list of packages installed on one system, so that you can install the same packages on another system?
In that case you can get the list with
 dpkg --get-selections > installed_packages
If you want to setup another system the same way just copy the list to that system and do
dpkg --set-selections < installed_packages
apt-get dselect-upgrade
All these actions have to be run as root, of course, so you may have to put sudo in front.

Last edited by TobiSGD; 10-17-2011 at 03:07 PM. Reason: fixed typos


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 use apt-get/aptitude/dpkg in ubuntu to install packages on a HDD (booting ubuntu from CD) gujedan Linux - Newbie 1 10-07-2010 06:02 AM
I Can't Use 'Apt-get' And 'Aptitude' In Ubuntu - HELP!!! davidx Linux - Software 2 10-23-2008 10:07 PM
Apt-get and aptitude break on aspell-en (ubuntu) hairytorus Linux - Newbie 3 09-30-2008 11:53 AM
Ubuntu aptitude and .deb question bingerthedog Ubuntu 3 08-02-2005 03:08 PM > Forums > Linux Forums > Linux - Newbie

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