Systems Architecture when importing apt repos does not match $(ARCH) in sources.list

Bug #921597 reported by Matthew Macdonald-Wallace
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Orchestra
Invalid
Low
Andres Rodriguez
cobbler (Ubuntu)
Invalid
Low
Andres Rodriguez

Bug Description

When the "orchestra-import-isos" command is executed, the apt repos are setup as /var/www/cobbler/repo_mirror/<version>-<architecture>

This would be fine, except that for 64-bit repos it creates x86_64 as the architecture suffix and $(ARCH) in /etc/apt/sources.list resolves to amd64

This means that you cannot use the following line in /etc/apt/sources.list (or any other package list file) to automate the deployment of packages:

deb http://cobbler/cblr/repo_mirror/oneiric-$(ARCH)/ oneiric main restricted multiverse universe

This resolves to "oneiric-amd64" yet on disk the repo is oneiric-x86_64

This is a fresh install of Ubuntu 11.10 server with orchestra-provisioning-server installed on it.

Revision history for this message
Matthew Macdonald-Wallace (theprofessor) wrote :

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/

=========================================

Revision history for this message
Matthew Macdonald-Wallace (theprofessor) wrote :
Download full text (5.1 KiB)

I have also had to add additional symlinks:

root@server /var/www/cobbler/repo_mirror/oneiric-amd64/dists/oneiric# tree
.
├── main
│   ├── binary-amd64
│   │   ├── Packages.bz2
│   │   ├── Packages.gz
│   │   └── Release
│   ├── binary-i386 -> /var/www/cobbler/repo_mirror/oneiric-i386/dists/oneiric/main/binary-i386
│   └── debian-installer
│   └── binary-amd64
│   ├── Packages.bz2
│   └── Packages.gz
├── multiverse
│   ├── binary-amd64
│   │   ├── Packages.bz2
│   │   ├── Packages.gz
│   │   └── Release
│   └── binary-i386 -> /var/www/cobbler/repo_mirror/oneiric-i386/dists/oneiric/multiverse/binary-i386
├── Release
├── Release.gpg
├── restricted
│   ├── binary-amd64
│   │   ├── Packages.bz2
│   │   ├── Packages.gz
│   │   └── Release
│   └── binary-i386 -> /var/www/cobbler/repo_mirror/oneiric-i386/dists/oneiric/restricted/binary-i386
└── universe
    ├── binary-amd64
    │   ├── Packages.bz2
    │   ├── Packages.gz
    │   └── Release
    └── binary-i386 -> /var/www/cobbler/repo_mirror/oneiric-i386/dists/oneiric/universe/binary-i386

14 directories, 16 files

This allows apt-get update to work , however as soon as apt-get upgrade tries to pull in packages from the pools, it failes:

root@desktop:/etc/apt# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  curl icedtea-6-jre-cacao icedtea-6-jre-jamvm libcurl3 libcurl3:i386 libcurl3-gnutls linux-headers-3.0.0-15 linux-headers-3.0.0-15-generic
  linux-image-3.0.0-15-generic linux-libc-dev openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib thunderbird
  thunderbird-globalmenu thunderbird-gnome-support thunderbird-locale-en thunderbird-locale-en-gb thunderbird-locale-en-us
20 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 115 MB of archives.
After this operation, 1,409 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://192.168.100.41/cblr/repo_mirror/oneiric-amd64-security/ oneiric-security/main libcurl3 i386 7.21.6-3ubuntu3.2
  404 Not Found
Get:1 http://192.168.100.41/cblr/repo_mirror/oneiric-amd64-security/ oneiric-security/main libcurl3 amd64 7.21.6-3ubuntu3.2 [230 kB]
Get:2 http://192.168.100.41/cblr/repo_mirror/oneiric-amd64-security/ oneiric-security/main libcurl3-gnutls amd64 7.21.6-3ubuntu3.2 [221 kB]
Get:3 http://192.168.100.41/cblr/repo_mirror/oneiric-amd64-security/ oneiric-security/main linux-image-3.0.0-15-generic amd64 3.0.0-15.26 [37.0 MB]
Get:4 http://192.168.100.41/cblr/repo_mirror/oneiric-amd64-security/ oneiric-security/main curl amd64 7.21.6-3ubuntu3.2 [134 kB]
Get:5 http://192.168.100.41/cblr/repo_mirror/oneiric-amd64-security/ oneiric-security/main linux-headers-3.0.0-15 all 3.0.0-15.26 [11.2 MB]
Get:6 http://192.168.100.41/cblr/repo_mirror/oneiric-amd64-security/ oneiric-security/main linux-headers-3.0.0-15-generic amd64 3.0.0-15.26 [858 kB]
Get:7 http://192.168.100.41/cblr/repo_mirror/oneiric-amd64-security/ oneiric-security/main linux-libc-dev amd64 3.0.0-15.26 [824 kB]
Get:8 http://192.168.100.41/cblr/repo_mirror/oneiric-amd64-security/ oneiric-security/main icedtea-6-jr...

Read more...

Changed in orchestra:
status: New → Confirmed
importance: Undecided → Low
Changed in cobbler (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Changed in orchestra:
assignee: nobody → Andres Rodriguez (andreserl)
Changed in cobbler (Ubuntu):
assignee: nobody → Andres Rodriguez (andreserl)
Revision history for this message
Nish Aravamudan (nacc) wrote :

I don't believe this is still an issue in cobbler, please reopen if it is.

Changed in orchestra:
status: Confirmed → Invalid
Changed in cobbler (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.