Wednesday, April 24, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 4463  / 3 Years ago, fri, july 2, 2021, 9:13:20

Software Updates is capable of checking for updates and installing them without asking for a password except for kernel updates.



The same is not true for apt-get in a terminal. If you try to apt-get update without sudo you get an error: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied).



Is there a command you could run in terminal which permits updating without using sudo?


More From » apt

 Answers
7

Software Updates uses aptdaemon to do all the work. You can do that from the command line using aptdcon:



Check for updates:



aptdcon --refresh


Install updates:



aptdcon --safe-upgrade

[#27939] Saturday, July 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rtbrbab

Total Points: 461
Total Questions: 126
Total Answers: 117

Location: Saudi Arabia
Member since Fri, Jul 1, 2022
2 Years ago
;