Can't install WebIDE, nodejs-legacy problem.
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Can't install WebIDE, nodejs-legacy problem.

by Sanborn on Sun May 05, 2013 3:59 pm

Is WebIDE only supported on Occidental? I'm running the latest version of Debian.

If I run "curl https://raw.github.com/adafruit/Adafrui ... install.sh | sudo sh" this is what I get:

Image

Seems like an easy program to fix, anyone know what's up?
Sanborn
 
Posts: 6
Joined: Sun May 05, 2013 3:45 pm

Re: Can't install WebIDE, nodejs-legacy problem.

by MrKahuna on Sun May 05, 2013 8:31 pm

Which version of Debian are you running? Perhaps did you mean Raspbian?

I have WebIDE running on the lastest (Feb 1013 plus updates) version of Raspbian. Does a normal apt-get update & upgrade work on your system?

Your problem sounds similar to this one: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=34323&p=291844 The fact you're trying to get files from the qmh-project.org domain seems to indicate that you have some older config files?
MrKahuna
 
Posts: 19
Joined: Mon Feb 04, 2013 4:16 pm

Re: Can't install WebIDE, nodejs-legacy problem.

by Sanborn on Sun May 05, 2013 9:15 pm

Yep, my bad. I'm still getting used to the Pi lingo & *nix.

I bought a pre-flashed card from Element 14 about 6 months ago (and it sat in the box) that says Debian 6 for Linux on the flash and I have done both sudo update and upgrade a few times since then.

Edit1 - Found out how to do this from the other thread you linked, this is what I'm running:

$ uname -a
Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux

$ cat /proc/version
Linux version 3.2.27+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #160 PREEMPT Mon Sep 17 23:18:42 BST 2012
Sanborn
 
Posts: 6
Joined: Sun May 05, 2013 3:45 pm

Re: Can't install WebIDE, nodejs-legacy problem.

by Sanborn on Sun May 05, 2013 9:24 pm

Ok, I just realized from that other thread that I've only been running upgrade and not dist-upgrade.

It's currently running $ apt-get update && apt-get dist-upgrade
Sanborn
 
Posts: 6
Joined: Sun May 05, 2013 3:45 pm

Re: Can't install WebIDE, nodejs-legacy problem.

by Sanborn on Sun May 05, 2013 10:12 pm

I have a feeling that I'm being an idiot....I'm totally running Debian and don't even have Rasbian, right?
Sanborn
 
Posts: 6
Joined: Sun May 05, 2013 3:45 pm

Re: Can't install WebIDE, nodejs-legacy problem.

by adafruit_support_mike on Mon May 06, 2013 12:57 am

The output you got from `cat /proc/version` is nearly identical to what I just got from my RasPi running Wheezy (mine is the October 18 2012 build), so you should be good there.

The main problem seems to be an outdated link in the package update files. The critical line in the list of things going wrong is the one that says, "could not resolve 'archive.qmh-project.org'".

That's a DNS problem.

I just tried to resolve that address myself, and the machines I have show no address for 'archive.qmh-project.org', any other common machine name in that network, or the 'qmh-project.org' network itself.

It looks like the problem is an outdated link in the apt-get package description files. Try running:

Code: Select all | TOGGLE FULL SIZE
sudo apt-get install nodejs-legacy

now that you've done the update.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 9681
Joined: Thu Feb 11, 2010 1:51 pm

Re: Can't install WebIDE, nodejs-legacy problem.

by Sanborn on Mon May 06, 2013 4:40 pm

Yeah...something is wack.

root@raspberrypi:~# sudo apt-get install nodejs-legacy
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nodejs-legacy 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 'nodejs-legacy' has no installation candidate

My card reading is coming on Wednesday, I think I'm just going to restart with Occidentalis.
Sanborn
 
Posts: 6
Joined: Sun May 05, 2013 3:45 pm

Re: Can't install WebIDE, nodejs-legacy problem.

by adafruit_support_mike on Tue May 07, 2013 5:25 pm

Hmm.. that package doesn't seem to have been removed from the basic Debian packages. I just downloaded a copy manually here: http://packages.debian.org/sid/all/node ... y/download

The general look of the thing suggests a problem with dependencies in the package tree. I'll talk to the guys who handle WebIDE and see if they've seen the issue or have any suggestions.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 9681
Joined: Thu Feb 11, 2010 1:51 pm

Re: Can't install WebIDE, nodejs-legacy problem.

by jwcooper on Wed May 08, 2013 9:15 am

Are you able to install any other programs? Can you try installing redis (another webide dependency):

Code: Select all | TOGGLE FULL SIZE
sudo apt-get install redis-server


or try to search for node packages

Code: Select all | TOGGLE FULL SIZE
sudo apt-cache search nodejs


I just did a apt-get update && apt-get upgrade and my Raspbian was able to install nodejs-legacy without issue (I was worried it had been removed from the repository).

Code: Select all | TOGGLE FULL SIZE
pi@raspberrypi ~ $ sudo apt-cache search nodejs
node-lru-cache - Javascript least-recently-used cache object - NodeJS
node-request - simplified HTTP request client for NodeJS
node-semver - Semantic versioner for NodeJS
nodejs - Node.js event-based server-side javascript engine
nodejs-dbg - Node.js event-based server-side javascript engine (debug)
nodejs-dev - Development files for Node.js
nodejs-legacy - Node.js event-based server-side javascript engine (legacy symlink)
pi@raspberrypi ~ $ sudo apt-get install nodejs-legacy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  icelib libblas3gf liblapack3gf libqt4-dbus qdbus
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  nodejs-legacy
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/52.0 kB of archives.
After this operation, 109 kB of additional disk space will be used.
Selecting previously unselected package nodejs-legacy.
(Reading database ... 65162 files and directories currently installed.)
Unpacking nodejs-legacy (from .../nodejs-legacy_0.6.19~dfsg1-6_all.deb) ...
Processing triggers for man-db ...
Setting up nodejs-legacy (0.6.19~dfsg1-6) ...
pi@raspberrypi ~ $ cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
pi@raspberrypi ~ $
jwcooper
 
Posts: 63
Joined: Tue May 01, 2012 8:08 pm