Lotoen

Lotoen

Hi, I’m on Linux Mint 22.3 - Cinnamon 64-bit, and I encountered an error when trying to build an elixir phoenix container


577.1 Reading package lists...
577.1 Building dependency tree...
577.1 Reading state information... 577.1 Package build-essential is not available, but is referred to by another package. 577.1 This may mean that the package is missing, has been obsoleted, or 577.1 is only available from another source 577.1 577.1 E: Package 'build-essential' has no installation candidate 577.1 E: Unable to locate package inotify-tools 577.1 E: Unable to locate package postgresql-client ------


Also my dockerfile up to that command is:

FROM elixir:1.18-otp-27

WORKDIR /app

ENV MIX_ENV=dev

RUN apt-get update && \
    apt-get install --yes build-essential inotify-tools postgresql-client git && \
    apt-get clean 


I’ve already tried

  • restarting the docker container

  • resetting the docker cache

  • restarting vscode

  • deleting the _build and deps folder

  • using the default mirrors, main mirrors, and trying switch up the mirrors in Software Sources

Any help would be appreciated !

First 3 of 3 Posts Switch mode

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

In general I would strongly recommend using the official hexpm images, rather than the elixir image managed by your distro.

Here hexpm/elixir - Docker Image you can choose exactly which core distro you want, elixir version, and erlang version.

Lotoen

Lotoen OP

Thanks for providing docker images from hexpm, but is there any way I can get a image for a version of elixir past 1.18 ? I can’t seem to find one there.

dimitarvp

dimitarvp

You can’t? I use those in my GHA CI and prod deployments. There are absolutely are 1.19 images.

— All posts loaded —

Where Next? Top

Trending in Troubleshooting Top

interpretive_scholar
I am trying to build a container for a new Phoenix app that I want to deploy in our kubernetes cluster. The container blows up when it ...
New
odix67
Hi, I have to build an app also on windows, since some time, I do not know it exactly, I ran into the the issue below during download of...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement