skopeo: Unable to locate package skopeo on Ubuntu 18.04 & 20.04

Starting having issues pulling Skopeo into my Ubuntu 18.04 images starting last night. How can we get skopeo to install?

# apt-get install -y skopeo
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package skopeo

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 15 (3 by maintainers)

Commits related to this issue

Most upvoted comments

For those using skopeo in a docker image, you can statically build it from source like this:

FROM golang:1.18 AS skopeo-build

WORKDIR /usr/src/skopeo

ARG SKOPEO_VERSION="1.8.0"
RUN curl -fsSL "https://github.com/containers/skopeo/archive/v${SKOPEO_VERSION}.tar.gz" \
  | tar -xzf - --strip-components=1

RUN CGO_ENABLED=0 DISABLE_DOCS=1 make BUILDTAGS=containers_image_openpgp GO_DYN_FLAGS=

RUN ./bin/skopeo --version


FROM scratch AS skopeo-rootfs

COPY --from=skopeo-build /usr/src/skopeo/bin/skopeo /usr/local/bin/
COPY --from=skopeo-build /usr/src/skopeo/default-policy.json /etc/containers/policy.json


FROM ubuntu:20.04

COPY --from=skopeo-rootfs / /

RUN skopeo --version

Hi all, RE: 18.04, skopeo seems to have been enabled mistakenly because of cri-o sharing the project. The kubic packages (at least in the form they were) were causing more trouble than they were solving. Lack of maintenance + issues on the Kubic infra side such as the hash mismatches were why I removed them. Please build skopeo from source or use the skopeo container image

I think the title of the PR could be changed to include 20.04 as well.

A small addition to @felipecrs comments: you need BuildKit enabled to use the --output flag.

PS: You can use my Dockerfile above to also install skopeo with the following command:

sudo docker build . --target skopeo-rootfs --output=/

It will write two files to your system: /usr/local/bin/skopeo and /etc/containers/policy.json

I understand it’s not being updated for 18.04 but why was it completely removed?

Especially considering that the number of people using Ubuntu 18.04 and 20.04 completely overwhelms the number of people using 22.04 currently.