Questions tagged [apt]

For questions about the use, design, function etc. of APT (Advanced Packaging Tool), the standard software package management system for Debian and its derivatives.

Filter by
Sorted by
Tagged with
1072 votes
9 answers

How to install a deb file, by dpkg -i or by apt?

I have a deb package for installation. Shall I install by dpkg -i my.deb, or by apt? Will both handle the software dependency problem well? If by apt, how can I install from the deb by apt?
  • 92.7k
528 votes
7 answers

How do I check package version using apt-get / aptitude?

Before I install a package, I'd like to know what version I would get. How do I check the version before installing using apt-get or aptitude on Debian or Ubuntu?
's user avatar
328 votes
5 answers

What's the story behind Super Cow Powers?

As we know, apt-get has Super Cow Powers and aptitude does not: $ apt-get --help | grep -i cow This APT has Super Cow Powers. $ aptitude --help | grep -i cow ...
  • 104k
315 votes
5 answers

How can I update to a newer version of Git using apt-get?

I've just set up a new machine with Ubuntu Oneiric 11.10 and then run apt-get update apt-get upgrade apt-get install git Now if I run git --version it tells me I have git version but on my ...
  • 42.4k
279 votes
16 answers

List available updates but do not install them

I want my cron-run reporting script to notify me in case there are updates for my packages. Is the a way to make apt-get give me the list of available updates but don't do anything more?
  • 2,799
274 votes
10 answers

What is the real difference between "apt-get" and "aptitude"? (How about "wajig"?)

I know that both apt-get and aptitude are command line package management interfaces on Debian derived Linux, with different options, but I'm still somewhat confused. Under the hood, aren't they ...
  • 3,684
270 votes
8 answers

Convince apt-get *not* to use IPv6 method

The ISP I work at is setting up an internal IPv6 network in preparation for eventually connecting to the IPv6 internet. As a result, several of the servers in this network now try to connect to ...
  • 29.3k
167 votes
1 answer

How to apt-delete-repository? [duplicate]

I would like to run the reverse of this command to remove the non-compatible repository in Debian 8.1 sudo add-apt-repository -y ppa:nemh/systemback where the command add-apt-repository is in the ...
154 votes
4 answers

-bash: sudo: command not found

I am trying to deploy django app. When I print apt-get update I see W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (13: Permission denied) W: Unable to read /etc/apt/sources.list.d/ - ...
  • 1,707
154 votes
4 answers

How to add repository from shell in Debian?

In Ubuntu one can add a repository via following command - sudo add-apt-repository ppa:yannubuntu/boot-repair As Ubuntu is based on Debian code base, I was expecting that the same would work in ...
143 votes
4 answers

What is yum equivalent of 'apt-get update'?

Debian's apt-get update fetches and updates the package index. Because I'm used to this way of doing things, I was surprised to find that yum update does all that and upgrades the system. This made ...
  • 62.1k
132 votes
12 answers

List packages on an apt based system by installation date

How can I list installed packages by installation date? I need to do this on debian/ubuntu. Answers for other distributions would be nice as well. I installed a lot of stuff to compile a certain ...
130 votes
9 answers

Which installed software packages use the most disk space on Debian?

Disk space on my root partition is running low, so I want to delete some applications from the system. How can I see which software packages use the most disk space? Is it possible to view that from ...
128 votes
3 answers

gpg: keyserver receive failed: No dirmngr

While trying to receive keys in my Debian Stretch server, I get this error: sudo apt-key adv --keyserver hkp:// --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF Executing: /...
123 votes
5 answers

Unable to locate package `docker-ce` on a 64bit ubuntu

I'm trying to install Docker on a Ubuntu 64 machine following the official installation guide. Sadly Ubuntu seems it is not able to locate the docker-ce package. Any idea to fix it or at least to ...
  • 1,483
104 votes
5 answers

What does "The following packages have been kept back" mean?

When doing an apt-get upgrade I sometimes get a message saying "The following packages have been kept back". For example: $ sudo apt-get upgrade ...
96 votes
2 answers

Pacman option to assume "yes" to every question?

