I am new to Ubuntu but have been working with RHEL for a few years now. I am trying to set up a local repo for 16.04 and am getting "404 Not Found" errors when I run apt update from a local machine. Some background, I know this version isn't supported anymore and I work in a closed environment where the repositories I am mirroring exist. Here is what I have done so far....
root@ubuntumirror: cat /etc/apt/mirror.list
set base_path /apt-mirror
deb-amd64 http://<pathtorepo>/ubuntu xenial main restricted universe multiverse
deb-amd64 http://<pathtorepo>/ubuntu xenial-security main restricted universe multiverse
deb-amd64 http://<pathtorepo>/ubuntu xenial-updates main restricted universe multiverse
deb-amd64 http://<pathtorepo>/ubuntu xenial-proposed main restricted universe multiverse
deb-amd64 http://<pathtorepo>/ubuntu xenial-backports main restricted universe multiverse
path to repo's is modified because I don't have enough reputation to post that many links...
apt-mirror
apt install apache2
ln -s /apt-mirror /var/www/html/ubuntu
systemctl restart apache2
Then from the workstation...
root@ubuntuworkstation: cat /etc/apt/sources.list
deb [trusted=yes] http://ubuntumirror/ubuntu xenial main restricted universe multiverse
deb [trusted=yes] http://ubuntumirror/ubuntu xenial-security main restricted universe multiverse
deb [trusted=yes] http://ubuntumirror/ubuntu xenial-updates main restricted universe multiverse
deb [trusted=yes] http://ubuntumirror/ubuntu xenial-proposed main restricted universe multiverse
deb [trusted=yes] http://ubuntumirror/ubuntu xenial-backports main restricted universe multiverse
apt update
goes through IGN:101 and has a couple of 404 Not Found errors, then gets to the end,
Reading package lists... Done
Then has E: Failed to fetch ... 404 Not Found
listed for each entry from the sources.list. It also shows
E: Some index files failed to download. They have been ignored, or old ones used instead.
I have also tried searching or installing individual packages and they all fail. Any advice?? I feel like I am overlooking something small but haven't had any luck so far.