1

I have a Ubuntu machine that is not allowed to be connected to the network and it is locally connected to a Windows machine. Due to security requirements, this machine is disallowed from network connectivity. I want to set up a local repository on the machine so that if I ever need a package I can simply use the apt package manager to install my packages. I'm having difficulty finding relevant resources on how to setup an Ubuntu repository that don't assume you have apt/internet activity. (The classic chicken-and-egg problem.)

In this case, my offline machine has a little help, i.e., a network-connected Windows machine that can download all the software it requires, except no instructions explain how to set up an Ubuntu repository that isn't already part of the Ubuntu ecosystem.

I have set up RHEL repositories in this manner because they use the ISO install disks as their repositories. That is straightforward once you understand how to mount the ISO onto the file system. In the case of Ubuntu, most directions have tools that only a network-connected Ubuntu machine with apt can use.

How can someone set up an Ubuntu repo that has no access to network resources from the get-go?

karel
  • 122,292
  • 133
  • 301
  • 332
LeanMan
  • 133
  • 1
  • 5

1 Answers1

0

Edit: After reading for a second time, I've realized that you want to create a mirror on your offline Ubuntu machine. Using a second machine, that runs a Debian based distro, would be a lot easier, but if you have no other option than using a non-Linux OS to help, that is over my knowledge and I think it would require overcomplicated solutions. Nevertheless, I leave my solution untouched if you can't find any other solution.


Kind of a similar question to this.

The answer here seems to be able to solve their problem. Note that this solution requires a second Ubuntu machine (Physical or Virtual) with ~15-20 GB space per mirror.

See if this works for you too.