Advanced Packaging Tool, the package manager for Debian-based distributions. It is also the most used tool for installing packages in Ubuntu. Questions about using any of the apt tools should use this tag.

learn more… | top users | synonyms (1)

30
votes
2answers
33k views

What is difference between the options “autoclean”, “autoremove” and “clean”?

apt-get has a few options which looks the same to me: autoclean, autoremove and clean. What do each of them do?
30
votes
8answers
13k views

Generating list of manually installed packages and querying individual packages

I'd like to get a list of packages installed manually by apt or aptitude and be able to find out whether a foobar package was installed manually or automatically. Is there any neat way of doing that ...
30
votes
3answers
2k views

Do I really need the “Source Code” in my repository list?

It takes a long time to update my software sources when I run: sudo apt-get update I believe that happens when the apt-get is downloading source code from the repository, in my case it the one in ...
28
votes
3answers
63k views

What is the Difference Between `apt-get purge` and `apt-get remove`? [duplicate]

Possible Duplicate: What is the correct way to completely remove an application? Is there any difference between sudo apt-get purge <package-name> and sudo apt-get remove ...
28
votes
2answers
70k views

What does Package <package> has no installation candidate mean?

What does the above Error mean? What is an installation candidate? I was trying to do sudo apt-get install munin-memcached and I get this message: Reading package lists... Done Building ...
27
votes
3answers
6k views

How do I cherry pick packages from a PPA? [duplicate]

Is there a way to cherry pick packages from a ppa repository you add? That is, to exclude some from updating while including others? For example, I want just the chromium-browser package from this ...
27
votes
2answers
25k views

What does “No apport report written because MaxReports is reached already” mean?

When installing a Linux kernel image package, I got, amongst other errors: No apport report written because MaxReports is reached already Where can I delete old reports so that Apport can ...
26
votes
8answers
33k views

How do I remove a malformed line from my sources.list?

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that. I just tried to upload a screen ...
26
votes
9answers
86k views

'apt-get' does not work with Proxy

For the command sudo apt-get update I get following error: W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz 407 Proxy ...
26
votes
3answers
28k views

apt-get autocomplete package name is broken

At some moment apt-get install autocomplete was broken It was very useful to me to see packages name with Tab press How to repair this autocomplete?
26
votes
6answers
4k views

Why the software center doesn't allow multiple downloads?

I was wondering why the software center doesn't download all the requested apps and install one by one as they finish to download. Or instead why the software center doesn't download an app while the ...
26
votes
8answers
13k views

Where do I get a package for GNU Parallel?

I want to install GNU Parallel in Ubuntu but I can't find a package for it in the default Ubuntu repos. Where can I get it?
26
votes
4answers
8k views

How are packages actually installed via apt-get install?

When using the apt-get install method to install a package onto ubuntu, is there any fundamental difference between obtaining the source code for that package and building it from scratch? Does the ...
26
votes
5answers
6k views

the size of apt-get update lists is too big

This question contains circumventions for an bug in Ubuntu: Bug #1001780 “apt-get update size is too big” : Bugs : Launchpad itself, as well as some general advice on saving bandwidth when doing ...
25
votes
10answers
39k views

Unable to install Skype on 64bit Ubuntu

I am receiving the following message while I am trying to install Skype: nidhin@ubuntu:~$ sudo apt-get update nidhin@ubuntu:~$ sudo apt-get install skype Reading package lists... Done Building ...
25
votes
2answers
4k views

Should I install programs from a source tarball (`.tar.gz`), from the Ubuntu Software Centre, or from elsewhere?

