Lotoen
Docker can’t install build essentials error: Package build-essential is not available
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
_buildanddepsfolder -
using the default mirrors, main mirrors, and trying switch up the mirrors in Software Sources
Any help would be appreciated !
Most Liked
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.
3
Popular in Troubleshooting
When I compile hex package io_ansi_plus, I get error “Codepoint failed”. Why? and why are the “Got:” and “Hint:” codepoints identical? It...
New
Currently reading and experimenting through, which is in 1.6 Chapter 7: Sign up | Phoenix Tutorial (Phoenix 1.6) | Softcover.io
In regar...
New
Hello everyone.
I’m the author of GitHub - bugnano/wtransport-elixir: Elixir bindings for the WTransport WebTransport library · GitHub ,...
New
Environment
Elixir 1.18.3-otp-27 / OTP 27.3.4
Oban 2.20.2
Phoenix 1.7.x
db_connection 2.8.1 / Postgrex 0.21.1
Infrastructure: Google Cl...
New
Environment
Oban Pro: 1.7.6
Oban: 2.22.1
Issue
When a sub-workflow built with Workflow.put_context/2 is attached to a parent via ...
New
We recently started running Oban with Oban Web on PostgreSQL (AWS RDS gp3) and noticed our oban_jobs buffer cache hit ratio sitting at 65...
New
Experienced programmer writer her first Elixir, and maybe bit off more than she can chew?
I’m trying to start two GenServers, where the ...
New
A graft inside another graft causes Oban.Pro.Workflow.status to recurse forever. oban_pro 1.7.5
defmodule App.NestedGraftRepro.Test do
...
New
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...
New
I have three modules, a Business which is associated Tags and Categories though join tables business_tags and business_categories. I inte...
New
Other popular topics
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
New
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
Using vs code and installed ElixirLS: support and debugger.
And I got an error popped up on start up says
Failed to run ‘elixir’ comma...
New
I have VueJS GUIs with the project generated using Webpack.
I have Elixir modules that will need to be used by the VueJS GUIs.
I forese...
New
I tried installing
elixir 1.11.2
erlang 23.3.4
via asdf in my zsh shell. Enabled the versions locally and globally.
When I list them ...
New
What is the proper way to load a module from a file in to IEX?
In the python world, doing something like this pretty standard:
from ....
New
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including.
What is Phoenix LiveV...
New
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)?
Would
mix ecto.rollback -v 200809061...
New
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









