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.

The Advanced Packaging Tool, or APT, is a free user interface that works with core libraries to handle the installation and removal of software on the Debian GNU/Linux distribution and its variants. APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages, either from binary files or by compiling source code.

1137 questions
28
votes
4 answers

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 data I need to configure. Anyhow, how do I get it…
Showcaselfloyd
  • 425
  • 1
  • 5
  • 7
27
votes
4 answers

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 nslookup E: Unable to locate package…
ErebusBat
  • 935
  • 4
  • 12
  • 21
26
votes
12 answers

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 any dpkg settings. Here's an…
Mark
  • 367
  • 1
  • 4
  • 11
26
votes
9 answers

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 install all programs that i removed. Maybe there…
IgorDiy
  • 447
  • 1
  • 6
  • 10
25
votes
6 answers

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: $ sudo apt-get upgrade Reading package lists...…
Adam Matan
  • 13,194
  • 19
  • 55
  • 75
23
votes
3 answers

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 main contrib non-free deb…
JoelFan
  • 2,285
  • 5
  • 26
  • 30
23
votes
2 answers

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 Probably a dumb question but I can't find such an…
Falken
  • 1,702
  • 5
  • 18
  • 28
23
votes
4 answers

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 command: apt-get -y --allow-unauthenticated…
victorgp
  • 511
  • 2
  • 4
  • 9
22
votes
1 answer

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 this repository will be that our QA department will…
GregB
  • 1,382
  • 2
  • 13
  • 22
22
votes
2 answers

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 of the packages currently installed on the Debian…
Karol
  • 343
  • 2
  • 9
20
votes
3 answers

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 http://ftp.fr.debian.org/debian wheezy main deb…
Zoddo
  • 304
  • 1
  • 2
  • 8
20
votes
3 answers

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. We're now about to ship 1000 of these boxes and…
hakura
  • 303
  • 1
  • 5
20
votes
5 answers

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-xapian-index exited with return code…
MultiformeIngegno
  • 1,687
  • 9
  • 26
  • 31
20
votes
8 answers

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). However, pg_dump, which is an alias for…
BillRobertson42
  • 430
  • 1
  • 3
  • 12
20
votes
5 answers

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 about every few days, of course. I'm not interested…
orokusaki
  • 2,763
  • 4
  • 32
  • 43
1 2
3
75 76