ParrotSec / docker-images

GNU General Public License v3.0
95 stars 25 forks source link

Broken location for packages #15

Closed Kr0ff closed 2 years ago

Kr0ff commented 2 years ago

I am trying to build a custom Dockerfile for a Parrotsec docker container to support desktop access.

It seems that using certain packages such as parrot-pico, parrot-tools-common, parrot-tools and other similar meta-packages cause certain domains to return a "404 Not Found" for the needed dependency packages.

Prior to fetching the meta-packages I mentioned above, I am running:

RUN export DEBIAN_FRONTEND=noninteractive && \
    apt update && \
    apt upgrade -y && \
    apt install -y \
    <META_PACKAGE>

with the belief that this would prevent APT from getting those annoying 404 errors.

This essentially breaks the build of the container and there isn't really a workaround I believe but could be wrong.

I would recommend collecting all packages for meta-packages and hosting them on just one domain e.g https://deb.parrot.sh/parrot/

That way maintainers will be able to easily update and track old packages and update faster.

Example of what I'm getting as an error from APT

#5 546.2 E: Failed to fetch https://ftp.nluug.nl/os/Linux/distr/parrot/pool/main/v/vulkan-loader/libvulkan1_1.2.182.0-2~bpo11+1_amd64.deb  Error reading from server - read (5: Input/output error) [IP: 145.220.21.40 443]
#5 546.2 E: Failed to fetch https://ftp.halifax.rwth-aachen.de/parrotsec/pool/main/c/cups/libcups2_2.3.3op2-3+deb11u1_amd64.deb  Error reading from server - read (5: Input/output error) [IP: 137.226.34.46 443]
#5 546.2 E: Failed to fetch https://mirror.cspacehostings.com/parrotsec/pool/main/t/talloc/libtalloc2_2.3.1-2+b1_amd64.deb  404  Not Found [IP: 45.142.100.34 443]
#5 546.2 E: Failed to fetch https://mirror.cspacehostings.com/parrotsec/pool/main/t/tdb/libtdb1_1.4.3-1+b1_amd64.deb  404  Not Found [IP: 45.142.100.34 443]
#5 546.2 E: Failed to fetch https://mirror.cspacehostings.com/parrotsec/pool/main/a/acl/acl_2.2.53-10_amd64.deb  404  Not Found [IP: 45.142.100.34 443]
#5 546.2 E: Failed to fetch https://mirror.cspacehostings.com/parrotsec/pool/main/w/wavpack/libwavpack1_5.4.0-1_amd64.deb  404  Not Found [IP: 45.142.100.34 443]
#5 546.2 E: Failed to fetch https://ftp.halifax.rwth-aachen.de/parrotsec/pool/main/d/dc3dd/dc3dd_7.2.646-4_amd64.deb  Error reading from server - read (5: Input/output error) [IP: 137.226.34.46 443]
#5 546.2 E: Failed to fetch https://mirror.cspacehostings.com/parrotsec/pool/main/p/pocl/libpocl2-common_1.6-5_all.deb  404  Not Found [IP: 45.142.100.34 443]
#5 546.2 E: Failed to fetch https://mirror.cspacehostings.com/parrotsec/pool/main/a/armadillo/libarmadillo10_10.1.2+dfsg-6+b1_amd64.deb  404  Not Found [IP: 45.142.100.34 443]
#5 546.2 E: Failed to fetch https://mirror.cspacehostings.com/parrotsec/pool/main/p/pkg-config/pkg-config_0.29.2-1_amd64.deb  404  Not Found [IP: 45.142.100.34 443]
#5 546.2 E: Failed to fetch https://mirrors.aliyun.com/parrot//pool/main/libf/libfs/libfs6_1.0.8-1_amd64.deb  Undetermined Error [IP: 79.133.176.212 443]Fetched 1887 MB in 8min 57s (3511 kB/s)
#5 546.2
#5 546.2 E: Failed to fetch https://mirror.cspacehostings.com/parrotsec/pool/main/p/python-bcrypt/python3-bcrypt_3.1.7-4_amd64.deb  404  Not Found [IP: 45.142.100.34 443]
#5 546.2 E: Failed to fetch https://mirror.cspacehostings.com/parrotsec/pool/main/t/truecrack/truecrack_3.6+git20150326-0parrot2_amd64.deb  404  Not Found [IP: 45.142.100.34 443]
#5 546.2 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
------
PalinuroSec commented 2 years ago

looks like a temporari issue with the repo, nothing wrong with the container configs. it seems like it is working as expected now

Kr0ff commented 2 years ago

Thanks i will test and come back with results

Kr0ff commented 2 years ago

I've done some testing and it keeps breaking on random packages. That said the issue is not related to the container, but I reported it mainly so the devs are aware of this (not that much can be done...).

Im closing the issue now. Thanks !

PalinuroSec commented 2 years ago

i am adding and apt configuration flag to retry a failed download 4 times before giving up. give me a moment to build, test and commit it