I am encountering an error while trying to update my Kali installation:
┌──(gamb1t㉿kali)-[~]
└─$ apt update
Error: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
Error: Unable to lock directory /var/lib/apt/lists/
Warning: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
Warning: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
You are forgetting to add sudo before your command. You can tell you do not have permissions due to this line:
(13: Permission denied)
If you do the following command, you will be able to update:
┌──(gamb1t㉿kali)-[~]
└─$ sudo apt update
[sudo] password for gamb1t:
Please note that you will have to input your user password, and when typing the letters will not appear. Just input your password like normal and you will be able to update Kali.