pysamp / PySAMP

Create SA-MP gamemodes with Python
Apache License 2.0
112 stars 28 forks source link

Docker problem #90

Closed UHPS closed 2 years ago

UHPS commented 2 years ago

Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/jammy/main/binary-i386/Packages 404 Not Found

dennorske commented 2 years ago

Hi and welcome to PySAMP, Thanks for posting the issue!

Can you provide a little more context to what you are doing? Are you running the default docker setup? :) What command are you running to start the docker setup?

Thanks!

UHPS commented 2 years ago

Hello. I installed docker, and running Docker/run.sh

Снимок экрана 2022-07-17 в 17 01 19

UHPS commented 2 years ago

P.s. im trying change "FROM i386/ubuntu"

But have other error

6 108.1 Cloning into 'samp-plugin-sdk'...

6 109.8 Cloning into 'PySAMP'...

6 112.0 Reading package lists...

6 116.8 Building dependency tree...

6 117.5 Reading state information...

6 117.7 E: Unable to locate package python2

dennorske commented 2 years ago

Not sure why you cannot fetch the packages, it works just fine for me pulling the repo.

CAn you verify you are not on a bad network or have bad dns configuration?

UHPS commented 2 years ago

I trying change to 8.8.8.8 DNS, trying connect via mobile internet. Same problem

6 7.969 Fetched 21.0 MB in 8s (2705 kB/s)

6 7.969 Reading package lists...

6 7.977 E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/jammy/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]

6 7.977 E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/jammy-updates/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]

6 7.977 E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/jammy-backports/universe/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]

6 7.977 E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/jammy-security/restricted/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]

6 7.977 E: Some index files failed to download. They have been ignored, or old ones used instead.

dennorske commented 2 years ago

We notice that you are running (most likely) on an M1/M2 (ARM) based CPU that most likely is causing this. Because of this, your docker is pulling an image that runs natively on that architecture.

Please read here: https://docs.docker.com/desktop/mac/apple-silicon/#known-issues

You need to force your docker to download the x86 images and run those under emulation. Try adding this flag to your run.sh:

--platform linux/amd64

Reference (docker run): https://docs.docker.com/engine/reference/commandline/run/

Cheaterman commented 2 years ago

If I missed it somewhere, please let me know @UHPS since I can't test that here.