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.
86
questions
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 ...
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 ...
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 ...
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 ...
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 &&...
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
...
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 ...
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 ...
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:
...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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-...
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 ...
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/...
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-...
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, ...
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?
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 ...
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?
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 ...
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.
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
$ ...
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 ...
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: ...
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 ...
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 ...
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,...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...