When using apt-get without an internet connection, how does one tell which packages are missing

apt

Like many others before me, I'm stuck having to install a package on Ubuntu without having any external internet access to the machine. However, I've already attempted dry-runs and transferred all the packages listed to the archive directory, and yet when I attempt a –no-download –fix-missing install attempt, it fails due to missing packages but does not specify which ones are missing. How do I find out what's missing?

Thanks all.

Best Answer

Apt draws his Informations from the files in /var/lib/apt/lists/*

shortened output.

Package: findutils
Source: findutils (4.4.2-9)
Version: 4.4.2-9+b1
Essential: yes
Installed-Size: 1406
Maintainer: Andreas Metzler <ametzler@debian.org>
Architecture: amd64
Pre-Depends: libc6 (>= 2.17)
--
Homepage: http://savannah.gnu.org/projects/findutils/
Description-md5: ad1a783819241ffdf3ff5f37a676af59
Tag: implemented-in::c, interface::commandline, role::program,
 scope::utility, suite::gnu, use::searching, works-with::file
Section: utils
Priority: required
Filename: pool/main/f/findutils/findutils_4.4.2-9+b1_amd64.deb
Size: 485428
MD5sum: 143e4e14fe6c6a88e39505b1816d0c18
SHA1: fd2730bfd4b56c97b2831ad02676059c46a1728d
SHA256: 7d348fffa276db57f43a2588c77cf90fbca472631d680f9476f53b28d285da62

Package: locate
Source: findutils (4.4.2-9)
Version: 4.4.2-9+b1
Installed-Size: 316
Maintainer: Andreas Metzler <ametzler@debian.org>
Architecture: amd64
Replaces: findutils (<< 4.2.31-2)
Depends: libc6 (>= 2.14), findutils (>> 4.2.31-1)
Conflicts: slocate (<= 3.1-1.1)
Description: maintain and query an index of a directory tree
Multi-Arch: foreign
Homepage: http://savannah.gnu.org/projects/findutils/
Description-md5: bff4cb1129be08196a6ed2311b3d1fbc
Tag: implemented-in::c, implemented-in::shell, interface::commandline,
 role::program, use::searching
Section: utils
Priority: optional
Filename: pool/main/f/findutils/locate_4.4.2-9+b1_amd64.deb
Size: 178800
MD5sum: b260d30715188574d190476776a36f84
SHA1: 40662450594d9a5b0729300485f3741568d11585
SHA256: 82d281ddf0d0bae6d32f443a1ec3ffc35db44a4dfe3c02ddc03bfeb97e4451e7

Package: fio
--
Depends: python (>= 2.3), python-gtk2 (>= 2.4), python-glade2, findutils (>= 4.1.1)
Description: Utility collection to find and fix common errors in file storage
Homepage: http://www.pixelbeat.org/fslint/
Description-md5: 4b58d63667576a6e98df13a69973c798
Tag: implemented-in::python, interface::commandline, interface::x11,
 role::program, scope::utility, uitoolkit::gtk, use::checking,
 works-with::file, x11::application
--
Conflicts: findutils (<= 4.2.31-1), slocate (<= 3.1-1.1)
Description: quickly find files on the filesystem based on their name
Homepage: http://carolina.mff.cuni.cz/~trmac/blog/mlocate
Description-md5: 34e9c00f37885dbcdfb61296f24c84df
Tag: implemented-in::c, interface::commandline, role::program,
 scope::utility, use::searching
Section: utils
--
Depends: perl5, java-common, findutils (>= 4.0)
Recommends: default-jdk | java-compiler
Description: Makefile generator for Java programs
Description-md5: d3b43fe924d8d2af5b151a166a5b70ce
Tag: devel::buildtools, devel::lang:java, interface::commandline,
 role::program, scope::utility
Section: devel
--
Depends: bash (>= 3.0), coreutils (>= 8.5), debianutils (>= 4.0), findutils (>= 4.0.0), grep (>= 2.0.0), gawk (>= 4.0.0) | mawk (>= 1.3.0), sed (>= 4.0.0), wget
Suggests: libc-bin (>= 2.0)
Description: Podcast aggregrator/downloader optimized for cron
Homepage: http://podget.sourceforge.net
Description-md5: 9718309415a69325a09cd64000c082a9
Tag: implemented-in::shell, role::program, works-with-format::xml:rss
Section: misc

I looked for the term findutils. But with no internet-access package search for ubuntu

And install the packages directly with dpkg.

I hope I unterstand your question right.

If you have in the Live-Session internet-acess you can download the packages there, after you activate the necessitate package-sources. mount the partition where your / is from your install system.

sudo apt-get update && sudo apt-get -d -o dir::cache::archives="/pfad/to/mountpoint/var/cache/archives" install package-name and use dpkg to install them. little overview dpkg

Related Question