Trouble updating kali

Status
Not open for further replies.

aaryan

New Member
Joined
Sep 29, 2020
Messages
18
Reaction score
0
Credits
392
apt-get update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
 


f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,900
Reaction score
3,526
Credits
35,667
You need sudo, so like this.
Code:
sudo apt-get update
sudo apt-get upgrade
I think you should be able to use apt too, it's a matter of preference.
Code:
sudo apt update
sudo apt upgrade
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,503
Reaction score
6,350
Credits
26,518
Locking this with a view to delete.

The OP has a bunch of other Threads going and has been given instructions.

Thanks @f33dm3bits

Wizard
 
Status
Not open for further replies.
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top