サポート #453
みぞ @mizo0203 さんが約6年前に更新
参照: https://circleci.com/gh/mizo0203/google-home-shiritori/231 古い .deb ファイルがキャッシュで残り続けるため、古いパッケージのインストール処理時間がかかる。 最新のパッケージのみをインストールするため、古い .deb ファイルがキャッシュ化されないように対処が必要。 参照: https://circleci.com/gh/mizo0203/google-home-shiritori/231 下記の場合、本来は Ver. 219.0.1 のみのインストールで良いが、 Ver. 210.0.0 以降の .deb ファイルがキャッシュ化されているため、 古いパッケージから順にインストール処理をしてしまっている。 ``` $ #!/bin/bash -eo pipefail if [[ $(find /home/circleci/apt/archives -name "*.deb") == *".deb"* ]];then sudo dpkg -i /home/circleci/apt/archives/*.deb fi Selecting previously unselected package distro-info-data. (Reading database ... 33446 files and directories currently installed.) Preparing to unpack .../distro-info-data_0.36_all.deb ... Unpacking distro-info-data (0.36) ... Selecting previously unselected package google-cloud-sdk-app-engine-python-extras. Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_210.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_211.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (211.0.0-0) over (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_212.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (212.0.0-0) over (211.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_216.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (216.0.0-0) over (212.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_218.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (218.0.0-0) over (216.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python-extras_219.0.1-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python-extras (219.0.1-0) over (218.0.0-0) ... Selecting previously unselected package google-cloud-sdk-app-engine-python. Preparing to unpack .../google-cloud-sdk-app-engine-python_210.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python_211.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (211.0.0-0) over (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python_212.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (212.0.0-0) over (211.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python_216.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (216.0.0-0) over (212.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python_218.0.0-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (218.0.0-0) over (216.0.0-0) ... Preparing to unpack .../google-cloud-sdk-app-engine-python_219.0.1-0_all.deb ... Unpacking google-cloud-sdk-app-engine-python (219.0.1-0) over (218.0.0-0) ... Selecting previously unselected package google-cloud-sdk. Preparing to unpack .../google-cloud-sdk_210.0.0-0_all.deb ... Unpacking google-cloud-sdk (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk_211.0.0-0_all.deb ... Unpacking google-cloud-sdk (211.0.0-0) over (210.0.0-0) ... Preparing to unpack .../google-cloud-sdk_212.0.0-0_all.deb ... Unpacking google-cloud-sdk (212.0.0-0) over (211.0.0-0) ... Preparing to unpack .../google-cloud-sdk_216.0.0-0_all.deb ... Unpacking google-cloud-sdk (216.0.0-0) over (212.0.0-0) ... Preparing to unpack .../google-cloud-sdk_218.0.0-0_all.deb ... Unpacking google-cloud-sdk (218.0.0-0) over (216.0.0-0) ... Preparing to unpack .../google-cloud-sdk_219.0.1-0_all.deb ... Unpacking google-cloud-sdk (219.0.1-0) over (218.0.0-0) ... Selecting previously unselected package lsb-release. Preparing to unpack .../lsb-release_9.20161125_all.deb ... Unpacking lsb-release (9.20161125) ... Selecting previously unselected package python-crcmod. Preparing to unpack .../python-crcmod_1.7-2+b2_amd64.deb ... Unpacking python-crcmod (1.7-2+b2) ... More than one copy of package google-cloud-sdk-app-engine-python-extras has been unpacked in this run ! Only configuring it once. More than one copy of package google-cloud-sdk-app-engine-python has been unpacked in this run ! Only configuring it once. More than one copy of package google-cloud-sdk has been unpacked in this run ! Only configuring it once. Setting up distro-info-data (0.36) ... Setting up google-cloud-sdk (219.0.1-0) ... Setting up lsb-release (9.20161125) ... Setting up python-crcmod (1.7-2+b2) ... Setting up google-cloud-sdk-app-engine-python (219.0.1-0) ... Processing triggers for google-cloud-sdk (219.0.1-0) ... Setting up google-cloud-sdk-app-engine-python-extras (219.0.1-0) ... Processing triggers for google-cloud-sdk (219.0.1-0) ... ```