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)

21
votes
4answers
10k 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 ...
11
votes
4answers
3k 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 ...
4
votes
3answers
1k views

Install Debian Backports kernel automatically

I've got the following pinnings set: Package: linux-image-amd64 Pin: release a=wheezy-backports Pin-Priority: 1001 Package: * Pin: release a=wheezy-backports Pin-Priority: 499 I get the following ...
1
vote
0answers
8 views

Unmet dependancies on Debian7

I did the dist-upgrade on debian from 7.8 wheezy to 8.1 jessie. then I had some trubles with old compilet PHP and had to revert back. Since the downgrade, I have this on trying to do a dist-upgrade ...
2
votes
2answers
31 views

Ubuntu14.04 - unable to apt-get update

sudo apt-get update returns some erors : W: Failed to fetch http:// archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'restricted/source/Sources' in Release file ...
0
votes
1answer
15 views

apt-get update, updated script condition

I want apt-get update to direct a script to direct it to reboot a system. I want a system to run apt-get update, if there are updates reboot. This is to keep a simple system updated. The answer might ...
11
votes
5answers
13k 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 ...
0
votes
0answers
11 views

Package libapache2-mod-fastcgi is not available when trying to install FPM on Debian 7.8

I'm using Vagrant with Debian 7.8 and wanted to clone our production server. Our production server has php-fpm installed, however, I'm not able to install it. When trying to install my packages for ...
2
votes
2answers
3k views

Difference between RPM (yum) and apt-get

Functional difference between the two? Packages different style or what? I'm dipping my toe in the server pool and playing with an Ubuntu install right now, which is apt-get. I'm also considering ...
3
votes
1answer
136 views

Cannot update Debian Wheezy due to GPG error (NODATA)

I have a server running on Debian Wheezy. It's apt source file has following configuration: deb http://ftp.uk.debian.org/debian/ wheezy main non-free contrib deb-src http://ftp.uk.debian.org/debian/ ...
0
votes
1answer
1k views

apt-get update can not connect

i run a dedicated ubuntu 10.04 server. i use kvm/libvirt/virsh to run a virtual machine that's also ubuntu 10.04. i bridged the network (1 of 2 IPs is routed via NAT to the LAN, where my VM ...
0
votes
1answer
17 views

APT-GET behind a proxy with Digest Authentication

I'd like to use apt-get (and other ubuntu tools) to download software and keep it updated. Unfortunately, my company has set a squid proxy to accept digest authentication only. I've seen somewhere ...
0
votes
1answer
24 views

Trouble while installing redis-server

So for some reason it seems that the installation of the redis-server that was serving the sidekiq on one of my machines got removed (How does that happen?). I assume this because commands like which ...
5
votes
5answers
11k views

How to install nginx and install the configuration files too

I've just completely uninstalled nginx 1.0.6 from my server (Ubuntu 11.04) using apt-get remove nginx rm -rf /etc/nginx/ rm -rf /usr/sbin/nginx rm /usr/share/man/man1/nginx.1.gz apt-get remove ...
0
votes
0answers
40 views

ERROR Found no accessible config files for 'fail2ban' under /etc/fail2ban

So my fail2ban wasn't working and in attempts to make it work the config files got messy. Decided to start from scratch. I ran these as sudo apt-get remove fail2ban apt-get purge fail2ban rm -r ...
1
vote
1answer
36 views

Make apt ignore a single recommendation

I'm looking to install owncloud, which has this recommendation line: Recommends: curl, exim4 | mail-transport-agent, php5-imagick, php5-apc, libreoffice-writer I want to install all of the ...
0
votes
1answer
31 views

Prevent debian package from being removed by puppet

is there a way to prevent a debian package from being removed? I want to prevent any resolution of "replaces" and "breaks" attributes that would lead to removing that package while being able to ...
1
vote
1answer
44 views

Unattended upgrades: kernels taking up /boot space

Typically I like to have unattended-upgrades enabled in all my Ubuntu 14.04 servers (both security and updates). The relevant configuration line for my question is the following: // Do automatic ...
1
vote
1answer
2k views

Fail to do apt-get update on Ubuntu 12.04 Precise

I recieve this error all the time when I try to do apt-get update so that can not install or remove software with apt Get:102 http://archive.ubuntu.com precise-updates/universe Translation-en ...
5
votes
4answers
2k 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: $ ...
0
votes
0answers
19 views

Newer version of pngquant?

Hopefully I'm ok asking this here (I was going to put it on SO, but decided it was probably better placed here) I've done a fair bit of Googling, to try and figure this out myself - but am not ...
4
votes
2answers
9k views

Debian/Ubuntu is it possible to reinitialize /var/lib/apt/lists and /var/apt/cache after deleting them?

Is it possible to restore the functionality of /var/lib/apt/lists and /var/apt/cache after deleting them or minmizing them in some wa I am trying to shrink down an Ubuntu VM to the smallest size and ...
1
vote
0answers
12 views

How to request “do not start/enable” when installing packages on Ubuntu? [duplicate]

Start with a base system. apt-get install apache2 That results in it installing the package AND starting the service. Is there some mechanism (standard across other packages as well if possible) ...
2
votes
1answer
699 views

Error when reinstalling apache2

I did an dist-upgrade on Debian Wheezy yesterday and got an error with syslog-nc-core. I found that i should try to reinstall it and tried but it ended with an error that apache2 isnt configured. I ...
1
vote
2answers
1k views

