Docker Community Forums

Share and learn in the Docker community.

Error creating an image

Hi everyone,

I have this Dockerfile:

FROM debian:latest

RUN apt-get update &&
apt-get -y install curl &&
apt-get install -y apt-transport-https

RUN curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.deb.sh | bash

RUN apt-get -qq -y install sysbench git make gcc unzip wget lua5.1 lua5.1-dev &&
apt-get clean

RUN wget https://luarocks.org/releases/luarocks-2.4.3.tar.gz && tar zxpf luarocks-2.4.3.tar.gz && cd luarocks-2.4.3 && ./configure && make bootstrap

And when I try to create the image with it, at some point of the process I get this error:

Step 5/6 : RUN apt-get -qq -y install sysbench git make gcc unzip wget lua5.1 lua5.1-dev && apt-get clean
—> Running in 4787766a3d2c
E: Unable to locate package sysbench
The command ‘/bin/sh -c apt-get -qq -y install sysbench git make gcc unzip wget lua5.1 lua5.1-dev && apt-get clean’ returned a non-zero code: 100

Anyone knows where the problem could be?

Thanks

Thats the error why your RUN step failed. Maybe it’s misspelled?

Steps to Reproduce the Problem
packer build ./packer/linode-build-marketplace.json
wait for provisioners to complete without error and Linode to shut down
image create fails with (HTTP?) 404
Environment Specifications
❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Pop!_OS 18.04 LTS
Release: 18.04
Codename: bionic

❯ go version
go version go1.12.4 linux/amd64

❯ packer --version
1.3.5
Env var LINODE_TOKEN is set and is sourced by Packer to assign linode_token in the template. The token has all privileges for the Linode cloud manager account.

Screenshots, Code Blocks, and Logs
PACKER_LOG interleaved with output from packer build

2019/04/25 17:18:43 [INFO] (telemetry) ending ansible
==> linode: Shutting down Linode…
==> linode: Creating image…
2019/04/25 17:20:08 ui error: ==> linode: Error creating image: [404] Not found
==> linode: Error creating image: [404] Not found
2019/04/25 17:20:09 [INFO] (telemetry) ending linode
2019/04/25 17:20:09 ui error: Build ‘linode’ errored: Error creating image: [404] Not found
2019/04/25 17:20:09 Builds completed. Waiting on interrupt barrier…
2019/04/25 17:20:09 machine readable: error-count string{“1”}
Build ‘linode’ errored: Error creating image: [404] Not found
2019/04/25 17:20:09 ui error:

==> Some builds didn’t complete successfully and had errors:
2019/04/25 17:20:09 machine readable: linode,error string{“Error creating image: [404] Not found”}
2019/04/25 17:20:09 ui error: → linode: Error creating image: [404] Not found
==> Builds finished but no artifacts were created.
2019/04/25 17:20:09 [INFO] (telemetry) Finalizing.
==> Some builds didn’t complete successfully and had errors:
→ linode: Error creating image: [404] Not found

==> Builds finished but no artifacts were created.
2019/04/25 17:20:09 waiting for all plugin processes to complete…
2019/04/25 17:20:09 /home/kbingham/Sites/netfoundry/bin/packer-1.3.5: plugin process exited
2019/04/25 17:20:09 /home/kbingham/.packer.d/plugins/packer-builder-linode: plugin process exited
2019/04/25 17:20:09 /home/kbingham/Sites/netfoundry/bin/packer-1.3.5: plugin process exited
Packer template builders

"builders": [
    {
        "type": "linode",
        "linode_token": "{{user `linode_token`}}",

        "region": "us-central",
        "swap_size": 256,
        "image": "linode/centos7",
        "instance_type": "g6-nanode-1",
        "instance_label": "packerbuilder-{{timestamp}}",

        "image_label": "nf-{{user `img_type`}}-{{user `release_version`}}",
        "image_description": "nf-{{user `img_type`}}-{{user `release_version`}}",
        
        "ssh_username": "{{user `ssh_username`}}"
    }
],