“git submodule update” failed with ‘fatal: detected dubious ownership in repository at…’

Silence all safe.directory warnings tl;dr Silence all warnings related to Git’s safe.directory system. Be sure to understand what you’re doing. git config –global –add safe.directory ‘*’ Long version Adapted from this post on I cannot add the parent directory to safe.directory in Git. I had the same issue and resolved it by disabling safe directory … Read more

Dockerfile, how install snap, snapd: unrecognized service

first of all, you don’t want to install the “snap” package, as it is not related to “snapd”. Secondly, myself stumbled across this issue of installing snapd within a docker container: TLDR; Running snapd that way is currently not supported. But that question has been asked already at the snapcraft forums. One of snapd’s dependencies … Read more

How to install GLIBC 2.29 or higher in Ubuntu 18.04

You can try to download glibc from the official source and install it: wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz tar -zxvf glibc-2.29.tar.gz mkdir glibc-2.29/build cd glibc-2.29/build ../configure –prefix=/opt/glibc make make install Pay attention to avoid breaking your OS environment: you need to specify the prefix and configure the separate path when you are using it. See this answer … Read more

using sudo inside jupyter notebook’s cell

Update: I checked all the methods, all of them are working. 1: Request password using getpass module which essentially hides input by user and then run sudo command in python. import getpass import os password = getpass.getpass() command = “sudo -S apt-get update” #can be any command but don’t forget -S as it enables input … Read more