Can't install any packages at all using opkg install on Onion Omega2 Pro [RESOLVED]
-
Already tried that multiple times of course.
-
@Yvan-Gagnon What package are you trying to install? What is the contents of your
/etc/opkg.conf
?
-
I've tried installing these packages .. and all of them fail
nano
blink-library
nodejs
npmHere are the current contents of my opkg.conf file:
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
option check_signature 1opkg update seems to run fine, btw (It's install that doesn't appear to be working).
Someone else here mentioned something about them always having 100% disk space used up on their new Onion Omega Pro, and I'm wondering if I might be running into the same issue. I'm not really sure how to deciper this, but here's what I'm getting when I run "df" at the command line:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 7936 7936 0 100% /rom
tmpfs 29972 220 29752 1% /tmp
/dev/mmcblk0p1 7484816 529616 6555280 7% /overlay
overlayfs:/overlay 7484816 529616 6555280 7% /
tmpfs 512 0 512 0% /dev
/dev/mtdblock6 6720 376 6344 6% /mnt/mtdblock6It appears that /dev/root is pegged at 100%, but I'm not sure. Any thoughts?
- -Yvan
-
UPDATE: Well .. I just succeeded at installing python, so I now know that opkg install does in fact work. I'm beginning to suspect that I might be trying to install packages that aren't available in any of the repos that I'm querying and that I might need to add some URLs to my distfeeds.conf file. Here's what I have in there right now:
#src/gz openwrt_core http://downloads.openwrt.org/releases/18.06-SNAPSHOT/target
#src/gz openwrt_base http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packag
#src/gz openwrt_luci http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packag
#src/gz openwrt_onion http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packa
#src/gz openwrt_packages http://downloads.openwrt.org/releases/18.06-SNAPSHOT/pa
#src/gz openwrt_routing http://downloads.openwrt.org/releases/18.06-SNAPSHOT/pac
#src/gz openwrt_telephony http://downloads.openwrt.org/releases/18.06-SNAPSHOT/p
src/gz omega2_core http://repo.onioniot.com/omega2/packages/core
src/gz omega2_base http://repo.onioniot.com/omega2/packages/base
src/gz omega2_packages http://repo.onioniot.com/omega2/packages/packages
src/gz omega2_routing http://repo.onioniot.com/omega2/packages/routing
src/gz omega2_onion http://repo.onioniot.com/omega2/packages/onionDoes anyone here know which repos I should add to my distfeeds.conf file so that I can download and install these packages?
blink-library
nano
aplay
npm-- Yvan
-
@Yvan-Gagnon Edit the '/etc/opkg/distfeeds.conf' file with vi and enable (uncommment) the
'... openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages' line.opkg update
opkg list | grep -i <some_keyword>
# Omega2 Pro light v0.3.1 b214 :-) # for example root@Omega-99A5:~# opkg list | grep -i nano nano - 3.2-1 - Nano (Nano's ANOther editor, or Not ANOther editor) is an enhanced clone of the Pico text editor. root@Omega-99A5:~# opkg list | grep -i node ibrdtn-tools - 1.0.1-1 - The IBR-DTN Tools include functionality for sending and receiving files (dtnsend/dtnrecv) and a tools to ping a DTN node (dtnping). kadnode - 2.2.0-2 - A P2P DNS system based on the BitTorrent network. It can be used as a decentralized DynDNS service. libuv - 1.19.2-1 - libuv is a multi-platform support library with a focus on asynchronous I/O. It was primarily developed for use by Node.js, but it's also used by Luvit, Julia, pyuv, and others. muninlite - 1.0.4-8 - Munin node implemented in shell node - v8.10.0-3 - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world. node-npm - v8.10.0-3 - NPM is the package manager for NodeJS onion-node-red - 0.19.5-1 - Flow-based development tool for visual programming oos-app-nodered - 1.0.0-1 - Node-Red : Node-Red Graphical Programming interface [Omega2 Pro] ... root@Omega-99A5:~# opkg list | grep -i npm node - v8.10.0-3 - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world. node-npm - v8.10.0-3 - NPM is the package manager for NodeJS
Unfortunately I didn't find anything about that blink-library.
Good luck.
-
Actually -- the correct spelling is "blynk-library", and I wasn't able to locate the package either. So I guess these articles must be completely wrong or outdated then?
https://onion.io/2bt-blynk-omega/
https://www.instructables.com/id/Blynk-and-Omega2-Love/
-- Yvan
-
Thank you by the way. I has already figured out how to uncomment those lines in my distfeeds.conf file and to install nano. But I just now learned that the npm package is named "node-npm" and I'm installing it as we speak.
-- Yvan
-
To chime in: see our updated Installing and Using NodeJS documentation article for instructions on installing Node and npm v8.10
@Yvan-Gagnon can you please add [resolved] to the post title?
EDIT:
for anybody looking for the solution to installingblynk-library
, the instructions in the blog post have been updated.
as per this other post on the subject.
In a nutshell,blynk-library
can now be installed using npm.
-
@Lazar-Demin I just tried installing node following the same (updated) directions on a brand new onion 2+ and got the same error,
root@Omega-63D5:~# opkg install node
Unknown package 'node'.
Collected errors:- opkg_install_cmd: Cannot install package node.
-
Would you try this?
opkg update
opkg install nodejs
opkg install npm
-
@davidsi I get the same error
-
New to the forum and encountered the same. I was trying to install NodeJS. Thanks to @György-Farkas, got it going with:
opkg install node-npm
Cheers
-
A helpful tip: you can use
opkg
to list out all of the packages available to install. Then you can usegrep
to search the list for packages you're interested in.More on this under the Finding packages to install heading here: http://docs.onion.io/omega2-docs/using-opkg.html#how-to-use-the-package-manager
-
3 easy steps to find if your package is available :
- Edit /etc/opkg/distfeeds.conf and uncomment line 2 and 5
- opkg update
- opkg list | grep -i <package name>
Where <package name> is the minimum string to identify the package, for instance to find sqlite packages use opkg list | grep -i sqlite results are:
libsqlite3 - 3310100-1
sqlite3-cli - 3310100-1