rock solid forwarder

Hi,

My Pi just killed the SD card so I have moved to the rock solid image from emoncms.

Everything is back up and running except for a small perl script I used on my own pi.

this basically checks the presence of AC mains voltage on the inverter if it doesn't detect a voltage during the daylight hours it emails me to let me know.

this protects against not knowing that the garage trip has popped as if it pops this causes the g83 protection to kick in which could leave me with PV off until i notice.

It has tripped twice in the last year and this helps me sort it quickly.

I used ssmtp in the past but cant seem to install it with the following error and im a centos person and have no idea re raspbian

​Any clues how to fix it without a complete custom build of the gateway sd

root@oemgateway:/usr/local/bin# apt-get install ssmtp
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  libgnutls-openssl27 libgnutls26
The following NEW packages will be installed:
  libgnutls-openssl27 ssmtp
The following packages will be upgraded:
  libgnutls26
1 upgraded, 2 newly installed, 0 to remove and 44 not upgraded.
Need to get 818 kB/873 kB of archives.
After this operation, 280 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libgnutls26 armhf 2.12.20-7
  404  Not Found
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libgnutls-openssl27 armhf 2.12.20-7
  404  Not Found
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/g/gnutls26/libgnut... 404  Not Found
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/g/gnutls26/libgnut... 404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

pb66's picture

Re: rock solid forwarder

Sorry if this is daft question, but did you run apt-get update before apt-get install ssmtp

It maybe trying to upgrade using out of date info.

btw DO NOT run apt-get upgrade though as this will possibly break the RO image irreversibly.

seannation's picture

Re: rock solid forwarder

Agree with the above answer: I've run into this a few times and it has fixed itself with an ~$ apt-get update. If a mirror has moved to a new location, or gone offline, running update should stop it from 404ing by updating the package locations.

Otherwise, if that doesn't fix it, try pinging Google (~$ ping google.com). If that fails, then you have an issue with the internet connection (common culprit is the configuration in /etc/network/interfaces).

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.