Adding Debian Repo On Ubiquity Edgerouter

  1. Login to the console and check current version
ubnt@ubnt:~$ show version
Version:      v1.10.7
Build ID:     5127989
Build on:     10/01/18 12:27
Copyright:    2012-2018 Ubiquiti Networks, Inc.
HW model:     EdgeRouter X 5-Port
HW S/N:       XXXXXXX
Uptime:       01:51:09 up  1:03,  1 user,  load average: 1.15, 1.11, 1.12

From https://help.ubnt.com/hc/en-us/articles/205202560-EdgeRouter-Add-Debian-Packages-to-EdgeOS

The underlying Debian distribution has been upgraded from Wheezy to Stretch in the v2.0.0 EdgeOS firmware release. This means that the Debian repository used between EdgeOS v2.0.0 and older firmware versions is different.

EdgeOS v2.0.0 Release Uses Debian 9 (Stretch). Older EdgeOS Releases Uses Debian 7 (Wheezy).

  1. I know now I need to add wheezy package repo.
ubnt@ubnt:~$ configure
[edit]
ubnt@ubnt# set system package repository wheezy components 'main contrib non-free'
[edit]
ubnt@ubnt# set system package repository wheezy distribution wheezy
[edit]
ubnt@ubnt# set system package repository wheezy url http://archive.debian.org/debian
[edit]
ubnt@ubnt# commit
[ system package repository wheezy ]
Adding new entry to /etc/apt/sources.list...

[edit]
ubnt@ubnt# save
Saving configuration to '/config/config.boot'...
Done
[edit]
  1. Let’s install tree package
ubnt@ubnt:~$ sudo apt-get install tree
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  tree
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.0 kB of archives.
After this operation, 113 kB of additional disk space will be used.
Get:1 http://archive.debian.org/debian/ wheezy/main tree mipsel 1.6.0-1 [43.0 kB]
Fetched 43.0 kB in 11s (3864 B/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package tree.
(Reading database ... 36819 files and directories currently installed.)
Unpacking tree (from .../tree_1.6.0-1_mipsel.deb) ...
Setting up tree (1.6.0-1) ...