Error Unable To Read /etc/init.d/hwclock.sh
9 posts by techrepair » Sat Oct 20, 2012 9:48 pm Hi guys, I am experiencing a problem with installing the usbutils package, hwclock.sh seems to be the cause. I have searched /etc/init.d and I cannot find this script, anyone have a solution for this?Code: Select allsudo apt-get install usbutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libusb-1.0-0
The following NEW packages will be installed:
libusb-1.0-0 usbutils
0 upgraded, 2 newly installed, 0 to remove and 59 not upgraded.
3 not fully installed or removed.
Need to get 0 B/259 kB of archives.
After this operation, 791 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up util-linux (2.20.1-5.2) ...
update-rc.d: error: unable to read /etc/init.d/hwclock.sh
dpkg: error processing util-linux (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
util-linux
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
Total disk space freed by localepurge: 0 KiB
E: Sub-process /usr/bin/dpkg returned an error code (1)
Posts: 1Joined: Sat Oct 20, 2012 9:45 pm by Harold » Sun Oct 21, 2012 3:34 pm I don't know why that happens but I had it to. I just created the /etc/init.d/hwclock.sh file and but an '#' into it. Now it continues (with an warning).insserv: script hwclock.sh is not an executable regular file, skipped! Posts: 2Joined: Sun Oct 21, 2012 3:32 pm by notarat » Mon Oct 22, 2012 9:39 am I too seem to be receiving this error now whenever I try to apt-get install anyprogramIt worked fine earlier today Posts: 106Joined: Wed Sep 12, 2012 12:32 pm by jaromanda » Mon Oct 22, 2012 10:08 am log in via ssh, and run the following 6 commands one at a timeCode: Select alltouch /etc/init.d/hwclock.sh
chmod +x /etc/init.d/hwclock.sh
apt-get -f install
/etc/init.d/ntp restart
apt-get install ntpdate fake-hwclock
ntpdate-debianedit the file /etc/rc.localbefore the exit 0 on the last line addCode: Select allntpdate-debianyou may still get warnings about hwclock.sh not having some info or other in it, but they are not "fatal"enjoy xbian ... the only XBMC distro that actually works at the moment I now own 2 RPi - does that mean I own a circumference
HTTP Error 500 - Server Error.Internet Information Services (IIS)
7 Getting VNC Server to Work on a Specific User 8 Does Your Openbox Configuration Settings Not http://elinux.org/RPi_VNC_Server Start on VNC? 9 Limitations and Alternatives 10 Security Considerations What does https://blog.remibergsma.com/2013/05/08/adding-a-hardware-clock-rtc-to-the-raspberry-pi/ it do? Sometimes it is not convenient to work directly on the Raspberry Pi. Maybe you would like to work on it but from another computer by remote control. You can do this and the remote computer can even be anywhere in the world over the internet. This tutorial shows error unable how you can view and control the raspberry pi desktop from your computer's desktop by using special software. If you want to remote control the desktop showing on the screen connected to the raspberry, go to Raspberry Pi VNC Screen Sharing. What do you need? A Raspberry Pi A boot SD card for the Raspberry Pi A network connection (Ethernet or WiFi) error unable to Special software on both the Raspberry Pi and the remote, controlling computer What skill level is required? This project does not require any coding or compilation. Very basic Linux and networking knowledge would be useful, but not essential. You need to... Install software Enter basic Linux commands Use standard software tools (Windows/Linux/Mac) to add software to your PC Connect computers using ethernet cables (or to the same Wi-Fi network) How does it work? The commands described below start a "virtual" graphical session. Instead of using a hardware framebuffer, this uses RAM for a framebuffer. It also opens a network channel or port that allows programs on other computers (if they provide the password) to show the framebuffer and provide mouse and keyboard events. This way you can run a desktop session on the Raspberry Pi, but display and control it elsewhere. Because the framebuffer isn't the real framebuffer you cannot take advantage of the GPU to accelerate operations on the screen. Overview of this project You need to Install VNC (Virtual Network Computing) server software on the Raspberry Pi Start the VNC server soft
the RaspberryPi 8 May 2013 —20 Comments The Raspberry Pi does not have a hardware clock on board. Instead, to keep track of time during reboots and downtime the ‘fake-hwclock' package is used. It contains scripts to save the kernel's current clock periodically (including at shutdown) and restore it at boot so that the system clock keeps at least close to realtime. Combined with NTP this is a simple, cheap and fairly accurate setup for most use-cases. For a project at work I wanted to test a Raspberry Pi with a Real Time Clock (RTC) connected through the GPIO pins. This hardware clock needs to be very precise. I found the RasClock, by Afterthought Software, to be precise enough (about 3ppm or ~95 seconds deviation per year) while still affordable (about 15 euro). Hardware installation The hardware installation is simple. Just insert the battery and place the RasClock on the last 6 GPIO ports, at the end of the board. That's it. This is how the RasClock GPIO module looks like This is the RasClock with a battery backup installed This is the RasClock installed on the Raspberry Pi, side view This is the RasClock installed on the Raspberry Pi, top view This is the RasClock installed on two boxed Raspberry Pi's Looks pretty good! Software installation I recommend upgrading to the latest Raspbian version. At the time of writing Raspbian runs on kernel 3.6.11. By far the easiest way to upgrade firmware, is to use rpi-update. Unfortunately the ‘rtc-pcf2127a' module needed to operate the RasClock, is not in the default Linux kernel provided by Raspbian. Afterthought Software provides both a binary packages and source code for their forked raspberrypi/linux repository. They added an I2C driver for NXP/Philips PCF2127A device from Eckelmann AG. To install the binary package: wget http://afterthoughtsoftware.com/files/linux-image-3.6.11-atsw-rtc_1.0_armhf.deb dpkg -i linux-image-3.6.11-atsw-rtc_1.0_armhf.deb cp /boot/vmlinuz-3.6.11-atsw-rtc+ /boot/kernel.img The binary package is nice and quick for testing. Installing from source allows you to only build the needed kernel module, instead of a complete kernel replacement. In the comments of the Afterthought Software