[Solved] Unable to install Meteor on Ubuntu 20.x.x. version

Hi Members,

recently I have migrated my ubuntu version 20.x.x and trying to install meteor in it. When I execute the below command, I am getting an error as shown next to these commands.

curl https://install.meteor.com/ | sh
or with sudo
sudo curl https://install.meteor.com/ | sh

**Error **

syam@syam-lenovo-new:~$ sudo curl --insecur https://install.meteor.com/ | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7823    0  7823    0     0  10543      0 --:--:-- --:--:-- --:--:-- 10543
Downloading Meteor distribution
Warning: Failed to create the file /home/syam/.meteor-tarball-tmp: Permission 
Warning: denied
                                                                           0.0%curl: (23) Failure writing output to destination

Retrying download in 5 seconds...

I have also tried the below command to own the directory permissions. However, the issue still persists

sudo chown -R syam:syam /home/syam

Please provide your inputs.

I’ve just tried to install meteor on Ubuntu 20.04. It works without any problem.

$ sudo curl https://install.meteor.com/ | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7823    0  7823    0     0    477      0 --:--:--  0:00:16 --:--:--  2019
Downloading Meteor distribution
######################################################################## 100.0%

Meteor 2.3.4 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.
This may prompt for your password.

To get started fast:

  $ meteor create ~/my_cool_app
  $ cd ~/my_cool_app
  $ meteor

Or see the docs at:

  docs.meteor.com

Deploy and host your app with Cloud:

  www.meteor.com/cloud

It should Work without super user permission. I think it would even be more troublesome in the Long run with sudo because updating or installing packages could be an issue.

Whats your permission of the directory?

2 Likes

If you can’t create files in your own home directory, it makes me think you have a read-only file system.
Try something like touch ~/sample.txt - if that fails, then it’s not a meteor problem

I am able to touch this file. So I have Write permission for this user login.

@mikkelking, @minhna, @jkuester Thanks for the replies. Now I figured out why I can’t install. There is an option named default keyrings activated in my ubuntu os. Which is internally triggering a block on curl download activities. Now I disabled that feature and am able to install it. Once again thanks for your support <3

2 Likes