From 3faff8b9c428038be8eea30bf7857cfdf0b68200 Mon Sep 17 00:00:00 2001 From: "https://launchpad.net/~codex24" Date: Sun, 14 Feb 2016 23:12:11 +0000 Subject: Added a comment: Workaround --- ...ent_1_2ae8af745340c6f4d5ee87c74c96e870._comment | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 doc/todo/etckeeper_with_git_breaks_update-manager_/comment_1_2ae8af745340c6f4d5ee87c74c96e870._comment (limited to 'doc') diff --git a/doc/todo/etckeeper_with_git_breaks_update-manager_/comment_1_2ae8af745340c6f4d5ee87c74c96e870._comment b/doc/todo/etckeeper_with_git_breaks_update-manager_/comment_1_2ae8af745340c6f4d5ee87c74c96e870._comment new file mode 100644 index 0000000..de0814d --- /dev/null +++ b/doc/todo/etckeeper_with_git_breaks_update-manager_/comment_1_2ae8af745340c6f4d5ee87c74c96e870._comment @@ -0,0 +1,26 @@ +[[!comment format=mdwn + username="https://launchpad.net/~codex24" + nickname="codex24" + subject="Workaround" + date="2016-02-14T23:12:10Z" + content=""" +With etckeeper installed in Ubuntu using git as its VCS, using the Ubuntu Software Center fails with errors + + installArchives() failed: fatal: $HOME not set + +Correct this by adding the following file, /etc/etckeeper/pre-install.d/20setenv: + + #!/bin/sh + # /etc/etckeeper/pre-install.d/20setenv: set HOME dir due to + # unpassed environment in priviledge escallation of Ubuntu Software Center. + # see https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1335391 + if \[[ -z \"$HOME\" ]]; then + export HOME=$(getent passwd root | cut -d: -f6) + fi + +Also, ensure that the root account's git environment is properly initialized: + + root@janus:/etc# git config -l + user.name=Root Janus + user.email=codex24@gmail.com +"""]] -- cgit v1.2.3