sudo apt-get update is not updating repositories in Debian Wheezy

I am trying to update repositories using following command but it is failing: sudo apt-get update Here is the output of above command: Hit http://dl.google.com stable Release.gpg Hit ...
0
votes
1answer
5k views

Fatal: module iscsi_trgt not found — trying to get my iscsi target to run on debian

My server info: Linux Microknoppix 2.6.39.3 #21 SMP PREEMPT Sat Jul 23 09:48:39 CEST 2011 i686 GNU/Linux modprobe iscsi_trgt results in FATAL: Module iscsi_trgt not found. So I run # ...
0
votes
1answer
25 views

Unattended install (upgrade) of cassandra via chef

I'm creating a cassandra upgrade/install recipe with chef. package "cassandra" do version "2.1.8" action :install end When I install over the top of an existing version I get prompted about new ...
5
votes
5answers
5k 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 ...
0
votes
1answer
29 views

Why does apt-get install duply (on debian 7.8) not update to the latest verison?

Hi there I'm a bit confused about updating on my debian server. I'm using duplicity + duply on my server and wanted to update duply to the latest version. Running: sudo apt-get install duply ...
1
vote
6answers
5k 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 ...
0
votes
2answers
693 views

apt-get not getting latest version on some servers

I've got Percona DB 5.6 on several Ubuntu 12.04 servers. On a few of them, I've been able to successfully upgrade to the latest version (5.6.17) using apt-get update apt-get upgrade On several ...
0
votes
1answer
249 views

How to install mariadb when mysql gets in the way?

I have searched for a while on google but nothing seems obvious from this weird situation I have on VM, can someone help me? root@sathia:/etc/apt# apt-cache policy mariadb-server mariadb-server: ...
2
votes
1answer
175 views

apt-get unmet dependecies, traditional solutions not working

The problem Taking any action that will change installed packages on my Ubuntu 12.04 LTS server (remove, install, purge, etc.) fails with: Reading package lists... Building dependency tree... ...
6
votes
3answers
6k 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 ...
0
votes
2answers
51 views

Debian: Most current package version in mirror not installing [closed]

On my Raspbian system I am attempting to install a package (zabbix-agent) that is version 2.4.5. When I run the apt-get install it only gets version 2.2.7. Is there a reason that apt won't install ...
15
votes
4answers
20k 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 ...
-1
votes
1answer
110 views

Use Apt Inside AWS VPC Without NAT Instance

I have several Ubuntu machines inside VPCs. For many of them, the only network access they need whatsoever is for "apt-get update && apt-get upgrade" and NTP. For NTP, I can simply have an NTP ...
1
vote
3answers
3k views

Free centralized patch management for Debian

We have a number of Debian servers that need to be patched and manual patching becomes an issue as their number grows. What I am lookig at is a way to push patches to the servers from the central ...
2
votes
1answer
25 views

apt: list required dependencies for deb package without installing it

For a build tool I'm writing (for which I'd like to implement a sort of dependency-caching system) I'd like to know what the missing dependencies for a .deb package are, without resorting to ...
4
votes
2answers
2k views

I get a Segmentation fault when doing apt-get util-linux

I've found that a lot of upgrade commands and Apache on my system are failing with Segmentation faults. I don't know if this is the main one, but a lot of packages depend on util-linux: ...
0
votes
4answers
4k 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: ...
1
vote
1answer
41 views

“broken packages” when using apt-get

I've tried to install MIME::Base64 with cpanm, which gives me the error that sys/types.h is missing. I then try to install libc6-dev which fails with the error message Reading package lists... Done ...
2
votes
2answers
2k views

How to install build-essential on Ubuntu 12.04? (gcc and g++ dependency issues)

I have just installed Ubuntu server 12.04 LTS. I am trying to install build-essential package; however, when I try to install it I receive the following error: Some packages could not be installed. ...
2
votes
1answer
29 views

How do I download a new Ubuntu release without installing it?

I want to upgrade - in this case, from Ubuntu Trusty to Vivid (going through Utopic if necessary) but I'd really rather do the upgrade in two parts, doing a dry run to get all the packages locally ...
24
votes
10answers
10k 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?
0
votes
0answers
82 views

Installing package fails with “tar: Invalid argument”

I'm running a docker container based on debian:wheezy to install wp-mirror. I'm running into a lot of dependency problems when running apt-get install wp-mirror, it seems to work after running that a ...
-1
votes
1answer
28 views

Are we drowning in package managers? [closed]

The current trend is to use language-oriented package manager, such as npm or bower for javascript, pip for python, gems for ruby and so on. As I understand the need for a dependency manager when you ...
4
votes
3answers
5k views

how to pass parameters to puppet modules?

What is the best practice for configuration of puppet modules? I have puppet 2.7.11. I find this way quite messy, it looks like using global variables. node default { $always_apt_update = true ...
1
vote
1answer
66 views

Why would updating postgresql-client uninstall postgresql?

On a Debian 7 server, apt-get was offering me to upgrate the following 2 packages: postgresql-9.1 and postgresql-client-9.1. Since I didn't want to restart the database server, I decided only to ...
0
votes
0answers
29 views

gpg --receive-keys times out but Wireshark confirms the http response is received

I'm using a virtual machine running Ubuntu 14.04, trying to use apt-keys to add keys for nginx. Most of this is automatic via puppet but I'm going through the process manually to find where the fault ...