How to enable apt install in Bitnami containers? - docker

I'm running a Bitnami/pytorch container and would like to install packages using apt. However I cannot do it as sudo is not installed. For example:
$ sudo apt install nano
bash: sudo: command not found
So what is the preferred way of getting apt install to work?

Related

DDEV Install "unable to locate the package certutil"

I am trying to run Drupal on DDEV. In an administrative window, I installed mkcert v1.4.4. I have successfully installed Docker, Ubuntu 2204.1.6 and DDEV. When I run sudo apt-get update && sudo apt-get install -y certutil xdg-utils in Ubuntu, I receive the message E: Unable to locate package certutil
I tried to install certutil using apt-get install libnss3-tools, and it also seemed to work, but I am STILL getting the error message when I attempt to install the xdg utilities.
I am using WSL2 on a Windows machine.
This is a mistake in the docs. It should be libnss3-tools, so sudo apt-get update && sudo apt-get install -y libnss3-tools xdg-utils (certutil is installed by libnss3-tools)

After installing ROS how to configure further?

I have installed ROS using
sudo apt-get install ros-desktop-full
all tutorial on the net says configure enviroment setup using command
source /opt/ros/<dist>/setup.bash
I don't find any folder with the name ros in my /opt/
I can only see only following folders after executing the command
$ ls /opt/
atom google SQLiteStudio zoom
You used the wrong apt command. You should use sudo apt install ros-<distro>-desktop-full. Assuming you're on Ubuntu20.04 and wanting to run ROS Noetic the command is sudo apt install ros-noetic-desktop-full.

pipenv shell failed creating virtual environment

I am trying to create a virtual environment with the following command:
pipenv --three
But it doesn't work as the image shows:
What should I do?
I don't have virtual environment(s), like venv or virtualenv.
I had a similar problem and solved it in the following way
Uninstall PIP and pipenv, reinstall the version of python3. If not work, reinstall Python 3.7
sudo apt remove pip
sudo apt remove pipenv
sudo apt install python3-venv python3-pip
pip3 install pipenv
pipenv shell
Installing pip/setuptools/wheel with Linux Package Managers

docker nothing to do, and docker commnad not found

i followed below steps on centos 7 machine to install docker but it says nothing to do and when i run docker command it says that command not found.
i followed below steps on centos 7 machine to install docker but it says nothing to do and when i run docker command it says that command not found.
**sudo yum check-update
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker**
on some other machine same commands worked but its having some strange behaviour on this machine.
running following steps solved the issue:
some how firewall started creating problem , so i had to check
the internet connection as below:
curl --location-trusted --ntlm --user "xyz" www.google.com enter password
yum install http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-3.el7.noarch.rpm
yum -y install docker-ce

docker centos7 jenkins installation

I have installed Centos:7 docker image inside Ubuntu,and I have successfully installed Java,but when I'm trying to add the Jenkins repository to the yum repos, and install Jenkins from here I'm receiving an error.
bash: sudo: command not found
jenins installation problem
Your Screenshot says Sudo is not installed. So please install Sudo.
Try to login with su
$ su -
and install sudo
apt-get install sudo

Resources