When installing software in debian systems we can put something like this: sudo apt-get install -y chromium-browser that way the installation occurs automatically, whitout asking to confirm ...
  • 1,101
93 votes
10 answers

How to work around "Release file expired" problem on a local mirror

I have a local mirror (created with debmirror), and when I run apt-get update after a few days, I get this: E: Release file expired, ignoring file:/home/wena/.repo_bin/dists/sid/Release (invalid ...
  • 62.1k
85 votes
5 answers

apt-get fails: The method driver /usr/lib/apt/methods/https could not be found

I tried to update my OS Debian jessie using the terminal and i get an error : “E: The method driver /usr/lib/apt/methods/https could not be found.” error? My sources.list : deb http://httpredir....
  • 59.3k
77 votes
7 answers

How to download package not install it with apt-get command?

sudo apt-get install pppoe will download pppoe package and install it. Is it possible to just download pppoe package and not install it with apt-get command? wget
  • 239
73 votes
3 answers

Can I rollback an apt-get upgrade if something goes wrong?

Is there a way, before starting an aptitude upgrade or apt-get upgrade, to set up something so that you can "easily" rollback your system to the "apt" state it was before the actual upgrade, if ...
  • 18.2k
64 votes
3 answers

How to undo sudo add-apt-repository?

I ran sudo add-apt-repository ppa:noobslab/indicators to install my-weather-indicator but it requires GTK3 and I don't want to proceed further. So I'd like to undo that command. I've checked my /etc/...
  • 2,341
64 votes
4 answers

Cannot update APT list: "repository no longer has a Release file"

I cannot run apt-get update as I encounter the following error: # apt-get update Hit:1 testing InRelease Ign:2 testing/...
  • 1,696
62 votes
5 answers

dpkg cannot find ldconfig/start-stop-daemon in the PATH variable

I was trying to install bsd-mailx utility the package got installed however I am wondering about the error. This is the error I get: Preconfiguring packages ... dpkg: warning: 'ldconfig' not found ...
  • 629
59 votes
4 answers

Unable to add gpg key with apt-key behind a proxy

Adding a gpg key via apt-key systematically fails since I've switched to Ubuntu 17.04 (I doubt it's directly related though). Example with Spotify's repo key: $ sudo apt-key adv --keyserver hkp://...
  • 751
57 votes
5 answers

Why is there no https transport for debian apt tool?

With all the paranoia that came with NSA revelations, I'm wondering why the Debian package installation mechanism does not support HTTPS for its transport, let alone use one by default. I know Debian ...
  • 1,123
57 votes
4 answers

Full-upgrade to Debian testing fails due to libc6-dev : Breaks: libgcc-8-dev

I've just switched to bullseye (see sources below) deb testing main contrib non-free deb-src testing main contrib non-free deb http://deb....
56 votes
4 answers

Should I use "apt-get remove" or "apt-get purge"?

For uninstalling an app (or package) should I use apt-get remove package-name or apt-get purge package-name? What is advantage of any of them to other one?
  • 775
55 votes
1 answer

Debian: The repository does not have a Release file

Whenever trying to install some programs from source, or specifically running apt update, I receive this message: E: The repository ' stretch/updates Release' does not ...
's user avatar
54 votes
13 answers

gpg: keyserver receive failed: Server indicated a failure

This error has arise when I add gns repository and try to use this command: #sudo apt-key adv --keyserver --recv-keys F88F6D313016330404F710FC9A2FD067A2E3EF7B the error is: gpg:...
53 votes
2 answers

clear apt-get list

I am building an image for an embedded Linux based on Debian. I did use apt-get update before on the device that I want to use as a base for that image, so the lists under /var/lib/apt/lists are quite ...
  • 1,870
53 votes
5 answers

What is Fedora's equivalent of 'apt-get purge'?

In Debian, there's at least two ways to delete a package: apt-get remove pkgname apt-get purge pkgname The first preserves system-wide config files (i.e. those found in "/etc"), while the second ...
  • 62.1k
52 votes
1 answer

The difference between deb versus deb-src in sources.list

I don't understand the difference between these two lines in my sources.list, please explain: deb testing main contrib non-free versus deb-src http://mirror.optus....
  • 5,073
48 votes
2 answers

