Questions tagged [apt]

APT is short for 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 commands should use this tag.

APT uses dpkg (Debian package management system) as a backend. APT downloads the package list, keeps track of all packages installed, solves dependencies and removes unnecessary packages. It also allows you to query the cache, upgrade packages, manage packages from multiple repositories, etc.

APT consists of a generic apt command, and several specialized subcommands:

  • apt: generic command line interface of apt, available from apt 1.0 (Ubuntu 14.04). Includes the functionality (in some cases limited) of several other utilities.
  • apt-get: the default package handling utility
  • apt-cache: query the apt cache
  • apt-key: manage the different GPG keys for repositories
  • apt-mark: to mark specific packages as automatically or manually installed
  • apt-config: to manage APT configuration.
  • apt-cdrom: manage CD-ROM entries

Questions about editing or configuring APT itself using the files in the directory /etc/apt (e.g. pinning) and questions about other directories that are also related to APT, and the usage of the different APT APIs, calls and libraries, like python-apt should all be tagged with .

There are other front ends for most of the functions of the commands included in the apt package, and each of these should be referred to by their own tag. The most common examples are: and .

The Debian wiki page for apt.

18114 questions
8
votes
2 answers

How does APT choose the specific package to install in order to provide a virtual package needed as a dependency?

For example, awk is a virtual package provided by original-awk , mawk and gawk . Trying to install it directly yields: Reading package lists... Done Building dependency tree Reading state information... Done Package awk is a virtual package provided…
kos
  • 41,748
8
votes
4 answers

debuild - secret key not available (someone elses key)

I'm trying to build cairo with debuild. I get to the end and this message: gpg: skipped "Robert Ancell <robert.ancell@canonical.com>": secret key not available Since I'm not Robert Ancell, this makes sense - how do I make it use my own key ? gpg…
8
votes
1 answer

apt-get install python-xxx vs pip install

I'm still trying to understand this problem I'm having and have read a ton of posts regarding sudo apt-get install python-XXX vs pip install , and I understand the jist of it (apt-get is a package repo, managed by completely different group of…
memo
  • 341
8
votes
3 answers

APT - how to install recommended packages after installing with --no-install-recommends switch?

I installed a few packages with APT using apt-get . I used the --no-install-recommends switch with it to save some disk space. Now I need to know: how do I install the recommended packages for the already installed programs?
Eduardo Cola
  • 5,906
8
votes
3 answers

apt document containing list of installable packages

Is there online a textual (simple text, HTML, pdf...), updated document where it is listed all the software I can install using apt-get install ?
user492815
8
votes
1 answer

Finding packages for TexLive

I installed TexStudio with this command: sudo apt-get install texstudio Now I need to install some packages like amsmath and amsfonts . I typed in: sudo apt-get install texlive-<\t> but I get hundred of proposals, I don't know which one to install…
eDeviser
  • 2,189
8
votes
1 answer

Can't install libpng-dev

I use Ubuntu 15.10 64-bit. When I run sudo apt-get install libpng-dev the console prints Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libpng12-dev' instead of 'libpng-dev' Some packages…
8
votes
1 answer

could you possibly install a malicious program using apt-get?

While installing various programs, I get asked to download some packages that are required for it to work. Some of them are well known applications, where the read-me document is trustworthy whereas some other lesser known programs are the ones…
Harsha
  • 508
  • 1
  • 7
  • 18
8
votes
4 answers

15.10 Steam Installation Doesn't Work

I tried installing Steam on a new installation of Ubuntu alongside Windows 7. I forgot to adjust the size of the partition after the installation so I had a pretty low amount of disk space. In the middle of installing steam I got an error message…
Max Kulik
  • 538
8
votes
0 answers

Unable to find OpenCV during linking (compile from source)

I am trying to compile qgifer-0.2.1-source from its source in Ubuntu. I have all the dependencies installed. I am compiling as per below instruction from README of the source. cd qgifer_source_dir mkdir build && cd build cmake ..…
Arindam
  • 106
8
votes
1 answer

Dependency problems when updating gcc-4.9-base (and similar) packages

I normally check for updates myself, just to be sure that I have the latest everything. When I went to check for updates again today, nothing appeared in the list! So I click Install Now anyway. Software Updater gives me the following error: Package…
user454723
8
votes
3 answers

Dependency errors when trying to install VirtualBox 5.0 on 15.10

I am running Ubuntu GNOME 15.10 with GNOME 3.18 and I am trying to install VirtualBox 5.0 on my system, I have followed all the instructions in the Debian-based Linux distributions installation section here , however when I now try to actually…
user364819
8
votes
4 answers

How to discover the package a utility belongs to

I installed CUDA using the official .deb form the NVIDIA homepage. But I ran into some trubles and wanted to redo the installation to ensure that every step along the way worked as expected. Thus I 'apt-get purge cuda...' But now I still have nvcc…
Sim
  • 296
8
votes
3 answers

Where / which is the actual kernel source?

I am following this to learn to compile the kernel. I used apt-get source linux-image-$(uname -r) to download the source code of the Linux kernel I am curretly using. After running the above command, the following files (and directories) were…
sps
  • 457
8
votes
2 answers

apt-get update cannot connect to server

I try to get update on my Ubuntu 15.04 but if failed to connect to server me@me:~$ sudo apt-get update Err http://archive.ubuntu.com vivid InRelease Err http://archive.ubuntu.com vivid-updates InRelease Err http://archive.ubuntu.com vivid-backports…
1 2 3
…
99
100