Here is a error when i run this command (sudo apt-get update).
sudo apt-get update.
Hit:1 Index of /parrot/ lory InRelease emphasized text
Hit:2 Index of /direct/parrot/ lory-security InRelease
Get:3 Index of /parrot/ lory-backports InRelease [29.6 kB]
Get:4 Index of /parrot/ lory-backports/main amd64 Packages [394 kB]
Err:4 Index of /parrot/ lory-backports/main amd64 Packages
File has unexpected size (393870 != 393884). Mirror sync in progress? [IP: 172.232.193.236 443]
Hashes of expected file:
MD5Sum:e5f8a6166febcd00de7de2db896b8ab4 [weak]
Release file created at: Wed, 14 Feb 2024 14:53:05 +0000
Get:5 Index of /parrot/ lory-backports/contrib amd64 Packages [10.3 kB]
Get:6 Index of /parrot/ lory-backports/non-free amd64 Packages [1,555 B]
Reading package lists… Done
E: Failed to fetch https://deb.parrot.sh/parrot/dists/lory-backports/main/binary-amd64/Packages.gz File has unexpected size (393870 != 393884). Mirror sync in progress? [IP: 172.232.193.236 443]
Hashes of expected file:
- Filesize:393884 [weak]
- SHA256:2c97dcc05db070ed44a462e5f7e19549cfc14ccc613ebbcfe88df74fb007c525
- SHA1:7cb9d5d87a021468e9625e2eba6a9c077b96c347 [weak]
- MD5Sum:e5f8a6166febcd00de7de2db896b8ab4 [weak]
Release file created at: Wed, 14 Feb 2024 14:53:05 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
## Backports ##
###############
## The stable repository contains software that is considered stable the day of
## the release. such packages receive only security and stability updates that
## don't introduce new features and don't drop old ones.
##
## the 'backports' repository provides feature updates to many packages, and
## even external software that was originally excluded from the stable release.
##
## disable it if you prefer stability and reliability over bleeding edge features
deb https://parrot.mirror.garr.it/mirrors/parrot/ lory-backports main contrib non-free non-free-firmware
The easy way to modify the file without a bunch of pain is to use the command you stated sudo pluma /ect/aptsources.list.d/parrot.list
Then just put a # (hash) in front of the back port repo to comment it out. Then go down further until you see the list of the worldwide repo mirrors and uncomment one near you by removing the # (hash). Save the file with ctrl+s, you do not even need to close the text file to see if that fixes your issue.
Run sudo apt update && sudo apt full-upgrade, or sudo parrot-upgrade. If the keyring continues to be an issue put the hash back and try a diffrent one. I am from the USA so I used the MIT mirror. This fixed it for me. Thanks to Masmer for the help.
If you leave the text file open and only save it until you fix the issue then you have ctrl+z to go back in case of errors. Just incase you get lost in unfamilar teritory. It happens to me.