#Operation not permitted - Sudo access missing

42 messages · Page 1 of 1 (latest)

dusk moth
#

Hi, I am currently trying to install python3-venv on my runpod instance.
However I am getting bunch of sudo: setrlimit(RLIMIT_NOFILE): Operation not permitted messages and ultimately the install finishes with ModuleNotFoundError: No module named 'apt_pkg'

However python was not installed. If I try sudo -v it shows:
sudo: setrlimit(RLIMIT_NOFILE): Operation not permitted
So it appears as im missing sudo/admin permissions? How can that be and how do I get them.

molten rootBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

thorn mortar
#

You are already root when you connect to the instances

dusk moth
thorn mortar
#

did you just run apt update && apt install python3-venv -y

dusk moth
#

To be precise I did the following

#

sudo apt update && sudo apt upgrade && sudo apt install software-properties-common && sudo add-apt-repository ppa:deadsnakes/ppa && sudo apt install python3-venv

thorn mortar
#

Remove all the sudos

#
apt install python3-venv```
dusk moth
#
> 
> apt install python3-venv
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/```
#

so again some weird perm issue 😭

thorn mortar
#

Why are you in default instead of root ?

brisk lichen
#

@thorn mortar probably custom image that has some user created

#

setrlimit wont work as it requires provilaged container

dusk moth
#

@brisk lichen @thorn mortar sers, what does that mean? what do I need to do

#

I am using the runpod dekstop image btw

#

RunPod Desktop
runpod/kasm-docker:cuda11

thorn mortar
#

Try to connect to the root

#

ssh to you user and password

#

Try su -

dusk moth
thorn mortar
dusk moth
thorn mortar
#

Strange

dusk moth
# thorn mortar Strange

very much. Its definitely not a user created image, so I should have root access even when I login thru web service

#

alr its working in another browser. w/e

#

I am trying to login using the credentials it shows below webterminal

#

says su: user ****** does not exist

dusk moth
#

switched to vast. No issues there

#

But I would love to find a solution to this

brisk lichen
#

would be cool to know docker image name

dusk moth
dusk moth
brisk lichen
#

Tell what docker image you are trying to run

dusk moth
#

Its already running the runPod template. Not sure what else u mean

#

Kasmweb VNC - Ubuntu Remote Desktop CUDA 11.8 | that more specific for you/did u mean that?

brisk lichen
#

Use this one instead #1199861385400701040