More information and an example:
========================
sources.list:
deb http://192.168.100.41/cblr/repo_mirror/oneiric-$(ARCH)/ oneiric main restricted multiverse universe deb http://192.168.100.41/cblr/repo_mirror/oneiric-$(ARCH)-security/ oneiric-security main restricted multiverse universe
==========================
apt-get update:
W: Failed to fetch http://192.168.100.41/cblr/repo_mirror/oneiric-amd64/dists/oneiric/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://192.168.100.41/cblr/repo_mirror/oneiric-amd64/dists/oneiric/restricted/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://192.168.100.41/cblr/repo_mirror/oneiric-amd64/dists/oneiric/multiverse/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://192.168.100.41/cblr/repo_mirror/oneiric-amd64/dists/oneiric/universe/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://192.168.100.41/cblr/repo_mirror/oneiric-amd64/dists/oneiric/main/binary-i386/Packages 404 Not Found
=============================
File listing in /var/www/cobbler/repo_mirror:
drwxr-xr-x 6 root www-data 4096 2012-01-26 09:10 maverick-i386/ drwxr-xr-x 6 root www-data 4096 2012-01-26 09:10 maverick-i386-security/ drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 natty-i386/ drwxr-xr-x 6 root www-data 4096 2012-01-26 09:10 natty-i386-security/ drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 natty-x86_64/ drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 natty-x86_64-security/ drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 oneiric-i386/ drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 oneiric-i386-security/ drwxrwxr-x 6 1001 1001 4096 2012-01-26 09:08 oneiric-x86_64/ drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 oneiric-x86_64-security/
=========================================
Note that if I link the to the repo as follows, $(ARCH) works:
lrwxrwxrwx 1 root root 23 2012-01-25 15:00 oneiric-amd64-security -> oneiric-x86_64-security/
More information and an example:
======= ======= ======= ===
sources.list:
deb http:// 192.168. 100.41/ cblr/repo_ mirror/ oneiric- $(ARCH) / oneiric main restricted multiverse universe 192.168. 100.41/ cblr/repo_ mirror/ oneiric- $(ARCH) -security/ oneiric-security main restricted multiverse universe
deb http://
======= ======= ======= =====
apt-get update:
W: Failed to fetch http:// 192.168. 100.41/ cblr/repo_ mirror/ oneiric- amd64/dists/ oneiric/ main/binary- amd64/Packages 404 Not Found
W: Failed to fetch http:// 192.168. 100.41/ cblr/repo_ mirror/ oneiric- amd64/dists/ oneiric/ restricted/ binary- amd64/Packages 404 Not Found
W: Failed to fetch http:// 192.168. 100.41/ cblr/repo_ mirror/ oneiric- amd64/dists/ oneiric/ multiverse/ binary- amd64/Packages 404 Not Found
W: Failed to fetch http:// 192.168. 100.41/ cblr/repo_ mirror/ oneiric- amd64/dists/ oneiric/ universe/ binary- amd64/Packages 404 Not Found
W: Failed to fetch http:// 192.168. 100.41/ cblr/repo_ mirror/ oneiric- amd64/dists/ oneiric/ main/binary- i386/Packages 404 Not Found
======= ======= ======= ======= =
File listing in /var/www/ cobbler/ repo_mirror:
drwxr-xr-x 6 root www-data 4096 2012-01-26 09:10 maverick-i386/ i386-security/ security/ 64-security/ i386-security/ x86_64- security/
drwxr-xr-x 6 root www-data 4096 2012-01-26 09:10 maverick-
drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 natty-i386/
drwxr-xr-x 6 root www-data 4096 2012-01-26 09:10 natty-i386-
drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 natty-x86_64/
drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 natty-x86_
drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 oneiric-i386/
drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 oneiric-
drwxrwxr-x 6 1001 1001 4096 2012-01-26 09:08 oneiric-x86_64/
drwxr-xr-x 6 root www-data 4096 2012-01-26 09:01 oneiric-
======= ======= ======= ======= ======= ======
Note that if I link the to the repo as follows, $(ARCH) works:
======= ======= ======= ======= ======= ======
lrwxrwxrwx 1 root root 23 2012-01-25 15:00 oneiric- amd64-security -> oneiric- x86_64- security/
======= ======= ======= ======= ======= ======