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
3.2m views

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
789k views

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
95k views

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
382k views

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 1.7.5.4 but on my ...
  • 42.4k
279 votes
16 answers
406k views

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
122k views

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
198k views

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
333k views

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
642k views

-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
431k views

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
146k views

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
124k views

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
113k views

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
169k views

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://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF Executing: /...
123 votes
5 answers
206k views

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
67k views

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
107k views

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
157k views

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
123k views

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
180k views

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 http://ftp.us.debian.org/debian/...
  • 239
73 votes
3 answers
133k views

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
52k views

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
118k views

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 http://ftp.br.debian.org/debian testing InRelease Ign:2 http://security.debian.org/debian-security testing/...
  • 1,696
62 votes
5 answers
138k views

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
116k views

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
58k views

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
52k views

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

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

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
157k views

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 'http://ftp.ca.debian.org/debian stretch/updates Release' does not ...
's user avatar
54 votes
13 answers
115k views

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 keyserver.ubuntu.com --recv-keys F88F6D313016330404F710FC9A2FD067A2E3EF7B the error is: gpg:...
53 votes
2 answers
90k views

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
184k views

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
37k views

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 http://mirror.optus.net/debian/ testing main contrib non-free versus deb-src http://mirror.optus....
  • 5,073
48 votes
2 answers
76k views

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
32k views

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
30k views

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
18k views

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
40k views

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
72k views

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
30k views

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
83k views

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
66k views

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
452k views

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
71k views

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
36k views

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
23k views

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
17k views

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
4k views

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
47k views

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
198k views

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 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease [30.5 kB] Err:1 ...
  • 407

1
2 3 4 5
61