# Download Packages Different repositories exist for different AGL releases.\ You need to download and install the packages based on your version of AGL. ## Set the `REVISION` Environment Variable All the packages reside in repositories managed by the [OpenSUSE Build Service (OBS)](https://build.opensuse.org/).\ You can see the packages [here](https://build.opensuse.org/project/subprojects/isv:LinuxAutomotive#). Currently, support exists for the following AGL releases: * ElectricEel * FunkyFlounder * GrumpyGuppy * HappyHalibut * Master You need to set the `REVISION` environment variable to the AGL release you are using.\ For this example, set and export `REVISION` as "Master". ```bash export REVISION=Master ``` For additional details about OBS, see [LinuxAutomotive page on OBS](https://build.opensuse.org/project/show/isv:LinuxAutomotive). ## Make Sure Your `DISTRO` Environment Variable is Set The `DISTRO` environment variable needs to be correctly set for your Linux distribution.\ See the "[Verify Your Build Host](./1-verify-build-host.html)" section for information on how to set this variable. ## Install the Repository ```bash Hit:1 https://deb.nodesource.com/node_10.x xenial InRelease Hit:2 https://download.docker.com/linux/ubuntu xenial InRelease Hit:3 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:4 http://us.archive.ubuntu.com/ubuntu xenial InRelease Ign:5 http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/AGL_FunkyFlounder/xUbuntu_16.04 ./ InRelease Hit:6 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:7 http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/AGL_FunkyFlounder/xUbuntu_16.04 ./ Release Hit:8 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease Reading package lists... Done ``` Not sure why you get the `Ign` on line 5.\ I guess InRelease does not exist. If you don't have a `/etc/apt/sources.list.d/AGL.list` file to even start with, and you run through the whole thing, you get the following output: ```bash $ sudo apt-get update Hit:1 https://deb.nodesource.com/node_10.x xenial InRelease Hit:2 https://download.docker.com/linux/ubuntu xenial InRelease Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB] Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB] Ign:6 http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/AGL_FunkyFlounder/xUbuntu_16.04 ./ InRelease Hit:7 http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/AGL_FunkyFlounder/xUbuntu_16.04 ./ Release Get:9 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] Get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [902 kB] Fetched 1,225 kB in 1s (803 kB/s) Reading package lists... Done ``` Following are example commands that show how to install the package repository based on various values of `DISTRO` and `REVISION`: ### Ubuntu and "Master" ```bash export REVISION=Master export DISTRO="xUbuntu_18.04" wget -O - http://download.opensuse.org/repositories/isv:/LinuxAutomotive:/AGL_${REVISION}/${DISTRO}/Release.key | sudo apt-key add - sudo bash -c "cat >> /etc/apt/sources.list.d/AGL.list <