-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run apt-get from dockerfile after Ubuntu 19.04 EOL #1398
Comments
Hi @lechien73! Sorry for the disruption. As mentioned via email, we actually upgraded to 19.04 almost a year ago: gitpod-io/workspace-images#94 However, what probably caused the recent breakage is that 19.04 reached end-of-life on 23 January 2020: https://wiki.ubuntu.com/Releases so I think many Apt repositories are now pulling their packages for Disco (I know at least In hindsight, it was a mistake to upgrade to a non-LTS version of Ubuntu. We're now in the process of upgrading to Ubuntu 20.04 LTS: gitpod-io/workspace-images#196 However, it's officially released toward the end of this month, so there may still be a few rough edges to smooth out. |
See also gitpod-io/workspace-images#203 where I'm planning to run a few experiments and see if we can quickly fix your build. |
@lechien73 Oh, one more thing: I notice in your Dockerfile that you're running That's problematic, and could be the root cause of the When you do: RUN sudo apt-get update
RUN sudo apt-get install -y something Both instructions can be cached at different points in time, which means that the result from Instead, it's important to do: RUN sudo apt-get update && \
sudo apt-get install -y something whenever you want to And while we're here, if you add To summarize, you'll want something like this: Dockerfile
RUN sudo apt-get update && \
sudo apt-get install -y something && \
sudo rm -rf /var/lib/apt/lists/* |
Thanks Jan, unfortunately the same problem happens even with a standard |
Yes, the actual issue is that Disco has been removed from the Ubuntu repos: http://archive.ubuntu.com/ubuntu/dists/ |
Indeed. 🤦 I confirm that all Gitpod image builds are now broken: The errors are the same as yours:
This means that workspaces with a custom .gitpod.Dockerfile that's using However, workspaces that don't have a custom Dockerfile, or that have a custom Dockerfile which doesn't use We'll try to fix this as soon as possible. |
@Kreyren would just use debian stable assuming ubuntu being maintained by incompetent developers and is being pita to manage in production system |
Update: We've merged the Ubuntu Focal 20.04 upgrade. A new Other images like EDIT: If you don't want to wait, these images are already available:
|
Re-update: These images are now based on Ubuntu 20.04:
|
Ok, all major Gitpod images online are now based on Ubuntu 20.04, which fixes this issue. Thanks for your patience! |
Describe the bug
Our custom dockerfile installs tools and runs
apt-get update -y
. Since the update to Ubuntu 19.04, this now causes an error. The text is below and a screenshot is attached:Reading package lists...
E: The repository 'http://archive.ubuntu.com/ubuntu disco Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu disco-updates Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu disco-backports Release' does not have a Release file.
E: The repository 'http://security.ubuntu.com/ubuntu disco-security Release' does not have a Release file.
build failed: cannot build base image: The command '/bin/sh -c apt-get update -y' returned a non-zero code: 100
Error: build failed: cannot build base image: The command '/bin/sh -c apt-get update -y' returned a non-zero code: 100
Steps to reproduce
Create a new repository using this template: https://github.com/Code-Institute-Org/gitpod-full-template
Attempt to open the resulting repo in Gitpod.
Expected behavior
A new workspace is created containing the tools we were able to install using Ubuntu 18.04
The text was updated successfully, but these errors were encountered: