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
204 votes
3 answers
178k views

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

I have a server build script which uses apt-get to install packages. It then puts pre-written configuration files directly in place, so the interactive post-install configuration dialog in packages ...
jl6's user avatar
  • 2,635
3 votes
2 answers
2k views

PCI Compliance: install Apache 2.4.17 on Ubuntu 14.04.3?

I have a VPS running Ubuntu 14.04.3. The latest Ubuntu-supported version of Apache for this release is Apache 2.4.7. But the company for which I configured the server is seeking PCI compliance, and ...
user548958's user avatar
38 votes
2 answers
18k views

Can someone clarify Ubuntu (Debian) dist-upgrade for me?

I've got an Ubuntu 8.04 LTS server. There are several packages which are "kept back" ("the following updates have been kept back") when I do an apt-get upgrade. It's my understanding that I can do ...
Boden's user avatar
  • 5,008
138 votes
13 answers
310k views

How do I get apt-get to ignore some dependencies?

How do I make apt-get ignore some dependencies? For example, I wanted to install mailx so I can use it to send email from cron scripts/report-generating tools. However, installing mailx also installs ...
FrancisV's user avatar
  • 1,776
38 votes
7 answers
66k views

Linux: how to restore config file using apt-get/aptitude?

I've occasionally lost my config file "/etc/mysql/my.cnf", and want to restore it. The file belongs to package mysql-common which is needed for some vital functionality so I can't just purge &&...
kolypto's user avatar
  • 11.2k
25 votes
2 answers
31k views

Automatically keep current version of config files when apt-get install

I need to automatically install a package with its config file already present on the server. I'm looking for something like: apt-get install --yes --force-yes --keep-current-confs mysql-server ...
Falken's user avatar
  • 1,742
24 votes
3 answers
56k views

apt-get update getting 404 on debian lenny

Here is my /etc/apt/sources.list ###### Debian Main Repos deb http://ftp.us.debian.org/debian/ lenny main contrib non-free ###### Debian Update Repos deb http://security.debian.org/ lenny/updates ...
JoelFan's user avatar
  • 2,335
24 votes
4 answers
18k views

Disable prompts while installing a Debian package

How can i disable totally the prompts that appear while installing a Debian package, i've used all the options that i've found but there are some packages that are still prompting. I'm using this ...
victorgp's user avatar
  • 531
8 votes
4 answers
2k views

How do I tell apt to never upgrade a particular package?

I prefer to install my own version of Firefox. How can I tell apt to never attempt to upgrade it, even if i type "apt-get update ; apt-get upgrade" later? Edit: Okay, so dpkg -l firefox prints this: ...
mike's user avatar
  • 4,013
84 votes
4 answers
46k views

Automate the installation of postfix on Ubuntu

My system configuration script does an apt-get install -y postfix. Unfortunately the script is halted when the postfix installer displays a configuration screen. Is there a method to force postfix to ...
sutch's user avatar
  • 1,026
55 votes
5 answers
58k views

How do I show the actions that installing a .deb package will take?

I would like to be able to view the scripts/triggers associated with a package due for upgrade so that I can tell, for example, whether it will result in the web server being restarted. I can't find ...
Sam Brightman's user avatar
49 votes
4 answers
114k views

Installing optional Nginx modules with apt-get

I currently have Nginx installed via the instructions on the Nginx site: nginx=stable sudo su - add-apt-repository ppa:nginx/$nginx apt-get update apt-get install I have configured Nginx and it has ...
Michelle Tilley's user avatar
42 votes
12 answers
37k views

Find last time update was performed with apt-get

I need to find the last time that the apt-get update command was run on my server. How can I determine this information?
Mark Roddy'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
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
8 votes
4 answers
17k views

apt-get update mdadm scary warnings

Just ran an apt-get update on one of my dedicated servers to be left with a relatively scary warning: Processing triggers for initramfs-tools ... update-initramfs: Generating /boot/initrd.img-2.6.26-...
user568829's user avatar
5 votes
2 answers
17k views

How to completely remove a package in Debian?

I tried to use this: aptitude remove denyhosts And it seemed successfully but after a reboot after I use: ps aux | grep "denyhosts" I see denyhosts is still loaded after startup. So what am I ...
datasn.io's user avatar
  • 279
4 votes
2 answers
1k views

How do I install a package from Ubuntu Karmic onto Jaunty?

I'd like to know if the following is easy/possible/recommended. The version of Ubuntu I'm using (jaunty) has an out of date package that I need to upgrade: http://packages.ubuntu.com/jaunty/...
Tom's user avatar
  • 2,662
3 votes
2 answers
975 views

How to install package version that was removed from backports?

There is only one version of the libreoffice package in Debian Squeeze Backports: apt-cache madison libreoffice libreoffice | 1:3.5.4-7~bpo60+1 | http://backports.debian.org/debian-backports/ squeeze-...
Max Romanovsky's user avatar
2 votes
1 answer
2k views

How do I answer apt installation questions non-interactively?

Some packages ask configuration questions when installed with apt-get. That makes life awkward when I want to install something non-interactively. How do I find out what questions a package will ask, ...
Andrew's user avatar
  • 1,174
164 votes
6 answers
226k views

List of files installed from apt package

How do I get a list of files that were or will-be installed when I apt-get a package? Conversely, can I find what package(s) caused a particular file to be installed?
David Nehme's user avatar
  • 2,156
135 votes
9 answers
172k views

How do I get the history of "apt-get install" on Ubuntu?

I am about do move a server from one Ubuntu box to another. I'm not cloning the old box to the new; I'm creating a new system and will move data as needed. I want to install all the software that I ...
Paul Hoffman's user avatar
  • 2,274
106 votes
6 answers
130k views

