Ubuntu Docker Container Update-Ca-Certificates: Command Not Found

This is running a Docker Container using the official Ubuntu 14.04 The end result will be the same as this QA once I can get that command installed.

New to Ubuntu and such, trying to get a docker container to update certs that i am linking in using -v.

Tried to use dpkg -S update-ca-certificates as described in the link and a few other answers that seemed to point in the same general direction. but i end up getting this in the container

root@24b087e56f8e:/# apt-get install -y ca-certificates
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ca-certificates

2 Questions

  1. How do you find out what package a command is installed with?

  2. What package do I need to install with my container to get update-ca-certificates working?

2 Answers

PEBKAC

turns out you need to run apt-get update before you can install any other packages. After running the updates you can then apt-get install -y ca-certificates and this is the package that contains the command update-ca-certificates

In Ubuntu Docker Container run:

  1. apt-get update

  2. apt-get install ca-certificates -y

  3. update-ca-certificates

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest