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)

26
votes
8answers
34k views

How to overcome signature verification error?

I ran this command in the Terminal: sudo apt-get update Updating ends with the following error report: W: A error occurred during the signature verification. The repository is not updated and the ...
26
votes
9answers
80k 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
4answers
7k 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
8answers
12k 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
5answers
5k 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 ...
26
votes
2answers
23k 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 ...
25
votes
2answers
3k 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
6answers
3k 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 ...
25
votes
8answers
11k 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 ...
25
votes
4answers
15k 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 ...
24
votes
10answers
35k 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 ...
24
votes
8answers
29k 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 ...
24
votes
3answers
24k 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?
24
votes
6answers
46k 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 ...
24
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 ...
23
votes
12answers
47k 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 ...
22
votes
5answers
70k 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
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 ...
22
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, ...
21
votes
8answers
994 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
3answers
51k 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 ...
21
votes
1answer
2k views

How do I enable fancy apt colours and progress bars?

I've heard that apt has some a fancy colour and progress bar feature, but that I have to manually enable it. How do I do this?
20
votes
2answers
7k 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 ...
20
votes
9answers
86k 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 ...
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
778 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
6answers
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 ...
19
votes
2answers
37k 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
1answer
13k 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 ...
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
1answer
550 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
5answers
1k views

Can I automatically purge every package I've ever uninstalled?

As an Ubuntu noob, I install and uninstall a lot of packages, to try them out. However, for months, I made the mistake of using apt-get remove instead of apt-get purge, which I didn't even realize ...
18
votes
5answers
10k 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 ...
18
votes
4answers
40k views

How do I apt-get a 32-bit package on a 64-bit installation? [duplicate]

I was trying to get a game working. But I have Lucid Lynx on amd64 running while the game binary was 32 bit (no 64 bit version available and nobody was in the mood for recompiling). It lacked ...
18
votes
1answer
2k views

How to limit the download speed of APT?

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?
18
votes
3answers
11k 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 ...
18
votes
1answer
552 views

How can I install the $0 applications from the Ubuntu Software Center with apt-get?

In the Ubuntu Software Center, there are lots of $0 apps that I can 'purchase': for example: crazytoad pinball-bakno colorsudoku As these applications are free (as in beer), I wonder how I can ...
18
votes
5answers
46k views

How do I open “apt” links in Firefox on Lubuntu?

Many answers on Ask Ubuntu direct to links like this that in Xubuntu opened in Ubuntu Software Center. In Lubuntu I get this error message: In Firefox-Preferences/Applications cannot see something ...
18
votes
4answers
33k 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 ...
18
votes
2answers
22k 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 ...
18
votes
1answer
32k views

Apt-get saying “Unable to correct problems, you have held broken packages.” [duplicate]

Possible Duplicate: How do I resolve unmet dependencies? TL;DR: sudo apt-get install ... saying "Unable to correct problems, you have held broken packages." The problem I was trying ...
17
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 ?
17
votes
2answers
11k 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 ...
17
votes
3answers
27k views

apt-get warning: No support for locale: en_US.utf8

I get this error each time I update the system using apt-get. What does this error mean? Any ideas on how to correct it? (I am running Ubuntu 11.10)
17
votes
3answers
6k views

What does it mean that a package is “set to manually installed?”

When packages are already installed and I run an apt-get install <package-name>, sometimes it will print a line <package-name> is set to manually installed. What does that mean?
17
votes
2answers
5k views

What is the apt equivalent to “rpm -V” (Verify installed packages)

On a RedHat/CentOS system, I can verify the installed RPMs on my system using rpm -V. What is the Ubuntu or apt equivalent of this command?
17
votes
1answer
4k views

Why does my 64-bit system look for 32-bit repos?

I've got a 64-bit 12.10 install on my Laptop. When running apt-get update, it downloads package lists for 32-bit packages (as well as source and 64-bit package lists). Why does it look for 32-bit ...
17
votes
3answers
9k 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: ...
17
votes
2answers
24k 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 ...
17
votes
1answer
4k views

Where is virtualenvwrapper.sh?

I don't know what's more embarrassing: that I don't know how to go about finding the answer to this question myself, or that it has to be asked at all in the first place, but... where does apt-get ...