Problem installing Chia GUI on Ubuntu

Hi guys!

When trying to install the Chia GUI I get the following error:

(venv) chia@chia-farmer:~/chia-blockchain$ sh install-gui.sh
apt-get is /bin/apt-get
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libxss1 is already the newest version (1:1.2.3-1).
nodejs is already the newest version (10.19.0~dfsg-3ubuntu1).
npm is already the newest version (6.14.4+ds-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.

Installing on Ubuntu 20.04 LTS or newer: Using installed node.js version.
Running git submodule update --init --recursive.

Running git submodule update.

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/prettier-1dab4d9a/esm/parser-meriyah.mjs'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/rxjs-2a5e4c83/internal/testing/TestScheduler.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/rxjs-2a5e4c83/_esm5/internal/operators/throttle.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/@material-ui/core-bc677423/esm/OutlinedInput/OutlinedInput.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/rxjs-2a5e4c83/add/operator/throttle.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/@material-ui/core-bc677423/OutlinedInput/OutlinedInput.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/rxjs-2a5e4c83/internal/operators/throttle.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/@material-ui/core-bc677423/es/utils/ownerDocument.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/@material-ui/core-bc677423/esm/utils/ownerDocument.js'
.
.
.
.
.
.
.
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-pure-d5303499/features/math/umulh.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/internals/typed-array-constructors-require-wrappers.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-pure-d5303499/es/unescape.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/internals/typed-array-from-species-and-list.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-pure-d5303499/features/unescape.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/internals/typed-array-from.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-pure-d5303499/stable/unescape.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/internals/typed-array-species-constructor.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-pure-d5303499/features/set/union.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/internals/uid.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-pure-d5303499/features/array/unique-by.js'
.
.
.
.
.
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/features/array/values.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/features/array/virtual/values.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/features/instance/values.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/features/object/values.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/features/typed-array/values.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/stable/array/values.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/stable/array/virtual/values.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/stable/instance/values.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/stable/object/values.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/stable/typed-array/values.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/modules/web.dom-collections.for-each.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/modules/web.dom-collections.iterator.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/modules/web.immediate.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/modules/web.queue-microtask.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/modules/web.timers.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/modules/web.url-search-params.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/core-js-89fb4a68/modules/web.url.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/locale/ar-TN'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/locale/de/index.ts.flow'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/locale/en-AU/index.ts.flow'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/locale/en-CA/index.ts.flow'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/locale/en-GB/index.ts.flow'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/locale/en-IN/index.ts.flow'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/locale/en-NZ/index.ts.flow'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/locale/en-US/index.ts.flow'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/locale/en-ZA/index.ts.flow'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/add/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/addBusinessDays/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/addDays/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/addHours/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/addISOWeekYears/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/addMilliseconds/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/addMinutes/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/addMonths/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/addQuarters/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/addSeconds/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/addWeeks/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/addYears/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/areIntervalsOverlapping/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/clamp/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/closestIndexTo/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/closestTo/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/compareAsc/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/compareDesc/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/constants/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/daysToWeeks/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInBusinessDays/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInCalendarDays/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInCalendarISOWeeks/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInCalendarISOWeekYears/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInCalendarMonths/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInCalendarQuarters/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInCalendarWeeks/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInCalendarYears/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInDays/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInHours/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInISOWeekYears/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInMilliseconds/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInMinutes/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInMonths/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInQuarters/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInSeconds/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInWeeks/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/differenceInYears/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/eachDayOfInterval/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/eachHourOfInterval/index.js'
.
.
.
.
.
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/endOfISOWeek/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/endOfISOWeekYear/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/endOfMinute/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/endOfMonth/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/endOfQuarter/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/endOfSecond/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/endOfToday/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/endOfTomorrow/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/endOfWeek/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/endOfYear/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/endOfYesterday/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/format/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/chia/chia-blockchain/chia-blockchain-gui/node_modules/.staging/date-fns-6f00be74/esm/formatDistance/index.js'
npm ERR! code 1
npm ERR! Command failed: git checkout master
npm ERR! error: pathspec 'master' did not match any file(s) known to git
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/chia/.npm/_logs/2021-11-24T14_15_10_640Z-debug.log

It goes on and on with the errors. What did I do wrong?

I already tried removing the chia-blockchain directory and reinstalling with the instructions in the wiki.

Hope someone can help!

Thanks upfront!

Strange…
I assume you followed github instructions to get to the

(venv) chia@chia-farmer:

prompt so it’s just the last part of installing the GUI going wrong…

You are using Ubuntu 20.04 Desktop version of course, otherwise no fun with a GUI;-)
Is it a first time install?

