<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 8, 2024 at 12:36 PM Jerry Geis <<a href="mailto:jerry.geis@gmail.com">jerry.geis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I have a machine with no-internet access that I need to install a package like cpupower which actually in linux-tools-common<div><br></div><div>so HOW do I download "explicitly" for 20.04.3 the linux-tools-common and "anything" else it needs like linux-tools-generic and anything IT needs for again 20.04.3 so I can put that on a CD/DVD and take to the machine.</div><div><br></div><div>I think also cpupower needs linux-tools-generic-(uname -r) kind of package also.</div><div><br></div><div>Thanks</div><div><br></div><div>Jerry</div><div><br></div></div></blockquote><div><br></div><div>OK so I found this script: modified for my packages I would like to add to a system 20.04.3 that has no internet.</div><div><br></div><div>PACKAGES="linux-tools-common linux-tools-generic"</div>apt-get download $(apt-cache depends --recurse --no-recommends --no-suggests \<br>  --no-conflicts --no-breaks --no-replaces --no-enhances \<br>  --no-pre-depends ${PACKAGES} | grep "^\w")<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">I run the script and I get these files</div><div class="gmail_quote">cdebconf_0.251ubuntu1_amd64.deb<br>debconf_1.5.73_all.deb<br>distro-info-data_0.43ubuntu1.15_all.deb<br>dpkg_1.19.7ubuntu3.2_amd64.deb<br>gcc-10-base_10.5.0-1ubuntu1~20.04_amd64.deb<br>install-info_6.7.0.dfsg.2-5_amd64.deb<br>libbz2-1.0_1.0.8-2_amd64.deb<br>libc6_2.31-0ubuntu9.14_amd64.deb<br>libcap2_1%3a2.32-1ubuntu0.1_amd64.deb<br>libcrypt1_1%3a4.4.10-10ubuntu4_amd64.deb<br>libdb5.3_5.3.28+dfsg1-0.6ubuntu2_amd64.deb<br>libdebian-installer4_0.110ubuntu3_amd64.deb<br>libdw1_0.176-1.1ubuntu0.1_amd64.deb<br>libelf1_0.176-1.1ubuntu0.1_amd64.deb<br>libexpat1_2.2.9-1ubuntu0.6_amd64.deb<br>libffi7_3.3-4_amd64.deb<br>libgcc-s1_10.5.0-1ubuntu1~20.04_amd64.deb<br>liblzma5_5.2.4-1ubuntu1.1_amd64.deb<br>libmpdec2_2.4.2-3_amd64.deb<br>libncursesw6_6.2-0ubuntu2.1_amd64.deb<br>libnewt0.52_0.52.21-4ubuntu2_amd64.deb<br>libnuma1_2.0.12-1_amd64.deb<br>libpci3_1%3a3.6.4-1ubuntu0.20.04.1_amd64.deb<br>libpcre2-8-0_10.34-7ubuntu0.1_amd64.deb<br>libpython3.8-minimal_3.8.10-0ubuntu1~20.04.9_amd64.deb<br>libpython3.8-stdlib_3.8.10-0ubuntu1~20.04.9_amd64.deb<br>libpython3-stdlib_3.8.2-0ubuntu2_amd64.deb<br>libreadline8_8.0-4_amd64.deb<br>libselinux1_3.0-1build2_amd64.deb<br>libslang2_2.3.2-4_amd64.deb<br>libsqlite3-0_3.31.1-4ubuntu0.6_amd64.deb<br>libssl1.1_1.1.1f-1ubuntu2.21_amd64.deb<br>libtextwrap1_0.1-14.2_amd64.deb<br>libtinfo6_6.2-0ubuntu2.1_amd64.deb<br>libudev1_245.4-4ubuntu3.23_amd64.deb<br>libunwind8_1.2.1-9ubuntu0.1_amd64.deb<br>libuuid1_2.34-0.1ubuntu9.4_amd64.deb<br>linux-tools-5.4.0-171_5.4.0-171.189_amd64.deb<br>linux-tools-5.4.0-171-generic_5.4.0-171.189_amd64.deb<br>linux-tools-common_5.4.0-171.189_all.deb<br>linux-tools-generic_5.4.0.171.169_amd64.deb<br>lsb-release_11.1.0ubuntu2_all.deb<br>mime-support_3.64ubuntu1_all.deb<br>pci.ids_0.0~2020.03.20-1_all.deb<br>python3_3.8.2-0ubuntu2_amd64.deb<br>python3.8_3.8.10-0ubuntu1~20.04.9_amd64.deb<br>python3.8-minimal_3.8.10-0ubuntu1~20.04.9_amd64.deb<br>readline-common_8.0-4_all.deb<br>tar_1.30+dfsg-7ubuntu0.20.04.4_amd64.deb<br>zlib1g_1%3a1.2.11.dfsg-2ubuntu1.5_amd64.deb<br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">So far so good.  I now unplug the 20.04.3 network cable and run </div><div class="gmail_quote"><br></div><div class="gmail_quote">apt -y install ./*.deb</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">and I get this error:</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br>E: Failed to fetch file:/root/dc_files_tmp/tar_1.30+dfsg-7ubuntu0.20.04.4_amd64.deb  File not found - /root/dc_files_tmp/tar_1.30+dfsg-7ubuntu0.20.04.4_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/dpkg_1.19.7ubuntu3.2_amd64.deb  File not found - /root/dc_files_tmp/dpkg_1.19.7ubuntu3.2_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/gcc-10-base_10.5.0-1ubuntu1~20.04_amd64.deb  File not found - /root/dc_files_tmp/gcc-10-base_10.5.0-1ubuntu1~20.04_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libgcc-s1_10.5.0-1ubuntu1~20.04_amd64.deb  File not found - /root/dc_files_tmp/libgcc-s1_10.5.0-1ubuntu1~20.04_amd64.deb (13: Permission denied)<br>E: Failed to fetch <a href="http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-10/libstdc++6_10.5.0-1ubuntu1~20.04_amd64.deb">http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-10/libstdc++6_10.5.0-1ubuntu1~20.04_amd64.deb</a>  Temporary failure resolving '<a href="http://us.archive.ubuntu.com">us.archive.ubuntu.com</a>'<br>E: Failed to fetch file:/root/dc_files_tmp/libc6_2.31-0ubuntu9.14_amd64.deb  File not found - /root/dc_files_tmp/libc6_2.31-0ubuntu9.14_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libdebian-installer4_0.110ubuntu3_amd64.deb  File not found - /root/dc_files_tmp/libdebian-installer4_0.110ubuntu3_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libtextwrap1_0.1-14.2_amd64.deb  File not found - /root/dc_files_tmp/libtextwrap1_0.1-14.2_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/cdebconf_0.251ubuntu1_amd64.deb  File not found - /root/dc_files_tmp/cdebconf_0.251ubuntu1_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libssl1.1_1.1.1f-1ubuntu2.21_amd64.deb  File not found - /root/dc_files_tmp/libssl1.1_1.1.1f-1ubuntu2.21_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/python3.8_3.8.10-0ubuntu1~20.04.9_amd64.deb  File not found - /root/dc_files_tmp/python3.8_3.8.10-0ubuntu1~20.04.9_amd64.deb (13: Permission denied)<br>E: Failed to fetch <a href="http://us.archive.ubuntu.com/ubuntu/pool/main/p/python3.8/libpython3.8_3.8.10-0ubuntu1~20.04.9_amd64.deb">http://us.archive.ubuntu.com/ubuntu/pool/main/p/python3.8/libpython3.8_3.8.10-0ubuntu1~20.04.9_amd64.deb</a>  Temporary failure resolving '<a href="http://us.archive.ubuntu.com">us.archive.ubuntu.com</a>'<br>E: Failed to fetch file:/root/dc_files_tmp/libpython3.8-stdlib_3.8.10-0ubuntu1~20.04.9_amd64.deb  File not found - /root/dc_files_tmp/libpython3.8-stdlib_3.8.10-0ubuntu1~20.04.9_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/python3.8-minimal_3.8.10-0ubuntu1~20.04.9_amd64.deb  File not found - /root/dc_files_tmp/python3.8-minimal_3.8.10-0ubuntu1~20.04.9_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libpython3.8-minimal_3.8.10-0ubuntu1~20.04.9_amd64.deb  File not found - /root/dc_files_tmp/libpython3.8-minimal_3.8.10-0ubuntu1~20.04.9_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libexpat1_2.2.9-1ubuntu0.6_amd64.deb  File not found - /root/dc_files_tmp/libexpat1_2.2.9-1ubuntu0.6_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/zlib1g_1%3a1.2.11.dfsg-2ubuntu1.5_amd64.deb  File not found - /root/dc_files_tmp/zlib1g_10x0.07fff00000006p-10221.2.11.dfsg-2ubuntu1.5_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/liblzma5_5.2.4-1ubuntu1.1_amd64.deb  File not found - /root/dc_files_tmp/liblzma5_5.2.4-1ubuntu1.1_amd64.deb (13: Permission denied)<br>E: Failed to fetch <a href="http://us.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncurses6_6.2-0ubuntu2.1_amd64.deb">http://us.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncurses6_6.2-0ubuntu2.1_amd64.deb</a>  Temporary failure resolving '<a href="http://us.archive.ubuntu.com">us.archive.ubuntu.com</a>'<br>E: Failed to fetch file:/root/dc_files_tmp/libncursesw6_6.2-0ubuntu2.1_amd64.deb  File not found - /root/dc_files_tmp/libncursesw6_6.2-0ubuntu2.1_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libtinfo6_6.2-0ubuntu2.1_amd64.deb  File not found - /root/dc_files_tmp/libtinfo6_6.2-0ubuntu2.1_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libsqlite3-0_3.31.1-4ubuntu0.6_amd64.deb  File not found - /root/dc_files_tmp/libsqlite3-0_3.31.1-4ubuntu0.6_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libuuid1_2.34-0.1ubuntu9.4_amd64.deb  File not found - /root/dc_files_tmp/libuuid1_2.34-0.1ubuntu9.4_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libpcre2-8-0_10.34-7ubuntu0.1_amd64.deb  File not found - /root/dc_files_tmp/libpcre2-8-0_10.34-7ubuntu0.1_amd64.deb (13: Permission denied)<br>E: Failed to fetch <a href="http://us.archive.ubuntu.com/ubuntu/pool/main/s/systemd/udev_245.4-4ubuntu3.23_amd64.deb">http://us.archive.ubuntu.com/ubuntu/pool/main/s/systemd/udev_245.4-4ubuntu3.23_amd64.deb</a>  Temporary failure resolving '<a href="http://us.archive.ubuntu.com">us.archive.ubuntu.com</a>'<br>E: Failed to fetch file:/root/dc_files_tmp/libudev1_245.4-4ubuntu3.23_amd64.deb  File not found - /root/dc_files_tmp/libudev1_245.4-4ubuntu3.23_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/distro-info-data_0.43ubuntu1.15_all.deb  File not found - /root/dc_files_tmp/distro-info-data_0.43ubuntu1.15_all.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libcap2_1%3a2.32-1ubuntu0.1_amd64.deb  File not found - /root/dc_files_tmp/libcap2_10x0.07fff00000006p-10222.32-1ubuntu0.1_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libelf1_0.176-1.1ubuntu0.1_amd64.deb  File not found - /root/dc_files_tmp/libelf1_0.176-1.1ubuntu0.1_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libdw1_0.176-1.1ubuntu0.1_amd64.deb  File not found - /root/dc_files_tmp/libdw1_0.176-1.1ubuntu0.1_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/libunwind8_1.2.1-9ubuntu0.1_amd64.deb  File not found - /root/dc_files_tmp/libunwind8_1.2.1-9ubuntu0.1_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/linux-tools-common_5.4.0-171.189_all.deb  File not found - /root/dc_files_tmp/linux-tools-common_5.4.0-171.189_all.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/linux-tools-5.4.0-171_5.4.0-171.189_amd64.deb  File not found - /root/dc_files_tmp/linux-tools-5.4.0-171_5.4.0-171.189_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/linux-tools-5.4.0-171-generic_5.4.0-171.189_amd64.deb  File not found - /root/dc_files_tmp/linux-tools-5.4.0-171-generic_5.4.0-171.189_amd64.deb (13: Permission denied)<br>E: Failed to fetch file:/root/dc_files_tmp/linux-tools-generic_5.4.0.171.169_amd64.deb  File not found - /root/dc_files_tmp/linux-tools-generic_5.4.0.171.169_amd64.deb (13: Permission denied)<br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">ALL the files are in that same directory and ALL the files are root:root rw-r--r--</div><div class="gmail_quote"><br></div><div class="gmail_quote">What might I be missing to install these downloaded files for 20.04.3 with no internet?</div><div class="gmail_quote"><br></div><div class="gmail_quote">Thanks!</div><div class="gmail_quote"><br></div><div class="gmail_quote">Jerry</div></div>