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.

learn more… | top users | synonyms (1)

38
votes
9answers
4k 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 ...
36
votes
3answers
9k 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 ...
34
votes
4answers
28k 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.
25
votes
9answers
44k 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 ...
25
votes
5answers
26k 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 ...
24
votes
1answer
8k 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 ...
23
votes
2answers
11k 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 ...
22
votes
5answers
23k views

How do I get the history of “apt-get install” on Unbuntu?

Greetings again. 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 ...
21
votes
3answers
19k 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?
20
votes
3answers
35k 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 ...
20
votes
9answers
7k 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?
20
votes
3answers
10k 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?
18
votes
10answers
8k 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 ...
17
votes
3answers
40k 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 ...
15
votes
2answers
15k views

Installing optional Nginx modules with apt-get

Greetings, 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 ...
15
votes
4answers
24k 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 ...
15
votes
2answers
6k 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 ...
14
votes
8answers
4k 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 ...
14
votes
1answer
5k 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 ...
14
votes
2answers
2k 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 ...
13
votes
2answers
6k 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 ...
13
votes
2answers
4k 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 ...
13
votes
4answers
5k 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 ...
12
votes
3answers
5k 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 ...
11
votes
3answers
265 views

How to install two packages that write the same file

Sirs, a conundrum. 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 ...
11
votes
4answers
15k 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 ...
10
votes
11answers
3k 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?
10
votes
2answers
28k 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.
10
votes
3answers
11k 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. ...
10
votes
2answers
431 views

SSH session never closes when executing “apt-get install”

Problem When running apt-get install in an 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 ...
9
votes
5answers
27k 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 ...
9
votes
5answers
5k 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 ...
9
votes
3answers
3k 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 ...
9
votes
4answers
10k 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 ...
9
votes
0answers
501 views

Recovering from a borked reprepro pull [duplicate]

We distribute our software via custom debian apt repositories we create with reprepro. (Disclaimer: I'm not the release engineer who set this up; he's no longer with us.) We have four repos: ...
8
votes
7answers
2k 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
4answers
10k 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 ...
8
votes
2answers
828 views

How do I find out which package version will `apt-get install <package>` install?

How do I find out which software version will apt-get install <package> install? Thanks, Boda Cydo.
8
votes
1answer
4k views

Why is Debian 6.0.1 asking for Install CD when installing stuff?

I've recently installed a Debian 6.0.1 and when i issue the simple apt-get, when finishing (99% says) ask for the install CD. Cambio de medio: Por favor, inserte el disco etiquetado como ...
8
votes
2answers
776 views

Odd behavior of apt-get with post-inst instructions, and .desktop files

We have a number of hand-built (with fpm and jenkins) .deb files in a local Apt repository (reprepro). These .debs contain a .desktop file that will be picked up by xdg-desktop in a post-inst script. ...
7
votes
5answers
25k 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 ...
7
votes
3answers
3k 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 ...
7
votes
1answer
10k 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: ...
7
votes
3answers
3k views

How to get the number of available updates on an Ubuntu system as a normal user

I need this for a simple monitoring script which i don't want to run as root...
7
votes
4answers
5k 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 ...
7
votes
2answers
4k 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 ...
7
votes
5answers
3k 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 ...
7
votes
1answer
2k views

How do I generate a response file to be used with apt-get or aptitude?

I need to install exim4 through puppet. Because this installation requires interactive configuration, I need a response file, but I don't know how to generate one. So, how do I generate a response ...
7
votes
2answers
735 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, ...
7
votes
5answers
4k 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 ...