I'm trying to create an offline repository for ubuntu version 16.04. I found instructions for this in multiple places, but much of it is dated, and none fully worked for me. Here is what I've done so far: I downloaded the entire repo with apt-mirror. This contains about 200 GB of files. The data is stored in the directory /root/repo. The contents of /root/repo are:

mirror, skel, var

I added this line to /etc/apt/sources.list (I don't know if this is the correct directory to add):

deb file:///root/repo xenial main restricted universe multiverse  

and then ran "apt-get update" as root. There were a few screens of successful output, and then it finished with some errors:

File not found - /root/repo/dists/xenial/main/binary-amd64/Packages


W: The repository 'file:/root/repo xenial Release' does not have a Release file

What am I doing wrong? There is no directory named "/root/repo/dists". Did I add the wrong location to the sources.list file?

  • The actual mirror would be somewhere in /root/repo/mirror/<hostname>. – muru Aug 19 '18 at 1:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.