So, yeah…I forgot how to do it on a Linux box Can someone help?? Thx!
Assuming you installed it with the package manger -
sudo apt-get update
sudo apt-get upgrade
https://zcash.readthedocs.io/en/latest/rtd_pages/user_guide.html#upgrading
cd zcash
git fetch origin
git checkout v2.0.2
./zcutil/fetch-params.sh
./zcutil/build.sh
Thank you @ChileBob Bob and @Shawn !!!
Edit: I am trying both recommendations and am getting this:
Messages:
- Error: This version has been deprecated as of block height 476012. You should
upgrade to the latest version of Zcash.
Any suggestions? (NB: I’m not an experienced Linux user :/)
I’m gonna bump this up since I added more to my last comment
How did you install?
Assuming you’ve upgraded you would need to restart zcashd
so zcash-cli stop
followed by zcashd --daemon
(you might want to look at the history
command to see if you specified any other options when you started up last time - or run history | grep zcashd
to show just zcashd
related commands you previously issued)
You might have installed it with the package manager last time which would have put it on your search path, so when you run ‘zcashd’ its starting that.
Type ‘which zcashd’ to confirm.
If you’ve installed the new version in a different place, try
cd /wherever/you/installed
./zcashd
I know I type cd ~/.zcash
when I am in the terminal to start the “zcashd” program. I run the zcashd when I am in the path reference above.
Hmm…ok…that might be the problem.
Try running with ./zcashd
That forces it to run the version in the current directory, if you run it without the ./ it’ll run the one the package manager installed.
If I run zcashd --daemon
I get this:
dsd@dsd-System-Product-Name:~/.zcash$ zcashd --daemon
Zcash server starting
dsd@dsd-System-Product-Name:~/.zcash$ Error: This version has been deprecated as of block height 476012. You should upgrade to the latest version of Zcash.
I entered “which zcashd” and it tells me “/usr/bin/zcash”
The terminal command line functions in Linux are a mystery to me. I change to the “zcash” path from the root and then try typing “./zcashd” and get an error saying it’s not a valid file or dir. I’m really in the dark
I’m also trying to run sudo apt-get update
and get this error:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2A798EF998940FA
Fetched 3,424 kB in 26s (133 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.z.cash jessie Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2A798EF998940FA
W: Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
W: Failed to fetch https://apt.z.cash/dists/jessie/Release.gpg The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2A798EF998940FA
W: Some index files failed to download. They have been ignored, or old ones used instead.
Ok - so the version you’re running was installed by the package manager but the upgrade is failing because the gpg key cant be verified.
Here’s instructions on how to fix that - basically deletes the old key, installs the new one & then upgrades with the package manager -
https://zcash.readthedocs.io/en/latest/rtd_pages/install_debian_bin_packages.html
(Edit: Smelling pistakes)
Thanks again Sorry for appearing obtuse…I’m not sure how to do this command:
wget -qO - https://apt.z.cash/zcash.asc | sudo apt-key add -
Key fingerprint = 3FE6 3B67 F85E A808 DE9B 880E 6DEF 3BAF 2727 66C0
this linux terminal commands are a mystery…and the zcash page there showing what to do isn’t helpful for n00b users like me
Does it pull the key from the site and the hash is for reference to make sure it’s legit? after I enter the wget command I get this:
dsd@dsd-System-Product-Name:~/.zcash$ Key fingerprint = 3FE6 3B67 F85E A808 DE9B 880E 6DEF 3BAF 2727 66C0
Command 'Key' not found, did you mean:
command 'key' from deb donkey
Try: sudo apt install <deb name>
dsd@dsd-System-Product-Name:~/.zcash$
dsd@dsd-System-Product-Name:~/.zcash$
dsd@dsd-System-Product-Name:~/.zcash$ wget -qO - https://apt.z.cash/zcash.asc | sudo apt-key add -
OK
dsd@dsd-System-Product-Name:~/.zcash$
ok…so now it says ok…I will do more…
Success! Thanks again Bob!!! I’m noding again
No worries - welcome back to the network
…you’ll probably want to upgrade it again now 2.0.3 has been released - it’ll be easier this time now your package manager has been unscrewed. Commands are :-
zcash-cli stop
apt-get update
apt-get upgrade
zcashd -daemon