# Updating Zcash Node - Feb 2019

**URL:** https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682
**Category:** Technical Support
**Created:** [February 7, 2019, 9:18pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682 "2019-02-07T21:18:45Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![phakov](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/phakov/32/5359_2.png) [@phakov](https://forum.zcashcommunity.com/u/phakov)
#### Post date: [February 7, 2019, 9:18pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/1 "2019-02-07T21:18:45Z")

</div>

So, yeah…I forgot how to do it on a Linux box 😕 Can someone help?? Thx!

---

<div class="post-metadata">

### Author: ![ChileBob](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/chilebob/32/26546_2.png) [@ChileBob](https://forum.zcashcommunity.com/u/ChileBob)
#### Post date: [February 7, 2019, 9:30pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/2 "2019-02-07T21:30:50Z")

</div>

Assuming you installed it with the package manger -

sudo apt-get update  
sudo apt-get upgrade

---

<div class="post-metadata">

### Author: ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)
#### Post date: [February 7, 2019, 11:13pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/3 "2019-02-07T23:13:27Z")

</div>

[https://zcash.readthedocs.io/en/latest/rtd\_pages/user\_guide.html#upgrading](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`

---

<div class="post-metadata">

### Author: ![phakov](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/phakov/32/5359_2.png) [@phakov](https://forum.zcashcommunity.com/u/phakov)
#### Post date: [February 7, 2019, 11:41pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/4 "2019-02-07T23:41:34Z")

</div>

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 :/)

---

<div class="post-metadata">

### Author: ![phakov](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/phakov/32/5359_2.png) [@phakov](https://forum.zcashcommunity.com/u/phakov)
#### Post date: [February 8, 2019, 9:24pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/5 "2019-02-08T21:24:38Z")

</div>

I’m gonna bump this up since I added more to my last comment 🙂

---

<div class="post-metadata">

### Author: ![garethtdavies](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/garethtdavies/32/210_2.png) [@garethtdavies](https://forum.zcashcommunity.com/u/garethtdavies)
#### Post date: [February 8, 2019, 9:38pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/6 "2019-02-08T21:38:35Z")

</div>

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)

---

<div class="post-metadata">

### Author: ![ChileBob](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/chilebob/32/26546_2.png) [@ChileBob](https://forum.zcashcommunity.com/u/ChileBob)
#### Post date: [February 8, 2019, 11:20pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/7 "2019-02-08T23:20:14Z")

</div>

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

---

<div class="post-metadata">

### Author: ![phakov](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/phakov/32/5359_2.png) [@phakov](https://forum.zcashcommunity.com/u/phakov)
#### Post date: [February 8, 2019, 11:51pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/8 "2019-02-08T23:51:48Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![ChileBob](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/chilebob/32/26546_2.png) [@ChileBob](https://forum.zcashcommunity.com/u/ChileBob)
#### Post date: [February 9, 2019, 12:01am UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/9 "2019-02-09T00:01:12Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![phakov](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/phakov/32/5359_2.png) [@phakov](https://forum.zcashcommunity.com/u/phakov)
#### Post date: [February 9, 2019, 1:55pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/10 "2019-02-09T13:55:16Z")

</div>

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.

```

😕

---

<div class="post-metadata">

### Author: ![ChileBob](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/chilebob/32/26546_2.png) [@ChileBob](https://forum.zcashcommunity.com/u/ChileBob)
#### Post date: [February 9, 2019, 2:46pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/11 "2019-02-09T14:46:02Z")

</div>

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](https://zcash.readthedocs.io/en/latest/rtd_pages/install_debian_bin_packages.html)

(Edit: Smelling pistakes)

---

<div class="post-metadata">

### Author: ![phakov](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/phakov/32/5359_2.png) [@phakov](https://forum.zcashcommunity.com/u/phakov)
#### Post date: [February 9, 2019, 3:56pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/12 "2019-02-09T15:56:14Z")

</div>

Thanks again 🙂 Sorry for appearing obtuse…I’m not sure how to do this command:

wget -qO - [https://apt.z.cash/zcash.asc](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…

---

<div class="post-metadata">

### Author: ![phakov](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/phakov/32/5359_2.png) [@phakov](https://forum.zcashcommunity.com/u/phakov)
#### Post date: [February 9, 2019, 4:02pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/13 "2019-02-09T16:02:38Z")

</div>

Success! Thanks again Bob!!! I’m noding again 🙂

---

<div class="post-metadata">

### Author: ![ChileBob](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/chilebob/32/26546_2.png) [@ChileBob](https://forum.zcashcommunity.com/u/ChileBob)
#### Post date: [February 9, 2019, 4:04pm UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/14 "2019-02-09T16:04:27Z")

</div>

No worries - welcome back to the network 😉

---

<div class="post-metadata">

### Author: ![ChileBob](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/chilebob/32/26546_2.png) [@ChileBob](https://forum.zcashcommunity.com/u/ChileBob)
#### Post date: [February 16, 2019, 2:38am UTC](https://forum.zcashcommunity.com/t/updating-zcash-node-feb-2019/32682/15 "2019-02-16T02:38:00Z")

</div>

…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
