cloudfoundry / apt-buildpack

MIT License
31 stars 48 forks source link

Need option to invoke apt-get update #12

Closed greggbjensen closed 6 years ago

greggbjensen commented 6 years ago

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

2.109.0 6.37.0+a40009753.2018-05-25

What version of the buildpack you are using?

The latest version from the master branch

If you were attempting to accomplish a task, what was it you were attempting to do?

I am trying to install the gss-ntlmssp package as part of a v3-push.

What did you expect to happen?

It would update and find the gss-ntlmssp package.

What was the actual behavior?

It cannot find the package, and there doesn't seem to be an option to do apt-get update.

Please confirm where necessary:

Steps to reproduce

  1. Create application with apt.yml file having gss-ntlmssp package
  2. Do a cf v3-push with the apt-buildpack and any other buildpack
  3. Push fails to find gss-ntlmssp package, and there is no option to tell apt-get to update

apt.yml

---
packages:
- gss-ntlmssp

Log

   -----> Apt Buildpack version 0.1.2
   -----> Updating apt cache
   -----> Downloading apt packages
   E: Unable to locate package gss-ntlmssp
          **ERROR** Failed to download apt packages: exit status 100
          Reading package lists...
          Building dependency tree...

   Failed to run all supply scripts: exit status 14
   Exit status 225
cf-gitbot commented 6 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/158611188

The labels on this github issue will be updated when the story is started.

sclevine commented 6 years ago

The error message is correct. That package is not present in Ubuntu Trusty (14.04). When we release cflinuxfs3 based on Ubuntu Bionic (18.04), this will work.

greggbjensen commented 6 years ago

Okay, thanks. Is there any short term workaround?

sclevine commented 6 years ago

Ubuntu packages are not cross-compatible across major releases. Here the various NTLM-related ubuntu packages that are available: https://packages.ubuntu.com/search?keywords=ntlm

It may be possible to compile gss-ntlmssp on trusty yourself and create a buildpack that supplies it. We provide the cloudfoundry/cflinuxfs2 Docker image for this purpose.

greggbjensen commented 6 years ago

@sclevine thanks for your help and the information. This issue can be closed for me.