Score:2

Help adding packages to list

id flag

I want to install Genie on WSL2. To add a new repository it provides these instructions to add the repo source. However I keep hitting this error bash: /etc/apt/sources.list.d/wsl-transdebian.list: Permission denied,

The installation instructions says run the following commands in sudo -s:

wget -O /etc/apt/trusted.gpg.d/wsl-transdebian.gpg https://arkane-systems.github.io/wsl-transdebian/apt/wsl-transdebian.gpg

chmod a+r /etc/apt/trusted.gpg.d/wsl-transdebian.gpg

cat << EOF > /etc/apt/sources.list.d/wsl-transdebian.list
deb https://arkane-systems.github.io/wsl-transdebian/apt/ $(lsb_release -cs) main
deb-src https://arkane-systems.github.io/wsl-transdebian/apt/ $(lsb_release -cs) main
EOF

apt update

When I run the cat command it comes up with a > in the terminal. I then enter the deb commands, are these prefixed with sudo -s also? I have tried with and without sudo -s but cannot get it to work.

Score:1
cn flag

Use sudo tee:

cat << EOF | sudo tee /etc/apt/sources.list.d/wsl-transdebian.list
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.