aptitude is a front-end to the Advanced Packaging Tool (APT). It displays a list of software packages and allows the user to interactively pick packages to install or remove. In addition to a curses based interface, it also has a command line interface.

learn more… | top users | synonyms

67
votes
7answers
32k views

Find what package a file belongs to in Ubuntu/Debian?

I frequently find myself missing a program, man page, or other file when working on my Ubuntu 8.04 system. Is there any simple way to look up what package contains a given file (whether it is ...
66
votes
5answers
29k views

Aptitude vs. apt-get: Which is the recommended (aka the “right”) tool to use?

Some time ago I read that aptitude is the preferred tool for installation on Debian-based systems. But when you search around on how to administer a Debian-based system, then aptitude is rarely ...
50
votes
3answers
10k views

What are “Super Cow Powers” and why doesn't my aptitude have them?

sudo aptitude help aptitude 0.4.11.11 Usage: aptitude [-S fname] [-u|-i] aptitude [options] <action> ... Actions (if none is specified, aptitude will enter interactive mode): ... This ...
42
votes
3answers
98k views

How to reinstall a package using apt-get?

It seems that my aptitude is somehow broken sudo aptitude update 0% [Working]Segmentation fault dmesg [223282.616599] aptitude[30972]: segfault at 67707f ip 7f954dcfae5d sp 7ffff5a5f950 error 4 in ...
35
votes
3answers
48k views

How to install local .deb packages with apt-get

Is there a way to install packages store on your HD with apt-get, like a "apt-get install ./package.deb ? If not how to handle the dependencies in a very very easy way.
26
votes
8answers
6k views

How do you track which packages were installed on Ubuntu (Linux)?

(This question is very similar to 10458. It was suggested that Fedora and Ubuntu/Debian are different enough to warrant different answers.) As I use any Ubuntu setup I gradually install a number of ...
25
votes
3answers
6k views

How do I find out which package owns a file?

How do I find out what Debian package a file came from?
24
votes
6answers
32k views

Apt-cache: How to list all installed packages with version number?

apt-cache dump --installed doesn't work, it lists uninstalled packages as well. I want to list the install packages each by one line, with the installed version number.
17
votes
8answers
18k views

How to work around blocked outbound hkp port for apt keys

I'm using Ubuntu 9.10, and need to add some apt repositories. Unfortunately, I get messages like this when running sudo apt-get update: W: GPG error: http://ppa.launchpad.net karmic Release: The ...
17
votes
7answers
12k views

Find packages installed from a certain repository with aptitude

I'm in search for something analog to this question: Zypper: How do I display all packages from a certain repository? Since I'm on Ubuntu, I need an aptitude based solution: How can I get a list of ...
15
votes
4answers
39k views

How do I add a apt-get repository without editing /etc/apt/sources.list?

I want to add a repository to apt-get (without potentially messing up /etc/apt/sources.list) through the user of a script. This script may run multiple times so I can't just append the entry each ...
14
votes
2answers
10k views

Which Debian package architecture am I using?

What's the command to find out which Debian package architecture I'm using? eg, on a 64 bit x86, I'm expecting something like amd64, i386 on 32 bit x86 and darwin-x86_64 from OSX 10.6 (via Fink).
13
votes
3answers
12k views

Ubuntu + latest samba version, symlinks no longer work on share mounted in windows

I just apt-getted (apt-got?) the latest software for my Ubuntu 9.10 linux box, and I noticed that samba was the included in the update. After the install, the symlinks in my home directory no longer ...
12
votes
7answers
21k views

How to fix broken synaptic updates: “Package is in a very bad inconsistent state”

I have a Dell Mini9 running Ubuntu 8.10. One day I had the bright idea to see if I could install a LAMP stack. I had trouble installing MySQL 5.0. I don't recall the error, but ever since all ...
12
votes
2answers
22k views

How to get source with apt-get source in Ubuntu?

I need to install pure-ftpd from source and need to do apt-get source pure-ftpd but I get this message: E: You must put some 'source' URIs in your sources.list I found some documentation about this ...
12
votes
7answers
42k views

How can I undo or rollback an “apt-get upgrade” command on Ubuntu?

Is there a way in Ubuntu to rollback or undo the last upgrade after doing an apt-get upgrade if you don't like the results?
10
votes
1answer
1k views

In the output of “aptitude update”, what do “Ign” and the other codes mean?

When I run sudo aptitude update from the console, I see output with lines such as this: Get:1 http://security.ubuntu.com lucid-security Release.gpg [198B] Ign http://security.ubuntu.com/ubuntu/ ...
10
votes
5answers
4k views

installing packages without sudo access

Is there an easy way to install packages with a large dependency tree, provided that you don't have superuser access? For instance, say I wanted to install firefox. Firefox has a ton of dependencies, ...
9
votes
2answers
686 views

Is there any way to limit my Internet connection to a per program basis?

My Linux connection is REALLY free. I live in Brazil, so where I live I can only have 1 Mbit/s. Yes I know it's sad, but it's not the point. Everytime I'm updating my Ubuntu 9.04 or downloading ...
9
votes
2answers
3k views

How do I install the latest version of packages in Ubuntu?

For example I want to install the latest version of "numpy". I type the following: "sudo apt-get install python-numpy". When I type this the first time it installs something and if I type this the ...
8
votes
4answers
2k views

How can I display the list of all packages installed on my Debian system?

How can I get the list of all packages installed on my Debian system (I know this one is easy)? And also a list of all packages marked as manual? I am thinking about system upgrade, but I can't ...
8
votes
3answers
569 views

Making aptitude less verbose

People say that aptitude on Debian is so much better than apt-get, but I find it less usable. (See examples below.) Is there any configuration magic for aptitude to get rid of those useless status ...
8
votes
3answers
9k views

Updating the url list apt-get uses in debian

When I do 'apt-get update' on my VPS I get a lot of error messages: Err http://ftp.debian.org lenny/volatile/main Packages 404 Not Found [IP: 130.89.149.226 80] Err http://ftp.debian.org ...
7
votes
3answers
637 views

How to ReUse Ubuntu APT

When we use ubuntu apt-get the first process is downloading the required files into a temporary folder /var/cache/apt/archives Installation will be done only after that. Can we able to ...
7
votes
5answers
6k views

apt-get hangs when upgrading mysql-server-5.1

When I attempt to do the following: sudo apt-get update sudo apt-get upgrade on my Ubuntu Server 10.04 installation, it hangs at the following line: Preparing to replace mysql-server-5.1 ...
7
votes
3answers
4k views

How can I specify the repository from which a package will be installed? (emacs-snapshot)

I want to install emacs-snapshot from http://emacs.orebokech.com But there is already an emacs-snapshot in Ubuntu's repositories. How can I specify the repository from which a package will be ...
7
votes
2answers
815 views

Install packages through apt-get or gem?

If a package is available both through apt-get and gem, which one should I choose? I'm on Ubuntu and I don't know if I should install rake through apt-get or gem. I use both apt-get and gem packages ...
7
votes
3answers
4k views

Debian - Can't stop MySQL; permissions?

I just tried to upgrade from debian squeeze to unstable by replacing 'squeeze' with 'unstable' in /etc/apt/sources.list. The upgrade went smoothly except for mysql, which failed because it couldn't ...
7
votes
3answers
7k views

Tell aptitude to ignore broken package

I installed a Amsynth from Lucid in Karmic using: dpkg --force-depends-version -i amsynth_1.2.2-1_i386.deb The reason for installing the Lucid version is because Karmic version is 3 years old and ...
6
votes
4answers
7k views

How to install a single package from Debian sid?

Take ibus-sunpinyin for example, which isn't existed in the squeeze release. I'm not going to switch the whole system to the sid branch, so, I want to download the single package from sid repository ...
6
votes
1answer
5k views

after changing sources.list on ubuntu, how do I make him reload/refresh?

after changing sources.list on ubuntu, how do I make him reload/refresh? So new packages in the new sources will be found?
6
votes
1answer
14k views

How do I completely remove and reinstall Samba on Debian?

My Samba installation has become a mess, and now the services won't even start correctly anymore, for some reason. Is there a way to completely remove Samba, as if it was never there, and then ...
6
votes
2answers
332 views

Linux has many dependencies when installing a small mp3 player

I try to install a small audio player named "Audacious" with the following command: sudo apt-get install audacious and it tells me that it depends audacious-plugins, so I try to install the ...
6
votes
1answer
30k views

apt-get on Mac OS X? [duplicate]

Possible Duplicate: Apple / Mac OS X - Is there a Package Manager like Linux Is there a version of apt-get on Mac OS X? If not, or it is not recommended, what similar installers are there? ...
6
votes
2answers
2k views

What is the difference between Recommended and Suggested packages (Ubuntu)

On Ubuntu when you install a package, there can be dependencies, recommendations and suggestions. For example: virtualbox-ose has adduser as dependency, libgl1 as recommendation and libpulse0 as ...
6
votes
3answers
2k views

Aptitude Untrusted source, gpg, keyserver

I have mirrored the Ubuntu archive repository (I must say it's rather huge). Then, I can apt-get install with no problem, but it prompts with following warning: WARNING: The following packages ...
5
votes
6answers
3k views

“sudo apt-get install xyz” command

Can someone explain what actions this command will perform? sudo apt-get install xyz
5
votes
1answer
5k views

Where is dos2unix in Ubuntu 2010.04?

I want to use dos2unix so I installed the tofrodos package, but it still says dos2unix: command not found. So I ran: apt-file update; apt-file search dos2unix And it gives zero result. Where is ...
5
votes
2answers
5k views

How can I determine the current version number of an application with apt-get

Say I have python-twisted installed. sudo apt-get -V check python-twisted does not show the version number, just Reading package lists... Done Building dependency tree Reading state ...
5
votes
2answers
966 views

Can Debian identify rarely used packages?

I'd like to find a tool that could tell me which Debian packages on my system have been rarely or never used, perhaps by looking at file lists and access times. This is to find candidates for ...
5
votes
2answers
1k views

apt-get for a particular version?

I would like the linux (Ubuntu) version of jdk 6 update 17 (which I think is one version behind the current one), can apt-get request such a specific package?
5
votes
3answers
644 views

Telling aptitude I've already installed something

Hi, I know this might be a non-sense question, but I have to ask. I installed TeXLive 2009 on Ubuntu 10.04 (x64), but I did it manually with the "install-tl" perl script following the directions on ...
5
votes
1answer
134 views

Upgrade from 10.04 to 12.04: apt/aptitude debug information

I have an issue mentioned here: during update from 10.04 to 12.04 The workaround: apt-get -f install -o APT::Immediate-Configure=false python-minimal seems to work, but there are two problems with ...
5
votes
3answers
415 views

Packages in weird state

On my Debian system I seem to have a few packages in weird state. When I run upgrade, they are always to be intstalled: grzes:/home/ga# apt-get dist-upgrade Reading package lists... Done Building ...
4
votes
3answers
21k views

apt error: Could not perform immediate configuration on

I have issues running the following command: root@X100e:~# apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... ...
4
votes
2answers
928 views

Automatic linux-headers installation

Is there a way to get the matching Linux kernel headers automatic on a regular kernel update via the Ubuntu packed manager? Every time I get a new kernel I must do an aptitude install ...
4
votes
2answers
1k views

In Ubuntu/Debian, how do I mark a package as non-auto removable?

Suppose I have a package (a Python package in this case) that I install using Synaptic. Because the version of this package is somewhat outdated, I remove it in Synaptic and then install it using ...
4
votes
3answers
962 views

Howto build g++ from source *and* pass options to `configure`

I would like to rebuild g++ with my own specific settings. Here is what I did so far: sudo aptitude install build-dep g++-4.2 mkdir trial && cd trial apt-get source g++-4.2 Now I want to ...
4
votes
6answers
2k views

Smallest linux with apt repositories?

Does someone knows a small linux distro that comes with apt package? I tried puppy linux and dsl, but I didn't like any of those. I am looking to setup a LAMP into a virtual machine with a small ...
4
votes
2answers
2k views

Is there something like apt or aptitude for windows? [duplicate]

Possible Duplicate: Package managers for Windows The most important features to me are: A mechanism to automatically update all applications I have installed in one go checking ...