summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttps://launchpad.net/~codex24 <codex24@web>2016-02-14 23:06:05 +0000
committeradmin <admin@branchable.com>2016-02-14 23:06:05 +0000
commitfc11485f262c3787da0bf9b0bba58a6f8fb5b88b (patch)
treec729e9d21c78e628e5808bf727a1a563f5af4562
parente1dcf646a3ed52628d5e0940d0c4e1d753197a24 (diff)
Added a comment
-rw-r--r--doc/todo/etckeeper_with_git_breaks_update-manager_/comment_1_edc0c3a66c1118fefd952b7a9b3c1057._comment26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/todo/etckeeper_with_git_breaks_update-manager_/comment_1_edc0c3a66c1118fefd952b7a9b3c1057._comment b/doc/todo/etckeeper_with_git_breaks_update-manager_/comment_1_edc0c3a66c1118fefd952b7a9b3c1057._comment
new file mode 100644
index 0000000..9374da4
--- /dev/null
+++ b/doc/todo/etckeeper_with_git_breaks_update-manager_/comment_1_edc0c3a66c1118fefd952b7a9b3c1057._comment
@@ -0,0 +1,26 @@
+[[!comment format=mdwn
+ username="https://launchpad.net/~codex24"
+ nickname="codex24"
+ subject="comment 1"
+ date="2016-02-14T23:06:05Z"
+ 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
+"""]]