I saw a disclaimer in the github instructions: # You can not install and run the GUI as root.
You didn’t give the user chia permanent root privileges?

If all else fails maybe its easier to install the one-click installer downloadable with firefox on your Ubuntu system (from chia.net).
Well it’s not one click really, just save the .deb file first before opening from the file-manager. When run directly from the download pop-up there are reports of error messages preventing installation.
But when done with the in between save the GUI should start and show without any problem.

Hi xkredr59!

First of all, thanks for the fast response!

No it is not the first installation, I had a problem with updating today and some articles stated that removing the chia-blockchain directory and reinstalling like in the instructions could help. But after doing so this error started to appear.
I indeed had the user in sudoers, but after taking the priveleges the errors still appear.

I also tried installing via the .deb but the software installer gives an error:
error installing file: not supported

What I did before the update error was the following:

npm stated that it needs to be updated (6.14.4 to 8… cant remember it right). I did that and then couldnt update the chia-blockchain-gui because it was ā€œmoddifiedā€. So I thought if I remove the chia-blockchain directory and uninstall npm and reinstall it, it would work again.

But since then the errors come up.

It’s not the case you installed earlier by the .deb file?
That installs to another path than the install instructions on github, so could explain all the 'no such file… errors regarding the path /home/chia/chia-blockchain/chia-blockchai-gui/…
Don’t think one can install with the .deb installer and mix with the github instructions…

Regarding the .deb installer, did you save it to disk first and then start from file manager. If ā€˜run’ directly from the download-popup I had errors also.

Otherwise i’m lost for answers right now.

1 Like

Hey it worked! It really was the order problem. Save the file first and then open it with the package installer.
Thanks alot!

I had the same problem. My Chia installation was a git clone of the official repo, following their official install instructions for Ubuntu 20.04, and I was trying to update to the latest version of both Chia and Chia GUI.

I am not 100% sure but I think the issue stems from Ubuntu 20.04 have outdated versions of npm and node installed by default when installing from apt. It seems like the updates to Chia GUI use features that are not compatible with the old apt versions of npm / node (?)

I tried futzing around with different solutions and eventually got updated versions of npm / node installed as per here; npm does not support Node.js v10.15.2 Ā· Issue #1877 Ā· nodejs/help Ā· GitHub

# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
sudo apt-get install -y nodejs

However this ended up installing Node version 17.x, which for whatever reason has SSL library incompatibilities (??), so I had to downgrade my Node to version 16.x

sudo npm install -g n // -g for global installation 
sudo n 16.9.1

After all that I was able to get it installed, however I could not get the install-gui.sh script to work because apt is reporting ā€œbrokenā€ node packages now (I think I screwed with the apt package list and other manual install methods, was really throwing things at the wall for this one…). So, I just manually ran each command as shown in the end of the install-gui.sh script to re-install the GUI components. It helped a lot to just completely nuke the existing chia-blockchain-gui directory and re-init it with the git submodule update commands shown in the script, since I think some of the failed installations can tend to leave behind junk in the node_modules dir that might interfere. Also, do not forget to have the Chia venv activated before you try to do this (. ./activate) else the commands wont work.

After going in circles for an hour or so doing all these things (updating/downgrading node & npm, manually installing the GUI components), it finally worked. phew

I am starting to see now why JS devs loathe npm so much lol this whole process was pretty ridiculous. I might suggest that the Chia dev’s update their install-gui.sh script, but at this point I am honestly not sure what the ā€œcorrectā€ npm / node installation method is.