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
1 answer

apt-get is trying to install when doing a remove --purge

I'm trying to remove a package using sudo apt-get remove --purge ka-lite but when I run that command, it tries to download and install another package instead of removing the one I'm asking for. Any idea why that happens or how to remove only the…
jinchuika
  • 183
  • 1
  • 7
8
votes
2 answers

apt-get - where are the sources stored?

I was trying to update apt-get and I keep getting 404 errors - I assumed it was the fault of my proxy, which has been causing errors in wget and in the browser, but upon visiting one of the links that reported an error, I found that it was trying to…
user3475234
  • 289
  • 1
  • 5
  • 12
8
votes
1 answer

Turning off SSL certificate check when adding PPAs

I'm on an enterprise network where my traffic is man-in-the-middled. With pip I'm able to do --no-check-certificate . How can I do this for adding PPAs?
8
votes
2 answers

timeout errors in apt-get update/install

I'm trying to do an apt-get update or apt-get install xyz and I'm seeing timeouts like this: W: Failed to fetch http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg Unable to connect to…
David Parks
  • 2,616
8
votes
3 answers

apt-get removed, how to reinstall it?

I have accidentally removed apt-get, how do I reinstall it? $ sudo apt-get update sudo: apt-get: command not found $ sudo dpkg-reconfigure apt /usr/sbin/dpkg-reconfigure: apt is broken or not fully installed I would like to mention I do not want to…
8
votes
1 answer

Vivid apt-get update huge Package files in /var/lib/apt/lists/partial

ls -Ssh /var/lib/apt/lists/partial | head total 88G 46G security.ubuntu.com_ubuntu_dists_vivid-security_main_binary-amd64_Packages.bz2 42G us.archive.ubuntu.com_ubuntu_dists_vivid-updates_main_binary-i386_Packages.bz2 I tried bunzipping and got…
8
votes
1 answer

VLC will not install in Ubuntu 15.04

VLC was working fine until I upgraded to 15.04. When I try to install via Software Centre, I get this error message: The following packages have unmet dependencies: vlc: Depends: vlc-nox (= 2.2.0-1) but 2.2.0+ppa2.4 is to be installed Depends:…
paulj
  • 83
8
votes
2 answers

How to remove MySql apt repo

I was trying to install MySql on my system running Ubuntu 14.04. So I added a MySql apt from the link Steps to fresh install MySql . After running into a lot of trouble and realizing apt uses libs not supported by Ubuntu 14.04, I was advised to…
neo.one
  • 155
8
votes
1 answer

What layout/files should debian repository have?

I'm java developer. My goal is to wrap my objects into deb files / upload them to a private repository and install them from this repository. So my questions are: Is Debian repository just an HTTP file storage that fulfill some specific rules? What…
8
votes
3 answers

Problem installing apache 2 in ubuntu 14.04: dpkg:- error processing package javascript-common (--configure):

I was trying to reinstall my apache 2 after un-installing it. But on installing it using command- sudo apt-get install apache2 i am getting error- rahul@rahulpc:~$ sudo apt-get install apache2 [sudo] password for rahul: Reading package lists... Done…
8
votes
1 answer

apt-get cannot install specific version listed in apt-cache policy

I'm trying to install a particular version of redis-server from a third-party repo using apt-get, that's listed in apt-cache policy, but cannot be installed. For example: $ apt-cache policy redis-server redis-server: Installed: (none) Candidate:…
8
votes
2 answers

Ubuntu 14.04 Installation of libdrm-dev

I am trying to install mesa-common-dev ( sudo apt-get install mesa-common-dev ), however I get the following message: mesa-common-dev: Depends: libdrm-dev(>= 2.4.52) but will not be installed. So, when I tried to install libdrm-dev , I get the…
8
votes
1 answer

Why shouldn't I use apt-get install --qq without a no-action modifier?

From man apt-get : Note that quiet level 2 implies -y ; you should never use -qq without a no-action modifier such as -d , --print-uris or -s as APT may decide to do something you did not expect. Those options all, as suggested, don't actually…
8
votes
2 answers

Issue with apt-get install

I want to install Bugzilla on Ubuntu 14 version . in order to do so I have to install the following packages apt-get install libappconfig-perl libdate-calc-perl libtemplate-perl libmime-perl build-essential libdatetime-timezone-perl libdatetime-perl…
8
votes
3 answers

How do you remove old kernels from the terminal

I have been going through various questions about how to clean up old Linux kernels. They all seem to have different answers and they are old, so someone is bound to say the question is too old and start a new post, so here it is: I want to do all…
JamesH
  • 202
1 2 3
…
99
100