Update indexes after adding security repo in MapR plugin
The root cause of the bug is that repo with necessary package exists but indexes are not updated so the package is not available. Closes-Bug: #1498479 Change-Id: I38a0291e391057d8111ea304e4d00ad0c194e2e2
This commit is contained in:
parent
fa6fad21e9
commit
ae3dc6b620
@ -89,8 +89,7 @@ class Service(object):
|
|||||||
cmd = cluster_context.distro.create_install_cmd(packages)
|
cmd = cluster_context.distro.create_install_cmd(packages)
|
||||||
with instance.remote() as r:
|
with instance.remote() as r:
|
||||||
r.execute_command(cmd, run_as_root=True,
|
r.execute_command(cmd, run_as_root=True,
|
||||||
timeout=_INSTALL_PACKAGES_TIMEOUT,
|
timeout=_INSTALL_PACKAGES_TIMEOUT)
|
||||||
raise_when_error=False)
|
|
||||||
|
|
||||||
def _get_packages(self, node_processes):
|
def _get_packages(self, node_processes):
|
||||||
result = []
|
result = []
|
||||||
|
@ -4,3 +4,4 @@ cat >> /etc/apt/sources.list.d/security_repo.list << EOF
|
|||||||
deb http://security.ubuntu.com/ubuntu precise-security main
|
deb http://security.ubuntu.com/ubuntu precise-security main
|
||||||
deb http://security.ubuntu.com/ubuntu lucid-security main
|
deb http://security.ubuntu.com/ubuntu lucid-security main
|
||||||
EOF
|
EOF
|
||||||
|
apt-get update
|
||||||
|
Loading…
Reference in New Issue
Block a user