Closed vitalymak closed 7 years ago
That was actually my fault. I didn't add package repository properly.
I just ran into the same problem. For some reason, echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
didn't get pasted correctly. Also needed to sudo apt-get remove cmdtest
to get it working.
Also note that after adding the yarn package, you need to sudo apt update
before attempting to install it again.
@pekeler and @dsblank thanks for the help here!
@vitalymak this is an abomination. I ran into the same issue and this resolved it:
sudo apt-get remove cmdinstall;sudo apt update;sudo apt-get install yarn
Thanks @jasonwr for the tip, I was getting issues in Ubuntu 17.04
, now its working like a charm :slightly_smiling_face:
Did you run the following:
sudo apt-get remove cmdinstall;sudo apt update;sudo apt-get install yarn
On Wed, Jan 3, 2018 at 2:27 AM, Jens Madsen notifications@github.com wrote:
on ubuntu 17.10 I get
sudo apt-get install yarn [sudo] password for yolen: Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'cmdtest' instead of 'yarn' The following NEW packages will be installed: cmdtest 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 0 B/19.4 kB of archives. After this operation, 80.9 kB of additional disk space will be used. Selecting previously unselected package cmdtest. (Reading database ... 319524 files and directories currently installed.) Preparing to unpack .../cmdtest_0.27-1_all.deb ... Unpacking cmdtest (0.27-1) ... Setting up cmdtest (0.27-1) ... Processing triggers for man-db (2.7.6.1-2) ...
None of the tips work for me
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yarnpkg/yarn/issues/3189#issuecomment-354968232, or mute the thread https://github.com/notifications/unsubscribe-auth/AASrT1zYc9Chbn-eVK-h5cErqlVLFZC0ks5tG0gbgaJpZM4NBldb .
-- Jason W. Rice LinkedIn:http://www.linkedin.com/pub/jason-rice/16/10/131/ Email:jsnrice@gmail.com
I also using ubuntu 17.10 use below code to install yarn sudo apt-get remove cmdtest; sudo apt update; sudo apt-get install yarn
I also just ran into this issue.
Remove cmdtest
sudo apt-get purge cmdtest
install yarn manually
cd /opt wget https://yarnpkg.com/latest.tar.gz tar zvxf latest.tar.gz Yarn is now in /opt/yarn-[version]/
Add this to your profile: export PATH="$PATH:/opt/yarn-[version]/bin" (the path may vary depending on where you extracted Yarn to)
In case it's helpful, I ran into this because I didn't notice that the apt repository for yarn wasn't getting used due to:
Reading package lists... Done
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
E: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.
Running sudo apt-get install apt-transport-https; sudo apt-get update; sudo apt-get install --no-install-recommends yarn
did the trick.
guys the apt-get install instead of apt install hacks no longer works even if you add --no-install-recommends. now cmdtest installs no matter what you do. I don't see how this can happen.
cmdtest is called cmdtest yarn is called yarn those are completely different names and completely unrelated packages with completely uncomparable popularity. yarn is in the default repos we shouldn't have to be resorting to an external repo to get it installed!!
This truly, truly sucks. I may have to switch entire operating systems just to be able to run an app that uses javascript YARN are you shitting me? Nothing I do will let me run yarn commands on ubuntu. I've tried installing it every way I can find on the internet. I've removed cmdtest, I've even tried installing npm then using it to install yarn and still no go on using any, none of yarn any command. I have about had it with Ubuntu and it's quirky bullshit.
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 worked for me after trying everything else i could find on many posts and sites
A little of research will tell you that the cmdtest
package in Debian (and Ubuntu) has a tool called yarn
, and it has been there since 2012, so they own the name before yarnpkg.
In Debian testing (and Ubuntu 20.10), you can install a native yarnpkg package (version 1.22.10) by doing:
sudo apt install yarnpkg
And the binary command is yarnpkg
, in order not to conflict with yarn
from cmdtest
.
But it works best if you have the native nodejs
package installed in Debian.
Happened also on Ubuntu 20.04.1
. Commands cmdtest
and cmdinstall
weren't even available, but sudo apt-get install yarn
also did Note, selecting 'cmdtest' instead of 'yarn'
.
But then I could install yarn with https://github.com/yarnpkg/yarn/issues/3189#issuecomment-762557829 .
bro #3189 (comment) worked for me can't believe wasted so much time
Freshly installed Ubuntu 17.04 installs http://liw.fi/cmdtest/ instead of yarnpkg/yarn