(ve):Configure apt

  • This page was last modified on September 9, 2011, at 22:28.
The (mt) Community Wiki is a collaborative project. Any (mt) Media Temple customer or employee may contribute. Not all articles and/or content have been tested for accuracy by (mt) Media Temple.

For officially moderated and tested articles, be sure to visit our KnowledgeBase.

From (mt) Community Wiki

Contents


Overview

On the (ve) Server, /tmp and /var/tmp are mounted as noexec for security reasons. This, however, can cause some issues with legitimate applications using /tmp as a "temporary" directory to run scripts that do some arbitrary action such as pre install scripts for apt-get/aptitude.

Requirements

You'll need to run the following command as root to have permissions to write to the apt configuration directory.

Instructions

To configure this application to not use /tmp, the following one-liner should configure it to use /var/local/tmp instead.

echo "APT::ExtractTemplates::TempDir \"/var/local/tmp\";" | tee /etc/apt/apt.conf.d/50extracttemplates && mkdir /var/local/tmp/

Thanks to this blog post for the setup.

Notes/Supplemental