cozy / cozy-debian

Cozy Debian package
13 stars 4 forks source link

Install failed - Check NodeJS version #4

Closed viki53 closed 9 years ago

viki53 commented 9 years ago

Hi,

I tried yesterday to install Cozy on my personal server (OVH KimSufi with Debian) so I could test Cozy (I'm currently using ownCloud but I'm more of a Node.js kinda guy now — my PHP era is almost over).

But I got the following error message (in French):

> apt-get install cozy
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation : 

Les paquets suivants contiennent des dépendances non satisfaites :
 cozy : Dépend: nodejs mais il n'est pas installable
        Dépend: nodejs-legacy mais il n'est pas installable
        Dépend: npm mais il n'est pas installable
        Dépend: coffeescript mais il n'est pas installable
        Dépend: couchdb mais ne sera pas installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

So basically some dependencies cannot be installed (even though most of them are already installed, like nodejs and npm).

Any idea what went wrong and how to solve it?

Thanks a lot!

nledez commented 9 years ago

Could you give me the response of command?: cat /etc/apt/sources.list /etc/apt/sources.list.d/*

Thanks.

nledez commented 9 years ago

And:

dpkg -l node\*
viki53 commented 9 years ago
> cat /etc/apt/sources.list /etc/apt/sources.list.d/*

deb http://debian.mirrors.ovh.net/debian/ wheezy main
deb-src http://debian.mirrors.ovh.net/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
deb http://debian.cozycloud.cc/debian jessie main
deb http://packages.dotdeb.org wheezy-php56 all
deb-src http://packages.dotdeb.org wheezy-php56 all
deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen
deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen
deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/ /
> dpkg -l node\*
dpkg-query: aucun paquet ne correspond à node*
> node -v
v0.10.36

I think I installed nodejs manually a few months ago, so I may have not done it right…

nledez commented 9 years ago

Same issue as #3

Can you give me this command too?

dpkg -S $(which node)
viki53 commented 9 years ago

That's weird…

$ dpkg -S $(which node)
dpkg-query: aucun chemin ne correspond à /usr/local/bin/node
$ which node
/usr/local/bin/node
clochix commented 9 years ago

/usr/local/bin/node is probably a symlink, you can try:

dpkg -S $(readlink -f `which node`)
viki53 commented 9 years ago

Nope. It's a symlink, but following it doesn't seem to solve the issue…

$ which node
/usr/local/bin/node

$ readlink -f `which node`
/opt/node/bin/node

$ dpkg -S $(readlink -f `which node`)
dpkg-query: aucun chemin ne correspond à /opt/node/bin/node

I'm not really familiar with Debian (I basically do some apt-get upgrade and npm start and stuff like that most of the time)

nledez commented 9 years ago

How do you installed nodejs? Manually?

viki53 commented 9 years ago

I'm not really sure, but I think I did it manually, yes.

I've been trying to update it (to v0.12.x) for two days from the package manager, but it doesn't seem to work…


[EDIT] Okay, I think I finally managed to remove the old package and install the new one. I'll just check that my current projects still work and I'll try to run Cozy Cloud again

nledez commented 9 years ago

One of problems with Debian packaging. If you install a software manualy, it's harder for Debian to deal with this.

May be you need to clean your manual installation before retry a new installation.

Another solution if you are very sure about your installation is to make a dummy package: http://eric.lubow.org/2010/system-administration/creating-dummy-packages-on-debian/

viki53 commented 9 years ago

Now that Node.js is properly installed, the message is shorter:

Les paquets suivants contiennent des dépendances non satisfaites :
 cozy : Dépend: coffeescript mais il n'est pas installable
        Dépend: couchdb mais ne sera pas installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

I tried running some npm install -g coffescript && npm install -g couchdb, but this error is still there as these are only npm packages.

Maybe I need to remove some cached files from before?

nledez commented 9 years ago

Are you on Debian Jessie with this repository: http://cozy.io/en/host/install/install-on-debian.html

viki53 commented 9 years ago

Oops, looks like I'm still on Debian 7.5.

I just read the update manual (FR) and it looks pretty risky to update without a backup, so I'll have to wait a little until I can clear everything out. Or maybe there's a Cozy version for Debian 7.5?

nledez commented 9 years ago

Ok, I understand all your problems now.

There are many way to install cozy. A virtual machine or container on your current host.

Or our fabric cozy-setup: https://github.com/cozy/cozy-setup

nledez commented 9 years ago

Duplicate with #3