There are several ways to install an application in Ubuntu: You can download a source tarball (generally a .tar.gz or a .tar.bz2 file) and install it manually. (See How to install a .tar.gz (or ...
25
votes
4answers
17k views

How to set up an APT repository?

I would like to set up an APT repository on a server that will provide a couple of packages. Is there a way to set one up without installing any software on the server? How do the files have to be ...
25
votes
5answers
49k views

Where are mysql-admin and query-browser?

In terminal I run next commands: sudo apt-get install mysql-server sudo apt-get install mysql-admin sudo apt-get install mysql-query-browser With first command - all ok. But for latest two ...
25
votes
3answers
1k views

Why was aptitude removed in favor of apt-get?

Why was aptitude removed in favor of apt-get by default? I read it somewhere, but forgot - anyone bother to clear it up? And doesn't Debian prefer aptitude and Canonical apt-get? Update From the ...
24
votes
1answer
16k views

How can I remove gpg key that I added using apt-key add -?

I don't need the key in my server's keyring anymore. Is it possible to remove it? I added the key using this command: curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add - Thanks ...
24
votes
9answers
99k views

apt-get update fails to fetch files, “Temporary failure resolving …” error

Err http://archive.canonical.com natty InRelease Err http://security.ubuntu.com oneiric-security InRelease Err http://extras.ubuntu.com natty InRelease ...
24
votes
12answers
49k views

Cannot install ia32-libs

I don't know why I can't install ia32-libs. It claims for a dependency that cannot be found on repos. junior@mediacenter:~$ sudo apt-get install ia32-libs Reading package lists... Done Building ...
23
votes
4answers
2k views

Can I see why a package is installed?

For a specific package, can I find out why it is installed? So, can I see or it's manually installed, or that it is installed as a dependency of another package? Or that it is installed as part of ...
23
votes
3answers
5k views

apt-get vs. aptitude .vs synaptic compatibility

I had been a Debian user for almost 3 years... but memories have gone really fuzzy... I "kind of" remember that I should only use one of the package managers... Either apt-get, aptitude, or synaptic, ...
22
votes
2answers
8k views

How do I apt-get -y dist-upgrade without a grub config prompt?

Per Make apt-get (or aptitude) run with -y but not prompt for replacement of configuration files? I did the following: ec2run ami-3c994355 --region us-east-1 -n 1 -t m1.large -z us-east-1d On the ...
22
votes
5answers
84k views

Permanently removing apache2

It seems a simple apt-get remove apache2 does not completely remove apache2 as I can still see it on one of the processes when running top. How does one remove apache2 completely on his ubuntu server? ...
22
votes
2answers
12k views

apt get install vs pip install

I am a bit confused about the cases in which the above commands must be used when downloading python packages. I was trying to download a package named pyudev in accordance with an answer with this ...
22
votes
1answer
3k views

How do I enable fancy apt colours and progress bars?

I've heard that apt has a new fancy colour and progress bar feature, but that I have to manually enable it. How do I do this?
21
votes
3answers
2k views

How to install a package with apt without the “Do you want to continue [Y/n]?” prompt?

Of course when you type: sudo apt-get install whatever It asks you: Do you want to continue [Y/n]? Is there any way I can just install it without it asking me if I want to continue? I don't ...
21
votes
8answers
1k views

How to make a package manager wait if another instance of APT is running?

I have seen many softwares such as Update Manager and Synaptic Package Manager, they wait if some other program is using the /var/lib/dpkg/lock and is locked. How can we do this through the Terminal? ...
21
votes
6answers
23k views

Not enough free disk space when upgrading

I'm new to Ubuntu and I'm getting an error in software updater. When I try and do my daily updates, it says: The upgrade needs a total of 25.3 M free space on disk /boot. Please free at least an ...
21
votes
8answers
9k views

How to see packages installed on a given date using aptitude

Does anyone know if there's an easy way to find a list of packages installed, sorted by date, when using aptitude (or apt-get)? I was installing a bunch of packages to try something new, and it ...
21
votes
6answers
12k views

Is it possible to install a .deb from a URL?

Is there a way to install a deb package directly from a URL, using a shell? Something like dpkg -i http://domain.com/path/to/package.deb (I know I could use wget and then dpkg, I'm just wondering ...
21
votes
2answers
26k views

How to force installation of kernel updates when using apt-get upgrade?

To update my server I use apt-get upgrade. But when there are kernel updates I always need to do apt-get install linux-.... because apt-get update does not install them. Is there a way I can tell it ...
20
votes
1answer
3k views

How to limit the download speed of APT? [duplicate]

I am downloading a very large package and my internet connection isn't the fastest, so browsing the web at the same time is a pain. How can I limit the bandwidth apt-get uses?
20
votes
3answers
7k views

Does apt-get clean harm your system?

Does cleaning /var/cache/apt/archives by apt-get clean affect installed applications? Is it that the .deb packages there are needed for applications to run properly?
20
votes
4answers
822 views

Is it possible to tell what packages I've installed that aren't in the vanilla install?

I've upgraded Ubuntu on my laptop all the way from 7.04 to 10.04 without ever wiping the disk. I have a sneaking suspicion that means I have a bunch of crufty packages that I don't use and that are ...
19
votes
5answers
2k views

How to both display a command line's output on console and save the output into a text file?

How can I run sudo apt-get install by BOTH seeing the process of installation (long in my case) and saving its output into a text file ?
19
votes
3answers
11k views

Clearsigned file isn't valid, from 01.org package?

I'm running Ubuntu 14.04 LTS, and I have an HD 4600 integrated graphics chip. lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated ...
19
votes
6answers
7k views

Install packages without starting background processes and services

Sometimes installing some applications will start a process or service from the application being run automatically on installation. How do I install without starting them?
19
votes
2answers
41k views

How do I use apt-get to only download packages?

I have apt-get 0.7.23.1 on host machine. I do not have root, thus not able to update it, or install other packages. I want to download .deb packages with it, but neither apt-get -d bash (Invalid ...
19
votes
3answers
13k views

How do I fix this “E:Type '*' is not known on line * in source list …” update error?

Every once in a while I see users having issues to update due to errors like this: E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list' with varying types/line ...
19
votes
3answers
10k views

Is there an apt command to download a deb file from the repositories to the current directory?

I am often interested in the installation triggers (postinst, postrm) or certain parts of packages (like /usr/share and /etc). Currently, I am running the next command to retrieve the source code: ...
19
votes
3answers
4k views

How to find the number of packages needing update from the command line?

I'm working on some system admin automation using fabric and I'd like to be able to monitor the number of packages that need upgrading on a given machine. This is the same information that I can see ...
19
votes
6answers
38k views

apt-get update very slow, stuck at “Waiting for headers”

I have looked at similar questions: Stuck at 0% [waiting for headers] (apt) apt-get update stuck on "Waiting for Headers" However neither one of them answer my problem. I am running ...
19
votes
2answers
685 views

What's the caret (^) mean in apt-get?

I'm seeing various instructions that request that you install something like: apt-get install lamp-server^ With the oddball caret in the command. It doesn't seem to be mentioned in apt-get manual. ...
19
votes
2answers
25k views

Something wicked happened resolving medibuntu repository, what happens?

We have an Ubuntu 12.04 LTS machines that is giving errors when I try to run updates. Specifically, I am getting a load of errors like this: W: Failed to fetch ...
19
votes
1answer
564 views

Use apt directly vs apt-*?

I just found that there is a apt command that you can use directly: $sudo apt apt 1.0.1ubuntu2 for amd64 compiled on Apr 10 2014 13:03:39 Usage: apt [options] command CLI for apt. Basic ...
18
votes
2answers
12k views

dpkg: error: parsing file '/var/lib/dpkg/available' near line 0

Been trying to install git-core package for almost more than half a day now. Everytime i do, I get this error: dpkg: error: parsing file '/var/lib/dpkg/available' near line 0: newline in field name ...
18
votes
4answers
39k views

How can I reinstall Apache HTTPD after deleting some of the configuration files?

I recently was messing around with my Apache config and wanted to reinstall so I could start from fresh. I followed some forum posts about reinstalling the apache2 package and this ended up deleting ...