davidcallanan / os-series

820 stars 120 forks source link

Error when installing packages #80

Open jenspto opened 1 year ago

jenspto commented 1 year ago

I got error executing this command: docker build buildenv -t myos-buildenv Log: Sending build context to Docker daemon 2.048kB Step 1/9 : FROM randomdude/gcc-cross-x86_64-elf latest: Pulling from randomdude/gcc-cross-x86_64-elf e79bb959ec00: Pull complete f050fc6c689b: Downloading [=================================================> ] 118.9MB/119.9MB 442cb3d16d02: Downloading [===================> ] 57.3 f050fc6c689b: Pull complete 442cb3d16d02: Pull complete 14d94ff98d19: Pull complete a4ae10eb5f5e: Pull complete e902f4d76ec4: Pull complete 5db60b077f02: Pull complete Digest: sha256:2ca589df09c1161268b48022be127e72477b0b501cd605b5af2bce7a159a853a Status: Downloaded newer image for randomdude/gcc-cross-x86_64-elf:latest ---> c7e17c42eb04 Step 2/9 : RUN apt-get update ---> Running in c30f4675962f Ign:1 http://security.debian.org/debian-security stretch/updates InRelease Err:2 http://security.debian.org/debian-security stretch/updates Release 404 Not Found Ign:3 http://deb.debian.org/debian stretch InRelease Ign:4 http://deb.debian.org/debian stretch-updates InRelease Err:5 http://deb.debian.org/debian stretch Release 404 Not Found Err:6 http://deb.debian.org/debian stretch-updates Release 404 Not Found Reading package lists... E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file. E: The repository 'http://deb.debian.org/debian stretch Release' does no longer have a Release file. E: The repository 'http://deb.debian.org/debian stretch-updates Release' does no longer have a Release file. The command '/bin/sh -c apt-get update' returned a non-zero code: 100

jonasinus commented 1 year ago

I have the same issue. when I try to run a newer version of debian (i.e. debian:bullseye), everything works fine. so I guess it has something to do with the update-servers? but idk

Kjur0 commented 1 year ago

It isn't strictly this respository issue, but more like no longer supported distro issue. Basically you have 2 options: -switch to newer linux, possibly create your own docker image with it -find some good archives with everything you need

Sudeep-Sharma0-0 commented 1 year ago
# Use Debian Buster as the base image
FROM debian:buster

# Update and install essential packages
RUN apt-get update \
    && apt-get upgrade -y \
    && apt-get install -y xorriso grub-common grub-pc-bin nasm \
    && apt-get install -y build-essential gcc-multilib gcc-mingw-w64

# Create a volume and set the working directory
VOLUME /root/env
WORKDIR /root/env

# Copy the contents of the current directory to the container's working directory
COPY ./ /root/env/

Use this docker file. Then after you log on to the shell of docker container download Toolchain then extract the tar.xz to /opt/ in the container. Then add export PATH=/opt/x86_64-elf-7.5.0-Linux-x86_64/bin:$PATH to .bashrc in the docker container. And finally source .bashrc