Chia-Network / chia-blockchain

Chia blockchain python implementation (full node, farmer, harvester, timelord, and wallet)
Apache License 2.0
10.82k stars 2.03k forks source link

[Bug] Can't install Chia Blochchain GUI on Ubuntu 20.04 #9542

Closed SecurID closed 2 years ago

SecurID commented 2 years ago

What happened?

Tried to install chia including gui on a fresh ubuntu 20.04.

I read in another issue that it is related to a moved dependency. but main branch doesn't work too. Anyone knows which is the latest functioning branch? Or any other help?

Version

latest

What platform are you using?

Linux

What ui mode are you using?

GUI

Relevant log output

npm ERR! code 1
npm ERR! Command failed: git checkout master
npm ERR! error: Pfadspezifikation 'master' stimmt mit keinen git-bekannten Dateien überein
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kupferschmidt/.npm/_logs/2021-12-10T23_11_55_020Z-debug.log
Nelson361 commented 2 years ago

I have also had this issue the past few days. Tried on Ubuntu and MintOS on different computers.

shaneo257 commented 2 years ago

try using the installer from https://www.chia.net/download/

FedericoLaTorre commented 2 years ago

I have this issue when trying to install GUI

The authenticity of host 'github.com (20.201.28.151)' can't be established.et ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. [ ....] - install dependencies: verb installed leaf @chia/wallet

It remains there forever. I removed the key just in case.

number435398 commented 2 years ago

Lets just face facts; the installer for Chia has never worked in Ubuntu.

number435398 commented 2 years ago

Also, I've had the same issue. After spending hours trying to fix it what I found was it seems to be sourced in the following: When going to sh install-gui.sh (and perhaps even in the previous line of sh install.sh) NPM is unable to extract all the files because it says:

"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!".

Basically, it looks like someone updated the files to be used with that new version and npm can't handle it. But you will still follow the install instructions and when you go to the final command to execute the program, it doesn't work because that earlier process in the installation failed.

As a result the "/home/usr/chia-blockchain/chia-blockchain-gui/node_modules/" folder and subfolders are never created.

[Edit: some have noted in similar issues in other places for similar issues that it could have something to do with permissions, but that'd be incredibly new and weird on fresh installs of Ubuntu when that wasn't previously an issue]

shaneo257 commented 2 years ago

i have used the installer downloaded from https://www.chia.net/download/ for ubuntu a number of times and it works fine

number435398 commented 2 years ago

Every installer I've tried for Chia in Ubuntu has never worked. So I went through the unnecessarily laborious process of torrenting the specific one you mentioned. I've run it like 6 times. It never installs anything.

emlowe commented 2 years ago

What command did you use to install it? typically I do sudo dpkg -i package_file.deb and also, it puts files in a somewhat odd place. It places chia-blockchain executable link in /usr/bin/chia-blockchain and then most files go into /usr/lib/chia-blockchain/

emlowe commented 2 years ago

You can use sudo dpkg --debug=10 -i file.deb and it should output all the files it processes as well as various other details

emlowe commented 2 years ago

You can also just direct download the file https://download.chia.net/latest/x86_64-Ubuntu-gui should download the file directly to you.

number435398 commented 2 years ago

Wow, emlowe tried to provide some help instead of just silencing someone and closing out their thread. Color me surprised.

Also, your attempt was not conducive to anything productive, it didn't work. It'd be nice if the original problem in this thread was just, you know, fixed. I've spent days now just trying to open a cold wallet and can't due to this issue. I mean, like, wow, seriously.

emlowe commented 2 years ago

Can you post the output of sudo dpkg --debug=10 -i file.deb please? Does it throw any errors? I need a little help here because I have no idea what is going wrong. "didn't work" isn't informative enough for me to help you.

I'll note, the original issue that was made here is due to problems introduced by 3rd party repos after 1.2.11 was tagged, so using git clone -b latest will continue to have problems until we release a new version that updates "latest" to point to that. To the end , yes it remains a problem to install using git. However, we are not aware of any problems with using the DEB file, so please provide some more information if you can

FedericoLaTorre commented 2 years ago

Still stuck at installing.

lerna notice cli v4.0.0 lerna info Bootstrapping 7 packages lerna info Installing external dependencies The authenticity of host 'github.com (20.201.28.151)' can't be established.rency 4 ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. [ ....] | install dependencies: verb installed leaf @chia/wallet

emlowe commented 2 years ago

This issue is about installing latest or 1.2.11. If you have issues with main, it would be best to use a different GH issue with your details.

However, in this case, I again recommend using the beta packages we make available under Latest Beta on https://www.chia.net/download/

Note this particular issue was caused by NPM changing to using SSH instead of HTTPS for fetching items from github. This is an outstanding issue in main that will be resolved soon.

number435398 commented 2 years ago

Your instructions for the use of the deb file don't appear to be complete from download to opening the program. I recall no errors. So when is the normal way of doing it going to be fixed?

shaneo257 commented 2 years ago

the preferred way for new installs/upgrades is to use the installers from https://www.chia.net/download/

number435398 commented 2 years ago

I guess its different for every project. I've always understood that gitting and compiling it yourself was the preferred way. well, I'm not against new things, but I have found no step by step instructions for the installer way of doing it either. whenever i've tried an installer for chia in ubuntu I always get "This file is not supported" or something like that from the resident program installer. I didn't know it required actual terminal commands.

emlowe commented 2 years ago

You don't have to use the terminal, but I find it's the simplest way. We will update our documentation.

For the record - there are multiple ways to install DEB packages on Ubuntu: https://help.ubuntu.com/kubuntu/desktopguide/C/manual-install.html

number435398 commented 2 years ago

I right clicked the deb file and clicked it to be opened by Software Install (the only available option on a fresh Ubuntu install) as per that link's recommendations. The result was it appeared to begin processing it/opening it and then, as far as I can tell, did nothing.

Nelson361 commented 2 years ago

Search yours programs, when its installed it will look like nothing happened. If not use dpkg to install, very easy.

ChiaMineJP commented 2 years ago

If you keep failing to run install-gui.sh, check the version of npm installed on your system by running npm -v on terminal. If you find you have npm version 6 or lower installed, try to upgrade npm version to 8. Please make sure you don't have something which requires npm 6 or lower elsewhere before upgrading npm.

github-actions[bot] commented 2 years ago

This issue has not been updated in 14 days and is now flagged as stale. If this issue is still affecting you and in need of further review, please comment on it with an update to keep it from auto closing in 7 days.

github-actions[bot] commented 2 years ago

This issue was automatically closed because it has been flagged as stale, and subsequently passed 7 days with no further activity from the submitter or watchers.

ChiaMineJP commented 2 years ago

FYI install-gui.sh and install.sh was overhauled in the PR below. https://github.com/Chia-Network/chia-blockchain/pull/9921

You will have working installers in the next release. Thank you for your patience.