From nobody Tue Nov 4 15:25:55 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1530204669661778.7277986481361; Thu, 28 Jun 2018 09:51:09 -0700 (PDT) Received: from localhost ([::1]:37611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYa8S-0001OY-T5 for importer@patchew.org; Thu, 28 Jun 2018 12:51:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYa4Q-00075a-4Z for qemu-devel@nongnu.org; Thu, 28 Jun 2018 12:46:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYa4O-0003ke-Uj for qemu-devel@nongnu.org; Thu, 28 Jun 2018 12:46:58 -0400 Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]:37036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYa4O-0003jF-Pn for qemu-devel@nongnu.org; Thu, 28 Jun 2018 12:46:56 -0400 Received: by mail-qk0-x230.google.com with SMTP id t79-v6so3351450qke.4 for ; Thu, 28 Jun 2018 09:46:56 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id 32-v6sm4548361qtf.13.2018.06.28.09.46.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 09:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CdqZEd53oM9lGIZQ+bzJ6u+UyFVYG3VB/IKJ51Dmids=; b=B3kLuoO0Gkrct4Kv+gm2RNHsP2QIx0xHtiL6CqpL5nTcOauCI/3yAE91LBohdn9TbA La+/ktiHbItORLghiH6zZhWXij8Zfrmsly4pd6ipig8EU45PFXEIHjaC1Y0sG41iur10 Ss6A7fiAH2e565CZiDo8eJdhBrbMLoFD127IXZOZu1JvI0rvIwez0RPQcvlX4NPv/qew Hj9Epse4d1uFFBpuKeYdr1OfLW0OeCD/KACIBUj3XOBhdGgqxXzQhtW0sEvLM1T7Dx5n FtUWFiOmXIhyImFbf10srOu19leTYRO4p3bx5KlspcmBsz30DLOfhiDtbr29BOTW1hA6 wnaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=CdqZEd53oM9lGIZQ+bzJ6u+UyFVYG3VB/IKJ51Dmids=; b=GHDEBFCappngVYbKXwwPFK8QGN9vcb4YMDeRnxVPPwocJIfwkQteRQ+l89Z3plF53l XfWBKHvxPYJJ5wbFIouXIGQwECJwWtJ+ORtstHCdyAhl/VhSk6wlhyI8bGCK7AignOHi Uz8xHMCCWNL5p5dQHjt4/Zl2maM63mSPqb5ZzGNh+LcXqtJBLMJ8S6NmfxEbjKOogkUk xDO/SdioFchv0EpfzuS4N1qSbZFlrLw8Iy62pPE4h/pbNKNTIbQAR6uP+3N5svDEd0p9 Z/yj1Cm863dN6OpJ3GT46R61OdjLgZe29mddYy75Gqyju2J0gq6pPW5qBEnqbgjhKUBL 1tzg== X-Gm-Message-State: APt69E2r8WNdNTMhumHGTM69SrWafN79EDntGqJA4npAbT8JiWilRE7p Py0tSF+1kqyNqopeB5ux0cA= X-Google-Smtp-Source: AAOMgpcqkSoAlKjzUVh134cGkKfjHwC1NY/oLpS0xtJd7Jl5RoGglyKupMpVyDZvTrJ51AtooTUBuw== X-Received: by 2002:a37:6c46:: with SMTP id h67-v6mr9448743qkc.38.1530204416181; Thu, 28 Jun 2018 09:46:56 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng Date: Thu, 28 Jun 2018 13:46:36 -0300 Message-Id: <20180628164643.9668-2-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180628164643.9668-1-f4bug@amsat.org> References: <20180628164643.9668-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::230 Subject: [Qemu-devel] [PATCH 1/8] docker: ubuntu: Update the package list before installing new ones X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Since docker caches the different layers, updating the package list does not invalidate the previous "apt-get update" layer, and it is likely "apt-get install" hits an outdated repository. See https://docs.docker.com/develop/develop-images/dockerfile_best-practice= s/#apt-get This fixes: $ make docker-image-ubuntu V=3D1 ./tests/docker/docker.py build qemu:ubuntu tests/docker/dockerfiles/ubunt= u.docker --add-current-user Sending build context to Docker daemon 3.072kB [...] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/libg= les2-mesa_17.0.7-0ubuntu0.16.04.2_amd64.deb 404 Not Found E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/libg= les2-mesa-dev_17.0.7-0ubuntu0.16.04.2_amd64.deb 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --= fix-missing? The command '/bin/sh -c apt-get -y install $PACKAGES' returned a non-zero= code: 100 tests/docker/Makefile.include:40: recipe for target 'docker-image-ubuntu'= failed make: *** [docker-image-ubuntu] Error 1 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/docker/dockerfiles/ubuntu.docker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/docker/dockerfiles/ubuntu.docker b/tests/docker/dockerfi= les/ubuntu.docker index dabbf2a8a4..c03520ce3f 100644 --- a/tests/docker/dockerfiles/ubuntu.docker +++ b/tests/docker/dockerfiles/ubuntu.docker @@ -1,7 +1,6 @@ FROM ubuntu:16.04 RUN echo "deb http://archive.ubuntu.com/ubuntu/ trusty universe multiverse= " >> \ /etc/apt/sources.list -RUN apt-get update ENV PACKAGES flex bison \ libusb-1.0-0-dev libiscsi-dev librados-dev libncurses5-dev libncursesw= 5-dev \ libseccomp-dev libgnutls-dev libssh2-1-dev libspice-server-dev \ @@ -13,6 +12,7 @@ ENV PACKAGES flex bison \ libjemalloc-dev libcacard-dev libusbredirhost-dev libnfs-dev libcap-de= v libattr1-dev \ texinfo \ gettext git make ccache python-yaml gcc clang sparse -RUN apt-get -y install $PACKAGES +RUN apt-get update && \ + apt-get -y install $PACKAGES RUN dpkg -l $PACKAGES | sort > /packages.txt ENV FEATURES clang pyyaml --=20 2.18.0