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.

Filter by
Sorted by
Tagged with
19 votes
10 answers
13k views

Managing upgrades on hundreds of Debian servers

What do you think are the best practices to maintain dozens (if not hundreds) of debian servers up-to-date ? Keeping in mind that : There are groups of servers (i.e identical webservers, DB Servers,...
Falken's user avatar
  • 1,742
18 votes
11 answers
7k views

Is it safe to run apt-get update every night?

Is it safe to run apt-get update -y through cron on a production server?
Miko's user avatar
  • 1,779
18 votes
4 answers
47k views

Unable to install mysql-server in Ubuntu

I am unable to install mysql-server on my ubuntu 9.10 server machine. When using apt-get install mysql-server the output is : # apt-get install mysql-server Reading package lists... Done Building ...
Arihant's user avatar
  • 191
18 votes
2 answers
19k views

How to version lock packages in Ubuntu? [duplicate]

On CentOS exists the yum versionlock option, where you can lock a package to a specific version, so it is never upgraded past that. I would like that puppet-server-2.7.19-1 puppet-2.7.19-1 stays on ...
Sandra's user avatar
  • 10.5k
17 votes
4 answers
6k views

apt: how to search using package tags?

Some (most?) packages in Debian, have tags. For example: =# apt-cache show squirrelmail | perl -lne 'print if /^Tag:/.../^\S/' Tag: implemented-in::php, interface::web, mail::imap, mail::smtp, mail::...
user avatar
17 votes
3 answers
3k views

How to install two packages that write the same file

I have two packages that each create /usr/bin/ffprobe. One of them is ffmpeg from the Deb Multimedia repository, while the other is ffmbc 0.7-rc5 built from source. The hand-rolled one is business-...
Joel E Salas's user avatar
  • 5,602
17 votes
4 answers
24k views

Debian: How to use "apt-get install" without upgrading dependencies?

I already have a package B and want to install a new package A. The installation wants to modify B, but I don't want that to happen. I need to install the package A. It has the a dependency on ...
victorgp's user avatar
  • 521
16 votes
5 answers
63k views

How to install nginx and install the configuration files too

I've just completely uninstalled nginx 1.0.6 from my server (Ubuntu 11.04) using apt-get remove nginx rm -rf /etc/nginx/ rm -rf /usr/sbin/nginx rm /usr/share/man/man1/nginx.1.gz apt-get remove ...
MacMac's user avatar
  • 2,131
16 votes
8 answers
84k views

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 ...
Blake Drumm's user avatar
16 votes
5 answers
22k views

How do I make a wildcard package search using apt-get?

With yum it was simple: yum list *xxx* but this does not work with apt-get. How can I do a search like this? Also, how do I see what package provides a specific command?
sorin's user avatar
  • 8,216
16 votes
4 answers
33k views

How to force downgrade of packages on Ubuntu (Karmic)?

After doing an update on a bunch of pulseaudio packages my microphone stopped working. It's fine, after all Karmic is still in Alpha. I have reported the bug to launchpad. In the meanwhile I would ...
amh's user avatar
  • 411
15 votes
5 answers
10k views

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 ...
ejunker's user avatar
  • 303
14 votes
2 answers
21k views

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 ...
Arunas Bart's user avatar
14 votes
3 answers
130k views

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 [email protected]'s password: Welcome to Ubuntu 11.04 (...
dukevin's user avatar
  • 1,630
14 votes
6 answers
46k views

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 ...
shevron's user avatar
  • 336
14 votes
5 answers
9k views

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's user avatar
14 votes
4 answers
33k views

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 ...
JP Silvashy's user avatar
  • 1,487
14 votes
3 answers
16k views

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 ...
Wolph's user avatar
  • 875
14 votes
3 answers
24k views

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 ...
james moore's user avatar
14 votes
3 answers
2k views

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 ...
Eric Platon's user avatar
13 votes
1 answer
3k views

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 ...
yannisf's user avatar
  • 587
13 votes
5 answers
12k views

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 ...
Humber's user avatar
  • 451
12 votes
1 answer
20k views

GPG error; The following signatures were invalid KEYEXPIRED [duplicate]

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 ...
Zhang LongQI's user avatar
12 votes
3 answers
8k views

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 ...
Amandasaurus's user avatar
  • 32.2k
12 votes
2 answers
21k views

Is it possible to search an apt repository via a web browser?

I've installed the beta version of Ubuntu 10.04 server edition (x64), but the system doesn't have an internet connection. Is there a way I can find out what packages are in the apt repository with ...
Bryan's user avatar
  • 7,658
12 votes
3 answers
9k views

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 /...
Ryan's user avatar
  • 5,981
11 votes
4 answers
27k views

Is adding the Debian repository to my apt source.list dangerous on Ubuntu? [closed]

I'm trying to install a package from a Debian repository. I am trying to install manually with dpkg errors because of missing or incomplete dependencies. This got me wondering, is it a mistake to just ...
Dane O'Connor's user avatar
11 votes
7 answers
11k views

How can I manage apt efficiently on multiple machines?

I manage around 30 Ubuntu servers using puppet. I've seen many references to cron-apt and apticron as approaches to keeping their packages up to date but I haven't been able to find a way to ...
Insyte's user avatar
  • 9,474
11 votes
1 answer
10k views

apt-get proxy for specific repos?

Please bear with me, I've searched as best I can with no apparent solutions. I'm behind my companies firewall, we have a couple of proxy servers that we can use to get out onto the big wide internet. ...
ticktockhouse's user avatar
11 votes
4 answers
27k views

apt-get install linux-image-extra getting "W: mdadm: /etc/mdadm/mdadm.conf defines no arrays."

When installing: sudo apt-get install \ linux-image-extra-$(uname -r) \ linux-image-extra-virtual I am getting: W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. I found that someone else ...
jnbdz's user avatar
  • 947
11 votes
3 answers
16k views

Vagrant/VirtualBox can't resolve some domains from w/in VM

Just trying out VirtualBox & Vagrant and my initial lucid64 VM can't resolve us.archive.ubuntu.com but can resolve security.ubuntu.com, google.com and www.apple.com (but not apple.com w/out the ...
Meltemi's user avatar
  • 579
11 votes
5 answers
70k views

Apt-Get Update Failing because of Certificate Validation

Using Ubuntu Focal fossa. I was trying to install a checkpoint ssl software for VPN, but seems like something messed up all my certificates. Now whenever I try sudo apt-get update I get the following ...
Della's user avatar
  • 215
10 votes
5 answers
32k views

Why does apt-get update tell me to run apt-get update?

So I have this going on: # apt-get update Get:1 http://ftp.us.debian.org etch Release.gpg [1032B] Hit http://ftp.us.debian.org etch Release ...
chaos's user avatar
  • 7,493
10 votes
4 answers
9k views

In Ubuntu Linux, how do I list packages installed from the “universe” repository?

On an Ubuntu 10.04 LTS server, I want to list installed packages and see what repository they come from. It’s easy to list installed packages, but it does not include the name of the repository (such ...
Nate's user avatar
  • 2,366
10 votes
4 answers
50k views

Enabling apt-get on a default Amazon EC2 instance which has yum installed

I'd like to call something like: sudo yum install apt to enable me to use apt-get as well as yum for installation. However this doesn't work. I get the following back: Loaded plugins: ...
Gaurav Sharma's user avatar
10 votes
5 answers
20k views

SSL connection hangs as client hello (curl, openssl client, apt-get, wget, everything)

I've run into a problem on my Debian VPS (a xen domU) regarding SSL. Namely almost all SSL connections hangs at client hello. For example: # curl -vI https://graph.facebook.com About to connect() to ...
Niklas B's user avatar
  • 421
10 votes
2 answers
9k views

How can I list all installed packages from lenny-backports?

In Debian or one of its derivatives, how can I list all packages which I have installed from lenny-backports? The closest I've come up with is: aptitude search ~i~Alenny-backports However, that ...
thomasrutter's user avatar
  • 2,577
10 votes
1 answer
3k views

apt-get install -t testing appX VS apt-get install appX/testing

I've been trying to understand the difference between these two commands and noticed that I get different results. apt-get install -t testing appX apt-get install appX/testing Background I setup my ...
eugenevd's user avatar
  • 419
10 votes
2 answers
5k views

Caching proxy for yum and debian repositories

Does a caching proxy for yum exist, similar to approx for Debian repositories? Is there a way to have reprepro behave the same as approx? I have heard that approx was not as stable; besides, I would ...
Sushant Jain's user avatar
9 votes
3 answers
6k views

Debian - "WARNING: untrusted versions of the following packages will be installed!"

When i try to install or update any packages I get: Untrusted packages could compromise your system's security. You should only proceed with the installation if you are certain that this is what you ...
user1794469's user avatar
9 votes
2 answers
31k views

Debian/Ubuntu is it possible to reinitialize /var/lib/apt/lists and /var/apt/cache after deleting them?

Is it possible to restore the functionality of /var/lib/apt/lists and /var/apt/cache after deleting them or minmizing them in some wa I am trying to shrink down an Ubuntu VM to the smallest size and ...
vfclists's user avatar
  • 1,652
9 votes
2 answers
1k views

How does debian/ubuntu knows a package has a updated version

If my understanding is good, with apt update, Debian download a release file and with this file, it can tell if a package needs to be upgraded and with which dependencies. How does it do this? Th ...
thomas's user avatar
  • 93
9 votes
3 answers
12k views

How to get automatic upgrades to work on Ubuntu Server?

I followed the documentation for enabling automatic upgrades in Ubuntu servers, but it's not really updating anything at all. My /etc/apt/apt.conf.d/50unattended-upgrades looks almost like the ...
Pablo Fernandez's user avatar
9 votes
1 answer
12k views

Install imagemagick with jpeg support from ubuntu packages

I installed libjpeg62 and imagemagick on my ubuntu 10.04 (lucid). Running identify command with a gif works but running it with a jpeg produces this error: identify: no decode delegate for this ...
mmarschall's user avatar
9 votes
3 answers
12k views

How to install packages with APT without user interaction?

I have a script that downloads and replaces kernel headers in Debian squeeze. function fixHeaders(){ #Replace the kernel headers from OVH with standard kernel headers... aptitude -y install ...
에이바's user avatar
  • 662
9 votes
3 answers
18k views

How to cleanup /usr/lib/modules and /usr/lib/x86_64-linux-gnu?

I executed the command apt autoremove but those folders persist. As the command "du -h -x --max-depth=1 /usr/lib | sort -hr | head -n 10" showed me, they are currently using almost 1G each: ...
Raul Chiarella's user avatar
9 votes
4 answers
7k views

Debian - What to do when upgrading packages and a config file has changes?

I'm new to system administration and I'm helping admin a server for a student group. I was wondering, what is the best practice for when you're upgrading packages and a config file has changes. I've ...
Ibrahim's user avatar
  • 394
9 votes
1 answer
4k views

how to get the list of packages present in apt-get autoremove

I know I have some packages ready to be removed if I run apt-get autoremove, but I just want to know which they are, without removing them. How can I list what would be removed without removing them? ...
Luca Borrione's user avatar
9 votes
4 answers
12k views

best way to install package from wheezy on squeeze

I want to use doxygen on my Debian Squeeze server, but I need the version from Debian Wheezy because this apparently contains the bugfix I need. It's not in backports -- check packages.debian.org/...
artfulrobot's user avatar
  • 3,089
9 votes
1 answer
2k views

How to make `needrestart` not defer restarting some services

With unattended-upgrades duly set up to automatically do upgrades, reboots and all, I'm stumped to find output like this in its daily report sometimes: ... Restarting services... /etc/needrestart/...
cueedee's user avatar
  • 225

1
2
3 4 5
24