list all packages from a repository in ubuntu / debian

is there a command to see what packages are available from a certain ppa repository?
opensas's user avatar
  • 1,191
83 votes
1 answer
49k views

What does "debconf: delaying package configuration, since apt-utils is not installed" mean?

I have just installed Debian and I was just installing some packages using apt-get instal when I saw this message: debconf: delaying package configuration, since apt-utils is not installed What does ...
David's user avatar
  • 1,077
70 votes
3 answers
269k views

How do I enable non-free packages on Debian?

How can I enable non-free packages on Debian? I want to install Sun's Java JDK but it's not available to me.
Quiffner's user avatar
  • 703
62 votes
5 answers
85k views

How do you use apt-get to only install critical security updates on ubuntu?

How do you use apt-get to only install critical security updates on ubuntu? We'd like to only upgrade packages that need to be upgraded for security reasons, without upgrading all other packages.
readonly's user avatar
  • 3,429
60 votes
7 answers
33k views

Given a debian source package - How do I install the build-deps?

I have a debian (well technically ubuntu) source package, i.e. the .dsc, the .tar.gz, etc., I want to build this. The dpkg-buildpackage fails, since I don't have all the build dependencies. Normally ...
Amandasaurus's user avatar
  • 32.3k
51 votes
14 answers
74k views

Is there any way to get APT to install packages to my home directory?

Is there any way to get APT to install packages to my home directory? I don't want to make changes system wide. Alternatively, are there any home-directory based linux package managers?
48 votes
5 answers
29k views

100% non-interactive Debian dist-upgrade

Is there a way to do an apt-get dist-upgrade in Debian that not only automatically answers "yes" to all questions asked, but also uses reasonable defaults as answers to questions that are ...
Alex Balashov's user avatar
45 votes
4 answers
135k views

apt-get update/upgrade list without changing anything

I would like to view what packages are available for update/upgrade without actually changing any files becuase there are some packages I wouldn't like to update. Would it then be possible to apt-get ...
John Magnolia's user avatar
30 votes
4 answers
69k views

Cannot install openjdk-8-jre-headless on Debian Jessie

This Friday I saw that I had 2 held back packages for some reason when I ran apt-get upgrade, so naturally I did what any inexperienced sysadmin would do and uninstalled the packages in the hopes that ...
SeinopSys's user avatar
  • 532
28 votes
4 answers
54k views

How do I get apt-get to reinstall a package and run the set up scripts?

So I installed mailutils (apt-get install mailutils) and when I did a nice little setup screen popped up and started asking me questions. I guess I screwed up and cancelled out before I had all the ...
Showcaselfloyd's user avatar
26 votes
12 answers
79k views

dpkg: warning: files list file for package 'x' missing

I get this warning for several packages every time I install any package or perform apt-get upgrade. Not sure what is causing it; it's a fresh Debian install on my OpenVZ server and I haven't changed ...
Mark's user avatar
  • 367
25 votes
6 answers
24k views

Running apt-get autoremove with ansible

I maintain a flock of EC2 servers with ansible. The servers are regularly updates and upgraded using the apt module. When I manually tried to upgrade a server, I received the following message: $ ...
Adam Matan's user avatar
  • 13.6k
20 votes
3 answers
49k views

wheezy-updates on archive.debian.org returns 404 Not Found

I have an old test machine on Debian Wheezy that I can't really update right now. Debian Wheezy repositories were archived in February. So I want ahead, and updated my /etc/apt/sources.list from deb ...
Zoddo's user avatar
  • 304
20 votes
2 answers
33k views

Debian/Ubuntu - How to restore /var/cache/apt structure after deleting it?

I was running out of space on an Ubuntu server, so I did this command to save space sudo rm -rf /var/cache/apt/archives However now when trying to do things with apt, I get the following errors: E: ...
Amandasaurus's user avatar
  • 32.3k
20 votes
8 answers
79k views

Debian. How can I securely get debian-archive-keyring, so that I can do an apt-get update? NO_PUBKEY

I have a catch 22 trying to: # apt-get update [... good lines omitted] W: GPG error: http://backports.debian.org lenny-backports Release: The following signatures couldn't be verified because ...
David Bullock's user avatar
19 votes
4 answers
48k views

Debian 5.0 (lenny) apt sources fail?

For the past few days, I couldn't update our apt-sources on Debian 5.0 (lenny). I get the following errors. W: Failed to fetch http://ftp.debian.org/debian/dists/lenny/main/binary-amd64/Packages 404 ...
trnc's user avatar
  • 698
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
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
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
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
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
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
5 answers
71k 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
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
6 votes
2 answers
11k views

Can reprepro accept a new version of a package into the repository?

I have installed a package into my own debian package repository like so: $ sudo reprepro -b /var/packages/ubuntu includedeb maverick my-package_0.8-0_all.deb my-package_0.8-0_all.deb: component ...
kai's user avatar
  • 164
6 votes
5 answers
5k views

Disable/Remove Apt(-get)

Is there anyway to disable/remove apt-get on a debian based server. I'd prefer to use aptitude, and don't want the other users to be installing packages with apt-get, to avoid package/database issues.
DeadlyCreampuff's user avatar
5 votes
2 answers
896 views

Should I install MongoDB using Ubuntu's repository or MongoDB's private repository?

I was reading the MongoDB install instructions and noticed they have a private repository that the instructions tell you to add. I'm wondering if this is really needed because MongoDB is also in the ...
Sean Bannister's user avatar
5 votes
3 answers
582 views

MySQL package upgrades (Debian apt-get) always break master-master replication due to changes in mysql schema

I have master-master replication set up on 2 Debian servers, and they replicate everything, including the mysql database itself (so that new users and such also replicate). This generally works very ...
dlo's user avatar
  • 471