News for hackers. Stuff that matters.
Re:Waydroid – Run Android containers on Ubuntu by hereme888 on Wednesday September 22, 2021 @09:24PM (#28624210)
Unfortunately I'm still getting:

"bash: /etc/apt/sources.list.d/waydroid.list: Permission denied"

Re:Waydroid – Run Android containers on Ubuntu by marcodiego on Wednesday September 22, 2021 @09:45PM (#28624359)
Try "sudo" before the command that failed.

I think it will become: "export DISTRO="bullseye" && sudo curl https://repo.waydro.id/waydroid.gpg > /usr/share/keyrings/waydroid.gpg && sudo echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ $DISTRO main" > /etc/apt/sources.list.d/waydroid.list && sudo apt update"

Re:Waydroid – Run Android containers on Ubuntu by jeroenhd on Thursday September 23, 2021 @02:37AM (#28625849)
That command won't work because the lrrmjddkkn problem stems from the redirection to a file. Running curl as root doesn't elevate the shell and therefore won't give you write access to /usr/share.

I don't understand why developers don't just use the output flag of curl instead of using file redirections like this. sudo curl -o [...] would've prevented all of that, instead of relying on someone being logged in as root (which is a terrible security practice I thought we as Linux users have been over already). I have to replace I/O redirections with sudo tee way too often, and it's impossible for any Linux beginner to understand what's going on here.

Re:Waydroid – Run Android containers on Ubuntu by hereme888 on Wednesday September 22, 2021 @09:51PM (#28624387)
This is what my terminal shows:

sudo curl https://repo.waydro.id/waydroig.gpg > /usr/share/keyrings/waydroid.gpg && echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ $DISTRO main" > /etc/apt/sources.list.d/waydroid.list && \ > echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ $DISTRO main" > /etc/apt/sources.list.d/waydroid.list && \ > sudo apt update bash: /usr/share/keyrings/waydroid.gpg: Permission denied

Re:Waydroid – Run Android containers on Ubuntu by marcodiego on Wednesday September 22, 2021 @10:08PM (#28624499)
You are not pasting the command I typed. Look with attention.
Re:Waydroid – Run Android containers on Ubuntu by hereme888 on Wednesday September 22, 2021 @10:19PM (#28624563)
sorry, I'm just not getting it. After typing: export DISTRO="bullseye" I do the sudo curl....waydroing.gpg and it gives me the permission denied thing. I also tried with "focal" and yielded the same result.

Maybe I'll leave the project for now until I get a better grasp of the terminal.

Re:Waydroid – Run Android containers on Ubuntu by sxldier on Wednesday September 22, 2021 @10:31PM (#28624637)
When invoking `sudo`, you're escalating privileges on the command followed but that doesn't apply to the redirection of output (`>`). So it's saying permission denied to write to the files. You'll need to do something like `curl | sudo tee /path/to/file`. Same with `echo`.
Re:Waydroid – Run Android containers on Ubuntu by marcodiego on Wednesday September 22, 2021 @10:29PM (#28624629)
Try one command at a time:

export DISTRO="focal"

sudo curl https://repo.waydro.id/waydroid.gpg > /usr/share/keyrings/waydroid.gpg

sudo echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ $DISTRO main" > /etc/apt/sources.list.d/waydroid.list

sudo apt update

Re:Waydroid – Run Android containers on Ubuntu by potyl on Thursday September 23, 2021 @12:21AM (#28625188)
Try this command (sudo is needed only for writing files):

  DISTRO="focal"

  sudo curl https://repo.waydro.id/waydroid.gpg -o /usr/share/keyrings/waydroid.gpg

  echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ $DISTRO main" | sudo tee /etc/apt/sources.list.d/waydroid.list

  sudo apt update
  sudo apt install waydroid
Re:Waydroid – Run Android containers on Ubuntu by tyroh on Thursday September 23, 2021 @12:43AM (#28625280)
this worked for me, thank you very much potyl!
Re:Waydroid – Run Android containers on Ubuntu by hereme888 on Thursday September 23, 2021 @07:11AM (#28627631)
Oh it almost worked! I got as far as the apt install waydroid this time.

However, it gave me this error:

The following packages have unmet dependencies: python3-gbinder : Depends: python3 (< 3.9) but 3.9.4-1 is to be installed

How do I downgrade python?