FAQ Improvements and Errors on Omada SDN Controller Installation on Linux
I'm moving from running Omada controller in Docker to native mode in Ubuntu 22.04, and have read the FAQ here: https://www.tp-link.com/us/support/faq/3272/
After reading through that, there are some errors and improvements that could be made:
- Supported Linux distributions: include Ubuntu 22.04. See below.
- Through the entire FAQ, there are apt commands that are invalid because the -y comes just before the package name. Example with OpenJDK 8:
sudo apt install -y openjdk-8-jre-headless
Fails with "E: Unable to locate package -y". It should be replaced with the -y after apt, and in many places:
sudo apt -y install openjdk-8-jre-headless.
So this needs to be replaced and resolved. Some other places don't have the -y switch and that could be added.
- On 3.1, Install MongoDB, the public key importing through apt-key is deprecated. This is the command that replaces it:
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo tee /etc/apt/trusted.gpg.d/server-4.4.asc
-
On the Install MongoDB, Ubuntu 22.04 support can be added: echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
-
On How to Compile to JSVC, you could add all the dependencies into a single line: sudo apt install autoconf make gcc openjdk-11-jdk-headless
- And on the instructions to Download the source codes, the version is now 1.3.1. The current wget command line throws an Error 404 not found.
-
On the same, it's missing the command to extract the package after downloading:
wget URL... commons-daemon-1.3.1-src.tar.gz <== updated to 1.3.1
tar -zxvfcommons-daemon-1.3.1-src.tar.gz <== missing cd commons-daemon-1.3.1-src/src/native/unix/
sh support/buildconf.sh <== throw warnings but that's ok
-
Instead of creating a symbolic link, I just copy the jsvc binary to /usr/bin
sudo cp jsvc /usr/bin/
That's it. Keep up with the good work.
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
Thanks for the updates!
I've been trying for a few hours and keep running into issues. Trying to use an Ubuntu 20.0.4 container in Proxmox
sudo apt -y install openjdk-8-jre-headless
Gives the following error:
root@Omada:~# apt -y install openjdk-8-jre-headless
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package openjdk-8-jre-headless is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'openjdk-8-jre-headless' has no installation candidate
- Copy Link
- Report Inappropriate Content
What repos do you have enabled?
- Copy Link
- Report Inappropriate Content
I'll be honest and say that I'm not entirely sure -- I'm extremely green with Linux, coming from a Windows background and was just following the TP Link guide. I haven't done anything other than try running the commands in the order listed in the help guide. I saw that V8 was depricated awhile back, so I'm not sure if it's still valid or not.
- Copy Link
- Report Inappropriate Content
@caverunner17 Can you share the full output of this command?
sudo apt update && sudo apt install openjdk-8-jre-headless
- Copy Link
- Report Inappropriate Content
The sudo command doesn't work, I presume because I'm logged in as the root user (line 1-2), so I did it without sudo and the rest is the output. Had to add spaces to the URL's in the post so it wouldn't error out when replying
Thank you!
root@Omada:~# sudo apt update && sudo apt install openjdk-8-jre-headless
-bash: sudo: command not found
root@Omada:~# apt update && apt install openjdk-8-jre-headless
Hit:1 http // security debian org bullseye-security InRelease
Hit:2 http // ftp debian org / debian bullseye InRelease
Hit:3 http // ftp debian org / debian bullseye-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package openjdk-8-jre-headless is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'openjdk-8-jre-headless' has no installation candidate
- Copy Link
- Report Inappropriate Content
@caverunner17 It looks like you are running Debian, not Ubuntu 20.04.4.
Those instructions won't work on Debian
- Copy Link
- Report Inappropriate Content
Well, I'm an idiot. I used the wrong container template in Proxmox. Low and behold, using the Ubuntu container and everything works now.
Thank you!
- Copy Link
- Report Inappropriate Content
EDIT
- Copy Link
- Report Inappropriate Content
@caverunner17 The default user on a proxmox install is root so you don't even need to use sudu when you run these steps. Some argue you shouldn't use the default root user on promox, but if you are running in an unprivileged container in a home environment, its probably fine.
- Copy Link
- Report Inappropriate Content
EDIT
- Copy Link
- Report Inappropriate Content
Information
Helpful: 1
Views: 2843
Replies: 21