Questions tagged [apt]

APT, the Advanced Packaging Tool, is Debian's high-level package management system. It is also used by several other Linux-based and Debian-based operating systems.

The Advanced Packaging Tool, or APT, is a free user interface that works with core libraries to handle the installation and removal of software on the Debian GNU/Linux distribution and its variants. APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages, either from binary files or by compiling source code.

1137 questions
15
votes
7 answers

Unable to run `apt update` on Ubuntu 21.10

I am experiencing the following error when running apt update which is causing me to be unable to update the Ubuntu server. ~$ sudo apt update Ign:1 http://security.ubuntu.com/ubuntu impish-security InRelease Err:2 http://security.ubuntu.com/ubuntu…
Blake Drumm
  • 167
  • 1
  • 1
  • 8
14
votes
4 answers

installing msttcorefonts on ubuntu

I'm generating PDF's with something called PrinceXML, it seems it requires a package called: msttcorefonts I have been unable to use aptitude to get it and I recived this as an error: $ sudo apt-get install msttcorefonts Reading package lists...…
JP Silvashy
  • 1,447
  • 6
  • 24
  • 30
14
votes
3 answers

SSH session never closes when executing "apt-get install"

Problem When running apt-get install in an non-interactive SSH session, the session never closes. Example: ssh user@target "sudo apt-get -y install my_package" The my_package does get installed properly, but the SSH session just dangles…
Eric Platon
  • 367
  • 2
  • 14
14
votes
3 answers

apt-get cannot connect “failure resolving 'archive.ubuntu.com'”

Just got a new VPS running Ubuntu 11.04 and tried to update it. I got this error. I get the same error whenever using apt-get login as: root root@199.193.248.80's password: Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-generic-pae i686) *…
dukevin
  • 1,630
  • 3
  • 18
  • 25
14
votes
3 answers

How do I ask apt-get to skip all post-install configuration steps?

When installing some packages (like RabbitMQ) on Debian/Ubuntu machines, the post-install step defaults to starting the service. While this is great in most cases, in some cases (when you already have a service running on the needed port for…
Wolph
  • 865
  • 1
  • 7
  • 12
14
votes
5 answers

How do I find the package that contains a given program on Ubuntu?

Frequently I know the name of the command line program that I need but I don't know the name of the package that provides the program. How do I find the name of the package that contains the program that I need? On RPM based systems they have the…
ejunker
  • 293
  • 5
  • 11
14
votes
3 answers

Ubuntu dpkg, non interactive installation

I am trying to install a bunch of .deb files without having to interact with them. MySQL Server for example will prompt for an interactive menu to enter an administrative password upon the dpkg's configuration. I have tried. export…
james moore
  • 219
  • 1
  • 3
  • 7
14
votes
2 answers

After upgrade from Debian 10 Buster to Debian 11 Bullseye security updates 404 not found

Doing recommended upgrade path, TL;DR: Backup data, then apt update apt upgrade apt dist-upgrade reboot Also disable all non main stream packages if any. Then preparing APT for new distribution: sudo sed -i 's/buster/bullseye/g'…
Arunas Bartisius
  • 709
  • 1
  • 7
  • 13
13
votes
1 answer

Upgrading openssh-server within an ssh session

Suppose that you issue apt-get upgrade from an ssh session and one of the packages to be upgraded is openssh-server. Is the new sshd process restarted after the upgrade? If yes how is the session maintained? If not, should I explicitly restart it…
yannisf
  • 577
  • 2
  • 6
  • 15
13
votes
5 answers

How do I get a list of packages that "Provides" something" using dpkg?

I see that dpkg has a "Provides" field for packages. $ apt-cache show vim-tiny | grep Provides Provides: editor $ How do I know which packages provide i.e. "editor"?
Janus Troelsen
  • 1,114
  • 1
  • 8
  • 18
13
votes
6 answers

Using a self-signed SSL cert for an HTTPS-based internal APT repository

I've set up a Debian repository (Ubuntu actually) for internal use with some private packages, and now want to make it available over the web to some specific servers. I would like apt-get / aptitude to connect to it using HTTPS, and because I don't…
shevron
  • 326
  • 2
  • 4
  • 10
13
votes
5 answers

Securely restrict access to a private Debian repository

I was looking for a method to restrict access to a private Debian repository and be able to authenticate to it non-interactively (i.e. using a script) The most useful article I found if actually one from Debian administration site but the secure…
Humber
  • 451
  • 3
  • 7
  • 17
12
votes
3 answers

How can I limit the bandwidth of apt-mirror?

I need to make a once off mirror of all the Ubuntu apt repository (for the record it's because I'm sending it to Kenya (see here and here). I did it before and used apt-mirror, and that does exactly what I want. However now I want to do it slowly,…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
12
votes
1 answer

GPG error; The following signatures were invalid KEYEXPIRED

sudo apt-get update get this error: W: GPG error: http://debian.datastax.com stable Release: The following signatures were invalid: KEYEXPIRED 1439480363 KEYEXPIRED 1439480363 KEYEXPIRED 1439480363 even after use --fix-missing, still have the same…
Zhang LongQI
  • 509
  • 1
  • 4
  • 8
12
votes
3 answers

Prevent apt-check from eating all my memory

On Ubuntu 12.04 LTS, with server of 512MB RAM, the apt-check is using up to 250 memory and cause my system to un-usable every night, e.g. ps ax | grep apt 14895 ? DN 0:02 /usr/bin/python /usr/lib/update-notifier/apt-check…
Ryan
  • 5,831
  • 24
  • 72
  • 91