NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Hyperbit
Oct 31, 2012Aspirant
LIBC6 update
i try to install PyCrypto but i get some errors
so i try to update the libc6
can i do the apt-get install -t lenny linux.... without problems? or will this crash the nas?
[ReadyNasDuo Sparc]
Preparing to replace python-crypto 2.6-2 (using python-crypto_2.6-2_sparc.deb) ...
Unpacking replacement python-crypto ...
dpkg: dependency problems prevent configuration of python-crypto:
python-crypto depends on libc6 (>= 2.6); however:
Version of libc6 on system is 2.3.2.ds1-22sarge6.infrant1.
python-crypto depends on libgmp10; however:
Package libgmp10 is not installed.
dpkg: error processing python-crypto (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-crypto
so i try to update the libc6
datengrab:/c/datensammlung# dpkg -i libc6_2.13-36_sparc.deb
(Reading database ... 14319 files and directories currently installed.)
Preparing to replace libc6 2.3.2.ds1-22sarge6.infrant1 (using libc6_2.13-36_sparc.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
WARNING: this version of the GNU libc requires kernel version
2.6.26 or later. Please upgrade your kernel before installing
glibc.
The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add lenny sources to your /etc/apt/sources.list and run:
apt-get install -t lenny linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing libc6_2.13-36_sparc.deb (--install):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
libc6_2.13-36_sparc.deb
datengrab:/c/datensammlung#
can i do the apt-get install -t lenny linux.... without problems? or will this crash the nas?
[ReadyNasDuo Sparc]
15 Replies
Replies have been turned off for this discussion
- EtzAspirantDont do it, as it basically breaks ReadyNAS OS and you have to do factory default, (which will wipe your data) after that, to restore it into working order.
If you use forum search there are lots of topics about Libc6 update and sideeffects of that.
For example:
viewtopic.php?f=35&t=51949
viewtopic.php?f=65&t=43605 - HyperbitAspirantthx so far,
lookin for option to autostart pyload after boot
PYLOAD!!PyLoad!!0.4.9!!start-stop-daemon -S -q -x /usr/bin/pyLoadCore
in addons.conf does not work - EtzAspirantWhat version of FW are you running?
And what version of python?
Is it python addon or installed by hand via apt-get? - HyperbitAspirantraid 4.1.10
python 2.7.3 (ReadyNasXtras)
i installed Pyload via dpkg (dpkg -i pyload-cli-v0.4.9-all.deb)
Pyload is working if i start it manual in ssh with:/usr/bin/pyLoadCore --daemon or
start-stop-daemon -S -q -x /usr/bin/pyLoadCore
only the autorun doesn't works :/
By the way to the two posts u list above: there is no way to update libc6!? and if theres no way.. how can i install pycrypto?? - EtzAspirant
Hyperbit wrote: only the autorun doesn't works :/
But why not use this one: viewtopic.php?f=47&t=51851 (ReadyNasXtras package)?
Its pre-compiled 0.4.9, works well and has all necessary scripts included.
In youre case "autorun" doesnt work, because probably there is no startup script for Pyload service in /etc/init.d/
You could try to create it though, here is mine (x86 unit):#!/bin/sh
### BEGIN INIT INFO
# Provides: pyload
# Required-Start: $syslog $local_fs $network $remote_fs
# Required-Stop: $syslog $local_fs $network $remote_fs
# Should-Start: $remote_fs $named
# Should-Stop: $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts pyload daemon
# Description: This script runs the pyload service
### END INIT INFO
# Starts and stops the pyload daemon.
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/bin/pyLoadCore
PIDFILE="~/.pyload/pyload.pid"
. /lib/lsb/init-functions
start() {
log_daemon_msg "Starting pyLoad server"
$DAEMON --daemon
if [ $? != 0 ]; then
log_end_msg 1
exit 1
else
log_end_msg 0
fi
}
stop() {
log_daemon_msg "Stoping pyLoad server"
$DAEMON -q
if [ $? != 0 ]; then
log_end_msg 1
# exit 1
else
log_end_msg 0
fi
}
case "$1" in
start)
start
;;
stop)
stop
;;
force-reload)
stop
sleep 5
start
;;
restart)
stop
sleep 2
start
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0
Also sometimes looking into documentation helps a bit also... ;)
http://dev.shyd.de/2011/01/debian-downl ... on-pyload/ - HyperbitAspirantI purchased the pyload addon from readynasxtras, but it doesnt works.. downloads crashing pyload.. the Bild of readynas Extras isbugged... so i use the original source.
I opened a bug ticket @ readynasxtras - HyperbitAspirant
Etz wrote: Hyperbit wrote: only the autorun doesn't works :/ #!/bin/sh
### BEGIN INIT INFO
# Provides: pyload
# Required-Start: $syslog $local_fs $network $remote_fs
# Required-Stop: $syslog $local_fs $network $remote_fs
# Should-Start: $remote_fs $named
# Should-Stop: $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts pyload daemon
# Description: This script runs the pyload service
### END INIT INFO
# Starts and stops the pyload daemon.
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/bin/pyLoadCore
PIDFILE="~/.pyload/pyload.pid"
. /lib/lsb/init-functions
start() {
log_daemon_msg "Starting pyLoad server"
$DAEMON --daemon
if [ $? != 0 ]; then
log_end_msg 1
exit 1
else
log_end_msg 0
fi
}
stop() {
log_daemon_msg "Stoping pyLoad server"
$DAEMON -q
if [ $? != 0 ]; then
log_end_msg 1
# exit 1
else
log_end_msg 0
fi
}
case "$1" in
start)
start
;;
stop)
stop
;;
force-reload)
stop
sleep 5
start
;;
restart)
stop
sleep 2
start
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0
I Got this startupscript inside of init.d , where can i call it for startup ??
I trydupdate-rc.d pyload defaults
without success - EtzAspirant
Hyperbit wrote: I Got this startupscript inside of init.d , where can i call it for startup ??
I trydupdate-rc.d pyload defaults
without success
Did you reboot the unit afterwards?
Also did you check that paths are correct and applicable to your Duo?
Also if you still want to start it manually, it should be:/etc/init.d/pyload start|stop|restart
Whatever you choose to do it: start it, stop it, restart it.
Quick reference what are init.d scripts and how to use them: http://www.debian-administration.org/articles/28 - HyperbitAspirantyes i did :) but after reboot pyload does not start :( - very strange
- EtzAspirantDoes it start manually?
/etc/init.d/pyload start
Shold throw out something like this on success:11:57:46-root@NAS:~$ /etc/init.d/pyload start
Starting pyLoad server:Daemon PID 3985
.
Also make sure, it is executable and has correct permissions.
EDIT:
Are you 100% sure its not running, or you just dont have access to WebInterface?
What is the output of:ps aux | grep pyLoadCore
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!