[Verified Issue] Error updating packages after fresh installation

Hi, Parrot community!

I’m unable to update my system and packages after a fresh installation.

Basic info:

  • New, clean installation on real HW (no VM)
  • Parrot Security 6.0
  • Connected via WiFi

What I tried:

  • sudo apt-get update && sudo apt-get upgrade
  • sudo parrot-upgrade
  • Synaptic package manager

This is the output from the Synaptic package manager:

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/gir1.2-webkit2-4.0_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 172.104.249.136 443]


W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 172.104.249.136 443]


W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/gir1.2-javascriptcoregtk-4.0_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 172.104.249.136 443]


W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libjavascriptcoregtk-4.0-18_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 172.104.249.136 443]


W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libwebkit2gtk-4.1-0_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 172.104.249.136 443]


W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libjavascriptcoregtk-4.1-0_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 172.104.249.136 443]

What I get after running sudo parrot-upgrade:

Hit:1 https://deb.parrot.sh/parrot lory InRelease
Hit:2 https://deb.parrot.sh/direct/parrot lory-security InRelease
Hit:3 https://deb.parrot.sh/parrot lory-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/parrot.list:19
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Could not get lock /var/cache/apt/archives/lock. It is held by process 3669 (synaptic)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/cache/apt/archives/
failed to fix conflicts
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
E: Could not get lock /var/cache/apt/archives/lock. It is held by process 3669 (synaptic)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/cache/apt/archives/

Hopefully my post doesn’t violate the forum rules, I checked other similar topics, but couldn’t reply to them (they were closed) and I didn’t find a solution to my problem.

Did you ever get it figured out? I am having the same problem. [email protected] let me know please

Unfortunately no solution yet. Still waiting for tips from the more experienced community here.

Hi @kuker

This is an issue recently reported. To fix it you will need to edit as root /etc/apt/sources.list and comment out (#) the two lines…

# deb https://deb.parrot.sh/parrot/ lory non-free contrib main  
# deb-src https://deb.parrot.sh/parrot/ lory non-free contrib main

It looks like /etc/apt/sources.list.d/parrot.list is now preferred.

1 Like

Hello @Masmer and thank you for the help.
However it, unfortunately, didn’t fix the problem.

Updating using Synaptic outputs the following errors:

W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/gir1.2-webkit2-4.0_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 139.162.164.97 443]


W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 139.162.164.97 443]


W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/gir1.2-javascriptcoregtk-4.0_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 139.162.164.97 443]


W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libjavascriptcoregtk-4.0-18_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 139.162.164.97 443]


W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libwebkit2gtk-4.1-0_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 139.162.164.97 443]


W: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libjavascriptcoregtk-4.1-0_2.42.5-1%7edeb12u1_amd64.deb
  404  Not Found [IP: 139.162.164.97 443]

Updating using sudo parrot-upgrade outputs pretty much the same error. I’m adding it here just in case (to have the complete output from the terminal):

Hit:1 https://deb.parrot.sh/parrot lory InRelease
Hit:2 https://deb.parrot.sh/direct/parrot lory-security InRelease
Hit:3 https://deb.parrot.sh/parrot lory-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 libjavascriptcoregtk-4.0-18
  libjavascriptcoregtk-4.1-0 libwebkit2gtk-4.0-37 libwebkit2gtk-4.1-0
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 55,9 MB of archives.
After this operation, 57,3 kB of additional disk space will be used.
Err:1 https://deb.parrot.sh/direct/parrot lory-security/main amd64 gir1.2-webkit2-4.0 amd64 2.42.5-1~deb12u1
  404  Not Found [IP: 139.162.164.97 443]
Err:2 https://deb.parrot.sh/direct/parrot lory-security/main amd64 libwebkit2gtk-4.0-37 amd64 2.42.5-1~deb12u1
  404  Not Found [IP: 139.162.164.97 443]
Err:3 https://deb.parrot.sh/direct/parrot lory-security/main amd64 gir1.2-javascriptcoregtk-4.0 amd64 2.42.5-1~deb12u1
  404  Not Found [IP: 139.162.164.97 443]
Err:4 https://deb.parrot.sh/direct/parrot lory-security/main amd64 libjavascriptcoregtk-4.0-18 amd64 2.42.5-1~deb12u1
  404  Not Found [IP: 139.162.164.97 443]
Err:5 https://deb.parrot.sh/direct/parrot lory-security/main amd64 libwebkit2gtk-4.1-0 amd64 2.42.5-1~deb12u1
  404  Not Found [IP: 139.162.164.97 443]
Err:6 https://deb.parrot.sh/direct/parrot lory-security/main amd64 libjavascriptcoregtk-4.1-0 amd64 2.42.5-1~deb12u1
  404  Not Found [IP: 139.162.164.97 443]
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/gir1.2-webkit2-4.0_2.42.5-1%7edeb12u1_amd64.deb  404  Not Found [IP: 139.162.164.97 443]
E: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.42.5-1%7edeb12u1_amd64.deb  404  Not Found [IP: 139.162.164.97 443]
E: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/gir1.2-javascriptcoregtk-4.0_2.42.5-1%7edeb12u1_amd64.deb  404  Not Found [IP: 139.162.164.97 443]
E: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libjavascriptcoregtk-4.0-18_2.42.5-1%7edeb12u1_amd64.deb  404  Not Found [IP: 139.162.164.97 443]
E: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libwebkit2gtk-4.1-0_2.42.5-1%7edeb12u1_amd64.deb  404  Not Found [IP: 139.162.164.97 443]
E: Failed to fetch https://deb.parrot.sh/direct/parrot/pool/main/w/webkit2gtk/libjavascriptcoregtk-4.1-0_2.42.5-1%7edeb12u1_amd64.deb  404  Not Found [IP: 139.162.164.97 443]

I assume the problem might be with the parrot.list file. In which case that’s an indication that V6 of the OS ships with a faulty mirrors list maybe? I don’t want to make any conclusions, just reminding of the fact that I have a brand new, clean installation on a real HW.

Well, I see that repo mirror 139.162.164.97 does not allow https (port 443). I would either change all the https to http and then try sudo parrot-upgrade.

Or try out a different mirror. I’m in the U.S., but found the Italy mirror to be fast. It is possibly the parent repo that the main developer, Lorenzo “Palinuro” Faletra uses, which may sync with other mirrors which sometimes fail.

Wherever parrot.list has

https://deb.parrot.sh/direct/parrot

Replace it with

https://parrot.mirror.garr.it/mirrors/parrot

At least that’s what I do after installing Parrot.

2 Likes

Hello!
I’m a new user of parrot
What I’ve done to solve that problem is commenting what wad in parrot.list and then i added Index of /parrot/ lory-updates Inrelease

1 Like

Alrite thanks