Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied on Deb installation on Debian or Ubuntu #622

Open
ricardocassiano04 opened this issue Feb 28, 2023 · 4 comments
Open

Permission denied on Deb installation on Debian or Ubuntu #622

ricardocassiano04 opened this issue Feb 28, 2023 · 4 comments

Comments

@ricardocassiano04
Copy link

ricardocassiano04 commented Feb 28, 2023

Hello!

Unlike apt (step 1) command, mkdir (step 2) and tee (steps 2 and 3) commands will not ask for sudo password.

So the repository will not be configured.

https://adoptium.net/installation/linux/

Congratulations for your good job!

@karianna
Copy link
Contributor

karianna commented Mar 1, 2023

@ricardocassiano04 So you are saying that mdir and tee need to be run as sudo?

@ricardocassiano04
Copy link
Author

Yes.

@zdtsw
Copy link
Contributor

zdtsw commented Mar 13, 2023

I think in the "Tip" it already states :
"On most Linux systems you must have superuser privileges to install packages such as Temurin. You may need to prefix the commands below with sudo for them to succeed."

@sxa
Copy link
Member

sxa commented May 16, 2023

So you are saying that mdir and tee need to be run as sudo?

Yeah the tee is the bit that writes to files in /etc so needs to be run as root.

Unlike apt (step 1) command,

@ricardocassiano04 I'm curious - are you saying the the apt install will prompt for the password if it's run as non-root? That doesn't usually happen in my experience - which distribution+version is that happening on?

On Ubuntu 22.04 it doesn't seem to try to prompt me and just fails:

$ apt install -y wget apt-transport-https
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants