Browse Source

AMBARI-5532. Bootstrap fails on ubuntu (dlysnichenko)

Lisnichenko Dmitro 11 years ago
parent
commit
11c63bc572
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ambari-server/src/main/python/bootstrap.py

+ 1 - 1
ambari-server/src/main/python/bootstrap.py

@@ -274,7 +274,7 @@ class Bootstrap(threading.Thread):
       return self.getMoveRepoFileWithoutPasswordCommand(targetDir)
 
   def getAptUpdateCommand(self):
-    return "apt-get update -o Dir::Etc::sourcelist=\"%s/%s\" -o API::Get::List-Cleanup=\"0\" --no-list-cleanup" %\
+    return "sudo apt-get update -o Dir::Etc::sourcelist=\"%s/%s\" -o API::Get::List-Cleanup=\"0\" --no-list-cleanup" %\
           ("sources.list.d", self.AMBARI_REPO_FILENAME)
 
   def copyNeededFiles(self):