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
177k 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
164 votes
6 answers
224k 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
146 votes
3 answers
53k views

How to remove the "installed manually" flag and revert to "automatically installed" with apt-get?

To compile something, I needed the zlib1g-dev package to be installed so I launched an apt-get install zlib1g-dev. apt-get informed me nicely that the package was already auto-installed because of ...
Steve Schnepp's user avatar
138 votes
13 answers
309k 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
135 votes
9 answers
171k 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
97 votes
4 answers
57k views

dpkg-reconfigure: unable to re-open stdin: No file or directory

I am building a provisioning script for a ubuntu vagrant vm, on a ubuntu host, both 12.10 64bit When installing the following packages: sudo apt-get -y install php5-xsl graphviz php-pear unison I ...
Daithí's user avatar
  • 1,363
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
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
77 votes
3 answers
66k views

What does -qq argument for apt-get mean?

I just received a Vagrantfile and post install bash script. The vagrantfile downloads standard Ubuntu from Ubuntu Cloud but I found something in the bash script. Few lines of script reads as: apt-...
user avatar
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
63 votes
11 answers
17k views

How Often Should I Update our Linux Server?

I am responsible for managing both our production server (mail, web, database are all on one server) and our test server. Both are built on Debian. However as I am very new to system administration, I ...
Noah Goodrich's user avatar
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,419
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.2k
57 votes
2 answers
94k views

Ubuntu Server message says packages can be updated, but apt-get does not update any [duplicate]

Possible Duplicate: updates in amazon-ec2 ubuntu 10.04 server When I log into an Ubuntu 10.04.2 LTS server, I see the message: 42 packages can be updated. 18 updates are security updates. But ...
Mike T's user avatar
  • 751
55 votes
5 answers
57k 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
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?
49 votes
4 answers
113k 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
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
42 votes
3 answers
38k views

Passing default answers to apt-get package install questions?

I'm trying to write a configuration script for new servers, and one of the first steps is to install a series of required packages, such as MySQL, phpMyAdmin, etc. using apt-get install However, when ...
Tarka's user avatar
  • 525
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
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
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
37 votes
4 answers
43k views

How do I see the changelog for a debian/ubuntu deb package?

I'm running Ubuntu and I have a deb file installed. I've made deb packages before, so I know there is a debian changelog (debchange). Is there anyway to see the debian changelog for any package that I ...
Amandasaurus's user avatar
  • 32.2k
36 votes
2 answers
64k views

yum equivalent to apt-get upgrade vs apt-get dist-upgrade?

I'm a *.deb guy and I feel quite uncomfortable while managing rpms. I'm used to run apt-get upgrade in my debian based servers for "normal" upgrades and apt-get dist-upgrade for allowing kernel ...
hmontoliu's user avatar
  • 3,793
36 votes
2 answers
110k views

How to disable "WARNING: apt does not have a stable CLI interface..." [closed]

I'm trying to write a script which will output the number of upgrade-able packages from apt. However it keeps giving me this warning with it also: # sudo apt update | grep packages | cut -d '.' -f 1 ...
CorruptComputer's user avatar
31 votes
11 answers
70k views

How to get a list of security updates on the command line in Debian/Ubuntu

In the GUI tool you can get a list packages with security updates. Can this be done on the command line in Debian or Ubuntu? Normally I might use "apt-get upgrade" which would show me what is being ...
Stephen Paulger'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
30 votes
2 answers
27k views

How to automate changed config files during apt-get upgrade in Ubuntu 12

I like to use "knife cloudstack server create ..." to build a new VM. My bootstrap template starts off with an "apt-get update" and "apt-get -y upgrade". The upgrade then halts with: 10.190.113.11 ...
Mojo's user avatar
  • 965
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
27 votes
9 answers
44k views

How to Undo apt-get remove?

I know it is funny situation but i removed python with all associated programs from Ubuntu using sudo apt-get remove python? Obviously i can install back python, but it will take me a lot of time to ...
IgorDiy's user avatar
  • 457
27 votes
4 answers
34k views

How to tell which Ubuntu package a tool is in

As a concrete example I want to be able to take a particular tool that isn't installed (say nslookup) and be able to tell which package I need to install when the following fails: apt-get install ...
ErebusBat's user avatar
  • 935
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
2 answers
30k 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
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.5k
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
23 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
  • 521
22 votes
2 answers
5k views

How to find files in a Debian system not installed or created by dpkg?

I've installed some things manually in the past and would like to weed out all related files. So, I need a way to automatically find all the files (in /usr, for example) that are not included in any ...
Karol's user avatar
  • 343
22 votes
1 answer
19k views

Can I have two versions of the same package in an apt repository?

I'm running Ubuntu 10.04 across my entire environment. To make code deploys easier, we are implementing a private apt repository where we can deploy builds of our code. One of the requirements of ...
GregB's user avatar
  • 1,402
20 votes
3 answers
2k views

Managing cluster of linux computers behind firewalls

My company's product is essentially a Linux box (Ubuntu) sitting in somebody else's network running our software. Up to now we had less than 25 boxes in the wild and used TeamViewer to manage them. ...
hakura's user avatar
  • 303
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
20 votes
8 answers
70k views

Wrong version of pg_dump on Ubuntu

I originally installed postgres 9.2 on Ubuntu and later upgraded to 9.3 according to the instructions here: http://www.postgresql.org/download/linux/ubuntu/ (using the postgres apt repository). ...
BillRobertson42's user avatar
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.2k
20 votes
5 answers
45k views

APT FATAL -> Failed to fork

I saw a lot of questions regarding this, but mine seems a little different. Here's what I receive: /etc/cron.weekly/apt-xapian-index: FATAL -> Failed to fork. run-parts: /etc/cron.weekly/apt-...
MultiformeIngegno's user avatar
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
5 answers
15k views

Is it usually safe to run "apt-get upgrade" (in terms of stability) on a production server?

I often log into my Ubuntu 12.04.2 server (with Postgres 9.2.4 running with live production data) and see something akin to: 4 packages can be updated. 4 updates are security updates. This happens ...
orokusaki's user avatar
  • 2,863
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
8 answers
6k views

ack-grep to ack in ubuntu

I was just wondering, i recently installed ack (ack-grep in ubuntu), and i can't figure out how to just type in ack to get ack-grep (for some reason ack is taken up by a kanji translator thing). Is ...
FurtiveFelon's user avatar
19 votes
2 answers
4k views

Why does the command 'apt install php' try to install Apache?

I'm trying to install WordPress + LEMP on my Ubuntu 18.04. I have no interest in installing Apache. Why does the PHP installer assume I do?
hejsan's user avatar
  • 363

1
2 3 4 5
24