daryl9
January 5th, 2020, 11:15 PM
I am attempting to create a local repo for Trusty, Xenial and Bionic releases using apt-mirror. This is a snippet for the mirrors.list, Trusty only
#------------------------------------------------------------------------------#
# OFFICIAL TRUSTY REPOS #
#------------------------------------------------------------------------------#
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
I have a local NAS setup to mount on /var/spool/apt-mirror and the packages download to the NAS. I then link that downloaded repos to /var/www/html:
root@server: ls -l /var/www/html/total 12
-rw-r--r-- 1 root root 10701 Dec 28 17:41 index.html
lrwxrwxrwx 1 root root 56 Jan 5 15:23 security -> /var/spool/apt-mirror/mirror/security.ubuntu.com/ubuntu/
lrwxrwxrwx 1 root root 58 Jan 5 15:22 us_archive -> /var/spool/apt-mirror/mirror/us.archive.ubuntu.com/ubuntu/
This is the sources.list on the node that I am trying to update:
#deb cdrom:[Edubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803.1)]/ trusty main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://192.168.0.197/us_archive trusty main restricted
deb-src http://192.168.0.197/us_archive trusty main restricted
Here are the errors that I get:
root@HP:/etc/apt# apt update
Ign http://192.168.0.197 trusty InRelease
Get:1 http://192.168.0.197 trusty Release.gpg [933 B]
Get:2 http://192.168.0.197 trusty Release [58.5 kB]
Get:3 http://192.168.0.197 trusty/main Sources [1,064 kB]
Get:4 http://192.168.0.197 trusty/restricted Sources [5,433 B]
Get:5 http://192.168.0.197 trusty/main Translation-en [762 kB]
Get:6 http://192.168.0.197 trusty/restricted Translation-en [3,457 B]
Err http://192.168.0.197 trusty/main amd64 Packages 404 Not Found
Err http://192.168.0.197 trusty/restricted amd64 Packages 404 Not Found
Err http://192.168.0.197 trusty/main i386 Packages 404 Not Found
Err http://192.168.0.197 trusty/restricted i386 Packages 404 Not Found
Ign http://192.168.0.197 trusty/main Translation-en_US
Ign http://192.168.0.197 trusty/restricted Translation-en_US
Fetched 1,895 kB in 5s (338 kB/s)
W: Failed to fetch http://192.168.0.197/us_archive/dists/trusty/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://192.168.0.197/us_archive/dists/trusty/restricted/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://192.168.0.197/us_archive/dists/trusty/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://192.168.0.197/us_archive/dists/trusty/restricted/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
I don't know what Ign means, Ignore maybe?? Obviously, Err means Error and 404 Not Found means that apt update can't find the packages.
So my question is why can't apt update find the packages? I've reviewed several docs online and for the most part they're all the same. Install apt-mirror, apache, configure mirrors.list etc... I don't see anything wrong. Can someone spot something that might be causing these errors?
Thanks
Daryl
#------------------------------------------------------------------------------#
# OFFICIAL TRUSTY REPOS #
#------------------------------------------------------------------------------#
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
I have a local NAS setup to mount on /var/spool/apt-mirror and the packages download to the NAS. I then link that downloaded repos to /var/www/html:
root@server: ls -l /var/www/html/total 12
-rw-r--r-- 1 root root 10701 Dec 28 17:41 index.html
lrwxrwxrwx 1 root root 56 Jan 5 15:23 security -> /var/spool/apt-mirror/mirror/security.ubuntu.com/ubuntu/
lrwxrwxrwx 1 root root 58 Jan 5 15:22 us_archive -> /var/spool/apt-mirror/mirror/us.archive.ubuntu.com/ubuntu/
This is the sources.list on the node that I am trying to update:
#deb cdrom:[Edubuntu 14.04.5 LTS _Trusty Tahr_ - Release amd64 (20160803.1)]/ trusty main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://192.168.0.197/us_archive trusty main restricted
deb-src http://192.168.0.197/us_archive trusty main restricted
Here are the errors that I get:
root@HP:/etc/apt# apt update
Ign http://192.168.0.197 trusty InRelease
Get:1 http://192.168.0.197 trusty Release.gpg [933 B]
Get:2 http://192.168.0.197 trusty Release [58.5 kB]
Get:3 http://192.168.0.197 trusty/main Sources [1,064 kB]
Get:4 http://192.168.0.197 trusty/restricted Sources [5,433 B]
Get:5 http://192.168.0.197 trusty/main Translation-en [762 kB]
Get:6 http://192.168.0.197 trusty/restricted Translation-en [3,457 B]
Err http://192.168.0.197 trusty/main amd64 Packages 404 Not Found
Err http://192.168.0.197 trusty/restricted amd64 Packages 404 Not Found
Err http://192.168.0.197 trusty/main i386 Packages 404 Not Found
Err http://192.168.0.197 trusty/restricted i386 Packages 404 Not Found
Ign http://192.168.0.197 trusty/main Translation-en_US
Ign http://192.168.0.197 trusty/restricted Translation-en_US
Fetched 1,895 kB in 5s (338 kB/s)
W: Failed to fetch http://192.168.0.197/us_archive/dists/trusty/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://192.168.0.197/us_archive/dists/trusty/restricted/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://192.168.0.197/us_archive/dists/trusty/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://192.168.0.197/us_archive/dists/trusty/restricted/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
I don't know what Ign means, Ignore maybe?? Obviously, Err means Error and 404 Not Found means that apt update can't find the packages.
So my question is why can't apt update find the packages? I've reviewed several docs online and for the most part they're all the same. Install apt-mirror, apache, configure mirrors.list etc... I don't see anything wrong. Can someone spot something that might be causing these errors?
Thanks
Daryl