Bypass GPG signature checks only for a single repository

I have read the following article: How do I bypass/ignore the gpg signature checks of apt? It outlines how to configure apt to not check the signatures of packages at all. However, I'd like to limit ...
  • 15.5k
48 votes
2 answers

Why apt madison?

A short while ago I asked this question - Does "apt-get -s upgrade" or some other apt command have an option to list the repositories the packages will be downloaded from?, about how to list ...
  • 6,857
46 votes
4 answers

How to prevent prompt that ask to restart services when installing libpq-dev

I want to install libpq-dev on my Vagrant machine. I install it with $ apt-get install -y libpq-dev During installation a prompt appears which asks if it's allowed to restart some services ...
  • 1,003
46 votes
1 answer

How does apt-get really work?

Okay, I understand how I may use apt-get {install|remove} mypackages and apt-get upgrade to install, upgrade, or remove binaries as well as their configuration data files and dependencies (actually, ...
  • 1,737
44 votes
5 answers

How to see package version without install?

I want to see the version of a package before I install it. How can I do this?
43 votes
5 answers

Make apt-get update and upgrade automate and unattended

I have about 7 Debian servers I manage, and I would like to set them to automatically update themselves. So, I created a script as such: #!/bin/sh apt-get update apt-get upgrade and placed it on the ...
43 votes
2 answers

How can I install more recent versions of software than what Debian provides?

Suppose I want a more recent version of software than is available for my current version of an operating system, what can I do? Cases to consider: There are semiofficial/official sources of ...
  • 33.7k
42 votes
2 answers

E: Unable to locate package vim on Debian jessie simplified Docker container

From inside a Debian docker container running jessie I get vi blah bash: vi: command not found so naturally I reach for my install command sudo apt-get install vim Reading package lists... Done ...
42 votes
3 answers

How do I install a single package from Debian testing or unstable on stable?

I want to install a single package (and its dependencies, but only to the extent those are not satisfiable in Wheezy) from Debian Jessie onto my Wheezy system, without upgrading "everything and the ...
  • 26.8k
41 votes
3 answers

Installing git "sudo: apt-get: command not found"

I am trying to install git. I run the following command: sudo apt-get install git-core git-gui git-doc But receive the following error: sudo: apt-get: command not found What should I do?
39 votes
1 answer

What's the difference between software update and upgrade?

Someone says "update" is for small changes and "upgrade" is for big changes. I am very much confused about software update and upgrade. And when I should use update vs. when I should use upgrade. ...
  • 2,197
39 votes
1 answer

understanding the output of "apt-cache policy"

I ran apt-cache policy sudo before and after installing sudo: before install: # apt-cache policy sudo sudo: Installed: (none) Candidate: 1.8.5p2-1+nmu1 Version table: 1.8.5p2-1+nmu1 0 ...
  • 6,708
38 votes
1 answer

apt-get install without debconf prompt

I would like to install chef via apt non-interactively, but by default, apt installation brings up this prompt: Is there a way to skip this step during installation or pass a value to apt install? I'...
  • 2,047
38 votes
2 answers

Is there an online/web interface to search and list apt-get packages and see summaries and recommendations?

I'm looking for sort of an 'app-store' or Google Play store type functionality for apt-get packages. What I'd really like to do is select a category, like 'Music' or 'Internet' and see the list of ...
  • 1,732
36 votes
2 answers

Why is apt-get the norm instead of apt?

Why do people use apt-get instead of apt? In nearly every tutorial I see, the suggestion is to use apt-get. apt is prettier (by default), shorter, and generally more intuitive. (apt-cache search vs ...
36 votes
5 answers

Debian - apt (not apt-get) autocompletion not working

I am on Debian Jessie 8.6. I noticed that apt-get gets the expected bash autocompletion when pressing tab for packages and command, but when trying to use it with apt it does not work. I remember ...
  • 501
34 votes
7 answers

Invalid signature for Kali Linux repositories : "The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository"

I cannot update my Kali Linux, when trying to execute apt-get update I get this error message: # apt-get update Get:1 kali-rolling InRelease [30.5 kB] Err:1 ...
  • 407

2 3 4 5