20.04.3
Sorin Srbu
sorin.srbu at ki.se
Fri Feb 9 06:48:09 UTC 2024
On Thu, 2024-02-08 at 14:21 -0500, Jerry Geis wrote:
>
>
> On Thu, Feb 8, 2024 at 12:36 PM Jerry Geis <jerry.geis at gmail.com> wrote:
> > I have a machine with no-internet access that I need to install a
> > package like cpupower which actually in linux-tools-common
> >
> > 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.
> >
> > I think also cpupower needs linux-tools-generic-(uname -r) kind of
> > package also.
> >
> > Thanks
> >
> > Jerry
> >
> >
>
>
> 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.
>
> PACKAGES="linux-tools-common linux-tools-generic"
> apt-get download $(apt-cache depends --recurse --no-recommends --no-
> suggests \
> --no-conflicts --no-breaks --no-replaces --no-enhances \
> --no-pre-depends ${PACKAGES} | grep "^\w")
>
> I run the script and I get these files
> cdebconf_0.251ubuntu1_amd64.deb
> debconf_1.5.73_all.deb
> distro-info-data_0.43ubuntu1.15_all.deb
> dpkg_1.19.7ubuntu3.2_amd64.deb
> gcc-10-base_10.5.0-1ubuntu1~20.04_amd64.deb
> install-info_6.7.0.dfsg.2-5_amd64.deb
> libbz2-1.0_1.0.8-2_amd64.deb
> libc6_2.31-0ubuntu9.14_amd64.deb
> libcap2_1%3a2.32-1ubuntu0.1_amd64.deb
> libcrypt1_1%3a4.4.10-10ubuntu4_amd64.deb
> libdb5.3_5.3.28+dfsg1-0.6ubuntu2_amd64.deb
> libdebian-installer4_0.110ubuntu3_amd64.deb
> libdw1_0.176-1.1ubuntu0.1_amd64.deb
> libelf1_0.176-1.1ubuntu0.1_amd64.deb
> libexpat1_2.2.9-1ubuntu0.6_amd64.deb
> libffi7_3.3-4_amd64.deb
> libgcc-s1_10.5.0-1ubuntu1~20.04_amd64.deb
> liblzma5_5.2.4-1ubuntu1.1_amd64.deb
> libmpdec2_2.4.2-3_amd64.deb
> libncursesw6_6.2-0ubuntu2.1_amd64.deb
> libnewt0.52_0.52.21-4ubuntu2_amd64.deb
> libnuma1_2.0.12-1_amd64.deb
> libpci3_1%3a3.6.4-1ubuntu0.20.04.1_amd64.deb
> libpcre2-8-0_10.34-7ubuntu0.1_amd64.deb
> libpython3.8-minimal_3.8.10-0ubuntu1~20.04.9_amd64.deb
> libpython3.8-stdlib_3.8.10-0ubuntu1~20.04.9_amd64.deb
> libpython3-stdlib_3.8.2-0ubuntu2_amd64.deb
> libreadline8_8.0-4_amd64.deb
> libselinux1_3.0-1build2_amd64.deb
> libslang2_2.3.2-4_amd64.deb
> libsqlite3-0_3.31.1-4ubuntu0.6_amd64.deb
> libssl1.1_1.1.1f-1ubuntu2.21_amd64.deb
> libtextwrap1_0.1-14.2_amd64.deb
> libtinfo6_6.2-0ubuntu2.1_amd64.deb
> libudev1_245.4-4ubuntu3.23_amd64.deb
> libunwind8_1.2.1-9ubuntu0.1_amd64.deb
> libuuid1_2.34-0.1ubuntu9.4_amd64.deb
> linux-tools-5.4.0-171_5.4.0-171.189_amd64.deb
> linux-tools-5.4.0-171-generic_5.4.0-171.189_amd64.deb
> linux-tools-common_5.4.0-171.189_all.deb
> linux-tools-generic_5.4.0.171.169_amd64.deb
> lsb-release_11.1.0ubuntu2_all.deb
> mime-support_3.64ubuntu1_all.deb
> pci.ids_0.0~2020.03.20-1_all.deb
> python3_3.8.2-0ubuntu2_amd64.deb
> python3.8_3.8.10-0ubuntu1~20.04.9_amd64.deb
> python3.8-minimal_3.8.10-0ubuntu1~20.04.9_amd64.deb
> readline-common_8.0-4_all.deb
> tar_1.30+dfsg-7ubuntu0.20.04.4_amd64.deb
> zlib1g_1%3a1.2.11.dfsg-2ubuntu1.5_amd64.deb
>
>
> So far so good. I now unplug the 20.04.3 network cable and run
>
> apt -y install ./*.deb
>
>
> and I get this error:
>
>
> 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)
> 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)
> 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)
> 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)
> E: Failed to fetch
> http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-10/libstdc++6_10.5.0-1ubuntu1~20.04_amd64.deb
> Temporary failure resolving 'us.archive.ubuntu.com'
> 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)
> 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)
> 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)
> 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)
> 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)
> 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)
> E: Failed to fetch
> http://us.archive.ubuntu.com/ubuntu/pool/main/p/python3.8/libpython3.8_3.8.10-0ubuntu1~20.04.9_amd64.deb
> Temporary failure resolving 'us.archive.ubuntu.com'
> 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)
> 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)
> 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)
> 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)
> 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)
> 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)
> E: Failed to fetch
> http://us.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncurses6_6.2-0ubuntu2.1_amd64.deb
> Temporary failure resolving 'us.archive.ubuntu.com'
> 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)
> 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)
> 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)
> 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)
> 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)
> E: Failed to fetch
> http://us.archive.ubuntu.com/ubuntu/pool/main/s/systemd/udev_245.4-4ubuntu3.23_amd64.deb
> Temporary failure resolving 'us.archive.ubuntu.com'
> 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)
> 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)
> 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)
> 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)
> 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)
> 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)
> 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)
> 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)
> 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)
> 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)
>
>
>
> ALL the files are in that same directory and ALL the files are root:root
> rw-r--r--
>
> What might I be missing to install these downloaded files for 20.04.3 with
> no internet?
Hello,
Looks like you're trying to install packages (dependencies?) you didn't
download earlier, so then it tries to go online and fetch them but fails.
As for the permission denied-messages, are you doing this as root or are you
using sudo?
Installing stuff requires either that you become root with "sudo -i" or use
"sudo apt install foo".
--
Sorin Srbu
Drifttekniker, Serverdrift
Karolinska Institutet Universitetsbibliotek
Enheten för teknikstöd och bildproduktion,
Avdelningen för Verksamhetsstöd
Tele: 08-524 84166
# They say you can't buy happiness, but you can buy a
# motorcycle, and that's pretty damn close!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20240209/61e4054d/attachment.sig>
More information about the ubuntu-users
mailing list