R
RunPod•8mo ago
Ansatsu

Operation not permitted - Sudo access missing

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
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.
25 Replies
Volko
Volko•8mo ago
You are already root when you connect to the instances
Ansatsu
AnsatsuOP•8mo ago
yea i assume so, but why am I getting these errors?
Volko
Volko•8mo ago
did you just run apt update && apt install python3-venv -y
Ansatsu
AnsatsuOP•8mo ago
yea I did 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
sudo apt update && sudo apt upgrade && sudo apt install software-properties-common && sudo add-apt-repository ppa:deadsnakes/ppa && sudo apt install python3-venv
Volko
Volko•8mo ago
Remove all the sudos
apt update && apt upgrade && apt install software-properties-common && add-apt-repository ppa:deadsnakes/ppa &&
apt install python3-venv
apt update && apt upgrade && apt install software-properties-common && add-apt-repository ppa:deadsnakes/ppa &&
apt install python3-venv
Ansatsu
AnsatsuOP•8mo ago
tried now im seeing this
default:~/Desktop$ apt update && apt upgrade && apt install software-properties-common && add-apt-repository ppa:deadsnakes/ppa &&
>
> 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/
default:~/Desktop$ apt update && apt upgrade && apt install software-properties-common && add-apt-repository ppa:deadsnakes/ppa &&
>
> 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 😭
Volko
Volko•8mo ago
Why are you in default instead of root ?
Madiator2011
Madiator2011•8mo ago
@Volko probably custom image that has some user created setrlimit wont work as it requires provilaged container
Ansatsu
AnsatsuOP•8mo ago
@Papa Madiator @Volko 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
Volko
Volko•8mo ago
Try to connect to the root
Volko
Volko•8mo ago
ssh to you user and password
No description
Volko
Volko•8mo ago
Try su -
Ansatsu
AnsatsuOP•8mo ago
you mean connect web terminal? I usually do connect to HTTP
Volko
Volko•8mo ago
Quit your page and click again on "connect to web terminal" and send a screenshot
Ansatsu
AnsatsuOP•8mo ago
trying. Not sure why but so far it's not loading at all
Volko
Volko•8mo ago
? Strange
Ansatsu
AnsatsuOP•8mo ago
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
Ansatsu
AnsatsuOP•8mo ago
No description
Ansatsu
AnsatsuOP•8mo ago
I am trying to login using the credentials it shows below webterminal says
su: user ****** does not exist
su: user ****** does not exist
switched to vast. No issues there But I would love to find a solution to this
Madiator2011
Madiator2011•8mo ago
would be cool to know docker image name
Ansatsu
AnsatsuOP•8mo ago
What you mean? I shared it here, isnt it that?
Madiator2011
Madiator2011•8mo ago
Tell what docker image you are trying to run
Ansatsu
AnsatsuOP•8mo ago
Sorry? Its already running the runPod template. Not sure what else u mean
Kasmweb VNC - Ubuntu Remote Desktop CUDA 11.8
Kasmweb VNC - Ubuntu Remote Desktop CUDA 11.8
| that more specific for you/did u mean that?
Madiator2011
Madiator2011•8mo ago
Use this one instead #Accelerated Linux Desktop
Ansatsu
AnsatsuOP•8mo ago
will try and report back
Want results from more Discord servers?
Add your server