New answers tagged

0 votes

Can't connect with ssh, Aws ec2 instance

As elaborated on in this question, the command you issued was fatal beyond recovery. You most likely have to use your backup to restore your system. If you don't have a backup ( :-((( ), you can ...
zx485's user avatar
  • 2,416
0 votes

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

For me this works most of the times, with the caveat that any of the above solutions might break the update or upgrade process and might need fixing afterwards sudo killall apt apt-get dpkg The above ...
Eduard Florinescu's user avatar
0 votes

User in sudo group cannot use sudo command

Reboot your system It may seem silly to post this as an answer, but I wasted ages trying to figure out why my system (Debian 12) continued to tell me that my user was not in the sudoers file even ...
user3728501's user avatar
  • 1,054
0 votes

How to use a python virtualenv with sudo?

I'd like to add my answer because I stumbled across the same problem right now. But I created a shell script for a repo, and therefore I didn't want to use a hardcoded path. The following is what I am ...
RapidEdgeAI's user avatar
2 votes

Unable to execute sudo command from ssh agent; getting "Sorry, try again", but the same password works in the server

According to a comment by Rinzwind, "Sorry, try again" means the password is incorrect. This is probably because the password contains special characters and a different keyboard layout is ...
0 votes

How to avoid using sudo when working in /var/www?

This variation is much like Lekensteyn's first solution, where www-data is given sticky read-only access, and a specific user has write access. It also allows directory traversal in cases where you ...
Walf's user avatar
  • 398
0 votes

VirtualBox Ubuntu 22.04: how to add sudo rights?

Switch to the root user: su - Edit the sudoers file using the visudo command: visudo In the sudoers file, locate the line that looks like: %sudo ALL=(ALL:ALL) ALL Below that line, add the ...
Aishwarya Patil's user avatar
0 votes

"Set document metadata failed" when I run sudo gedit

enter image description here In my case, I was able to remove it by putting &>/dev/null on similar warnings.
yoyoceci's user avatar
0 votes

Using rsync with sudo

The sudo -v option doesn't seem to be working for some reason, perhaps because it's SSH, or because you disabled timeouts. Let's avoid it: rsync -avz --stats --rsync-path="{ echo 4321; cat; } | ...
Daniel T's user avatar
  • 4,594

Top 50 recent answers are included