rake-compiler / rake-compiler-dock

Easy to use and reliable cross compiler environment for building Windows, Linux, Mac and JRuby binary gems.
MIT License
77 stars 30 forks source link

apt-get update in container no longer works #19

Closed headius closed 6 years ago

headius commented 6 years ago

I got around this by running the command without apt-get update but perhaps the Ubuntu images need to be updated.

[] ~/projects/ffi $ rake gem:windows
Ignoring puma-3.10.0 because its extensions are not built.  Try: gem pristine puma --version 3.10.0
rake-compiler-dock bash -c "sudo apt-get update && sudo apt-get install -y libltdl-dev && bundle && rake cross native gem MAKE='nice make -j`nproc`'"
Ign:1 http://archive.ubuntu.com/ubuntu zesty InRelease
Ign:2 http://security.ubuntu.com/ubuntu zesty-security InRelease           
Ign:3 http://archive.ubuntu.com/ubuntu zesty-updates InRelease             
Err:4 http://security.ubuntu.com/ubuntu zesty-security Release
  404  Not Found [IP: 91.189.91.26 80]
Ign:5 http://archive.ubuntu.com/ubuntu zesty-backports InRelease
Err:6 http://archive.ubuntu.com/ubuntu zesty Release
  404  Not Found [IP: 91.189.88.149 80]
Err:7 http://archive.ubuntu.com/ubuntu zesty-updates Release
  404  Not Found [IP: 91.189.88.149 80]
Err:8 http://archive.ubuntu.com/ubuntu zesty-backports Release
  404  Not Found [IP: 91.189.88.149 80]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu zesty-security Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu zesty Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu zesty-updates Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu zesty-backports Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
rake aborted!
Command failed with status (100): [docker run -v /Users/headius/projects/ffi:/Users/headius/projects/ffi -e UID\=1000 -e GID\=1000 -e USER\=headius -e GROUP\=_staff -e ftp_proxy\= -e http_proxy\= -e https_proxy\= -e RCD_HOST_RUBY_PLATFORM\=x86_64-darwin17 -e RCD_HOST_RUBY_VERSION\=2.3.4 -e RCD_IMAGE\=larskanis/rake-compiler-dock:0.6.2 -w /Users/headius/projects/ffi --rm -i -t larskanis/rake-compiler-dock:0.6.2 runas sigfw bash -c sudo\ apt-get\ update\ \&\&\ sudo\ apt-get\ install\ -y\ libltdl-dev\ \&\&\ bundle\ \&\&\ rake\ cross\ native\ gem\ MAKE\=\'nice\ make\ -j\`nproc\`\']
/Users/headius/.gem/ruby/2.3.4/gems/rake-compiler-dock-0.6.2/lib/rake_compiler_dock/starter.rb:82:in `exec'
/Users/headius/.gem/ruby/2.3.4/gems/rake-compiler-dock-0.6.2/lib/rake_compiler_dock/starter.rb:15:in `sh'
/Users/headius/.gem/ruby/2.3.4/gems/rake-compiler-dock-0.6.2/lib/rake_compiler_dock.rb:36:in `sh'
/Users/headius/projects/ffi/Rakefile:205:in `block in <top (required)>'
/Users/headius/.gem/ruby/2.3.4/gems/rake-12.2.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => gem:windows
(See full trace by running task with --trace)