This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2793
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit c4fa92fcfbd3a1df90c1906d2156b3b9cfce4736
Author: leonidfrolov <[email protected]>
AuthorDate: Thu May 12 18:30:33 2022 +0300

    [DATALAB-2793]: removed broken cuda repo from azure deeplearning
---
 infrastructure-provisioning/src/general/lib/os/fab.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py 
b/infrastructure-provisioning/src/general/lib/os/fab.py
index b4f93a218..d9259b03a 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -311,6 +311,9 @@ def configure_nftables(config):
 def ensure_python_venv_deeplearn(python_venv_version):
     try:
         if not exists(conn, 
'/opt/python/python{}'.format(python_venv_version)):
+            if os.environ['conf_cloud_provider'] == 'azure':
+                conn.sudo('rm /etc/apt/sources.list.d/cuda*')
+                conn.sudo('apt update')
             conn.sudo('add-apt-repository ppa:deadsnakes/ppa -y')
             conn.sudo('apt install python{0} 
-y'.format(python_venv_version[:3]))
             conn.sudo('apt install virtualenv')


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to