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)

38
votes
2answers
10k views

How do I make apt-get install less noisy?

If I use apt-get install -qq mono-devel, I expect it to be quiet except for errors, according to the help: -qq No output except for errors Instead I get: Extracting templates from packages: 100% ...
37
votes
8answers
51k 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 ...
37
votes
2answers
34k views

Why am I getting authentication errors for packages from an Ubuntu repository?

I'm experimenting with VPNs, so I wanted to install pptpd. john@desktop:~$ sudo apt-get install pptpd [sudo] password for john: <snip> The following extra packages will be installed: bcrelay ...
36
votes
2answers
17k views

create a .deb Package from scripts or binaries

I searched for a simple way to create .deb Packages for things which have no source code to compile (configs, shellscripts, proprietary software). This was quite a problem because most of the package ...
34
votes
2answers
89k 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 ...
34
votes
10answers
49k views

How to use a .iso image as a CD-ROM Repository?

I have all images of Debian, Ubuntu and Ubuntustudio as .iso. How can I use them as repository to install my desired packages with sudo apt-get install package-name? I easily mount the .iso file with ...
33
votes
4answers
6k views

What does apt-get install do under the hood?

What does the apt-get install ... command do? When I enter apt-get install ... command, there are some texts appearing on the screen, but that does not have enough information for me. I want to know ...
33
votes
3answers
38k 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?
32
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 ...
31
votes
4answers
23k 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 ...
30
votes
10answers
45k 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 ...
30
votes
5answers
28k views

“debconf: DbDriver ”config“: config.dat is locked by another process: Resource temporarily unavailable” while installing packages

I'm trying to install the flashybrid but when I enter the apt-get install flashybrid command, I get this error: root@user-desktop:/home/user# apt-get install flashybrid Reading package lists... Done ...
30
votes
5answers
122k 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? ...
30
votes
9answers
101k 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 ...
30
votes
8answers
44k 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 ...
30
votes
1answer
23k 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 ...
29
votes
3answers
21k views

What is nss-myhostname? And why is it not installable?

dmesg shows the line systemd-hostnamed[3964]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname! But sudo ...
29
votes
2answers
28k 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 ...
28
votes
2answers
12k 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 ...
28
votes
4answers
10k 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 ...
28
votes
2answers
25k 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 ...
27
votes
3answers
14k views

connecting to archive.ubuntu.com takes too long

I have a Ubuntu 11.10 server that I just installed fresh. Now if I try to do anything with apt-get, it tries to connect to archive.ubuntu.com .. It stays at [Connecting to archive.ubuntu.com ...
27
votes
2answers
5k 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 ...
27
votes
7answers
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 ...
27
votes
2answers
18k views

“method driver /usr/lib/apt/methods/https could not be found” update error

sudo apt-get update E: The method driver /usr/lib/apt/methods/https could not be found. michael@Ubuntu:~$ sudo apt-get clean michael@Ubuntu:~$ cd /var/lib/apt michael@Ubuntu:/var/lib/apt$ sudo mv ...
27
votes
3answers
9k 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
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 ...
26
votes
9answers
11k 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 ...
26
votes
6answers
56k 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 ...
26
votes
7answers
17k 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 ...
26
votes
1answer
28k views

How do I re-run boot loader?

Running sudo apt-get -f install said that The link /vmlinuz.old is a damaged link and: you may need to re-run your boot loader[grub] Here's the full output: user@chrubuntu:~$ sudo apt-get -f ...
26
votes
7answers
54k 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 ...
26
votes
3answers
2k 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 ...
26
votes
1answer
4k 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?
25
votes
8answers
2k 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? ...
25
votes
7answers
77k views

Installing and testing CUDA in Ubuntu 14.04

I am uncertain about how to install CUDA in my system. looking around there are many tutorials about cuda on 12.04 LTS and a few on 13.04 and 13.10, but they all talk about acquiring a deb package ...
25
votes
9answers
124k 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 ...
25
votes
1answer
803 views

How to make `apt-get upgrade` use less resources?

When I run sudo apt-get upgrade with a lot of packages on my low-end laptop, I get a perceptible system slowdown, sometimes with up to 3 second screen freezes. Is there any way to mark this job as ...
24
votes
5answers
2k views

Why does apt-get not require restarts, where the update manager does?

Oftentimes I try to ‘beat’ the update manager by opening a console and entering the sequence sudo apt-get update sudo apt-get upgrade which, to the best of my knowledge, should update all packages ...
24
votes
3answers
6k 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, ...
24
votes
2answers
31k 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 ...
24
votes
13answers
55k 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
49k 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 ...
23
votes
2answers
37k views

How to install suggested packages in apt-get

I know the question has been asked before, but please hear me out. So I wanted to install screenlets. I ran sudo apt-get install screenlets, and this is what I got: The following extra packages will ...
23
votes
3answers
13k views

dpkg --get-selections shows packages marked “deinstall”

Executing dpkg --get-selections shows packages with one of the markers install or deinstall. Some packages I could remove completely with apt-get remove. What does deinstall mean? What can be done ...
22
votes
3answers
4k 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 ...
22
votes
3answers
9k 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?
22
votes
2answers
50k 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 ...
22
votes
1answer
18k views

Make apt-get (or aptitude) run with -y but not prompt for replacement of configuration files?

When running apt-get -y install <packages ...> on Ubuntu 10.04 I would like apt-get (or aptitude if that makes it easier) to not prompt me when installing additional dependencies (behavior of -y ...
22
votes
2answers
587 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 ...