Skip to content
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

Failed to exec method /usr/lib/apt/methods/http #1

Open
spmaniato opened this issue Aug 18, 2016 · 2 comments
Open

Failed to exec method /usr/lib/apt/methods/http #1

spmaniato opened this issue Aug 18, 2016 · 2 comments

Comments

@spmaniato
Copy link

Hi @moul , were you able to figure out this error that's mentioned in a comment of your Dockerfile?

# RUN apt-get install -y cowsay # -> failing with: Failed to exec method /usr/lib/apt/methods/http

I'm using a similar QEMU hack (Building ARM containers on any x86 machine, even DockerHub) and I'm running into the same error. The context is slightly different though. Using the hack I mentioned, I can run RUN apt-get install commands, but it fails when such a command is invoked by a Python script creating a child process that runs apt-get install.

Any pointers are very welcome. I will also follow up with the authors of the QEMU hack above.

@moul
Copy link
Contributor

moul commented Aug 22, 2016

The aptitude cache is probably invalid, try to run this before any apt-get install:

  1. apt-get clean
  2. apt-get update

@spmaniato
Copy link
Author

Thanks for getting back to me! clean and update didn't work. Same error.

I think there's something about the way that third-party Python script (rosdep) is invoking apt-get install. I'll have to look at its source code to figure it out.

For the reference of anyone seeing this as they Google search, I'm keeping track of the issue here: Maidbot/resin-raspberrypi3-ros#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants