Open zeroedin opened 5 years ago
sudo apt remove cmdtest
sudo apt remove yarn && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
This didn't work for me until I added this one line.
sudo apt install gcc g++ make
ubuntu@ip-172-31-24-108:~$ sudo apt remove yarn && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'cmdtest' instead of 'yarn'
0 upgraded, 0 newly installed, 0 to remove and 75 not upgraded.
gpg: [don't know]: partial length invalid for packet type 63
gpg: read_block: read error: Invalid packet
gpg: import from '-' failed: Invalid keyring
This is not directly related to this cookbook rather to Ubuntu and the yarn package specifically but figure I would mention it here.
Referencing Issues found https://github.com/yarnpkg/yarn/issues/3189 and https://github.com/Joystream/helpdesk/issues/16
cmdtest
is installed instead of yarn on AWS Ubuntu 18.04Following up the recipe with an attempt to install yarn via
sudo apt-get install yarn
yields:Manually installing yarn without the recipe via the following commands seemed to work to resolve:
Adding the following to the key instead of the default
.gpg
url fornode['yarn']['package']['repository']['key']
seemed to be the fix for me