Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1535  / 2 Years ago, mon, august 15, 2022, 8:52:41

I'm trying to update Linux, I am running 18.04.4 LTS. It has been failing to update for a while now and it's the first moment I have had to look into it. This is the error I am getting


Err:1 http://apt.insync.io/ubuntu bionic/non-free amd64 insync amd64 3.2.6.40863-bionic
403 Forbidden [IP: 52.216.102.123 80]
E: Failed to fetch http://apt.insync.io/ubuntu/pool/non-free/i/insync/insync_3.2.6.40863-bionic_amd64.deb 403 Forbidden [IP: 52.216.102.123 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

There was some software that I was using call insync that synced computers between two remote locations. That software is no longer being used or installed.


I have tried with the recommended run apt-get update. I then get these messages.


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)

Any ideas?


More From » apt

 Answers
2

You need to run it with sudo. For example, apt update should be sudo apt update.


If you just want to do standard normal updates (e.g., if you want to update the packages, and not just the package list), the proper command is sudo apt update && sudo apt upgrade. The sudo tells Ubuntu to run the command as the superuser, which is the Linux equivalent of an administrator. The superuser has permission to run that command, your user doesn't. Hence, why when you run it without sudo, it fails. Also, if you aren't using Insync anymore, you can remove the package repo by following the directions here.


[#1023] Tuesday, August 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
turhizz

Total Points: 82
Total Questions: 106
Total Answers: 96

Location: South Korea
Member since Mon, Dec 6, 2021
2 Years ago
;