Closed unclesamwk closed 6 years ago
Strange.
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
end
$ vagrant up
$ vagrant ssh
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-33-generic x86_64)
vagrant@ubuntu-bionic:~$ mkdir -p ~/.pharos/chpharos && \
> curl -sL https://raw.githubusercontent.com/kontena/chpharos/master/share/chpharos/chpharos.sh > ~/.pharos/chpharos.sh && \
> echo "source ~/.pharos/chpharos.sh" >> ~/.bash_profile
vagrant@ubuntu-bionic:~$ exit
$ vagrant ssh
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-33-generic x86_64)
$ chpharos --version
chpharos 0.2.4
$ chpharos login
Log in using your Kontena Account credentials
Visit https://account.kontena.io/ to register a new account.
Username: user
Password:
Logged in
vagrant@ubuntu-bionic:~$ chpharos install 1.3.0
Downloading 'pharos-cluster' (23854176 bytes) from https://get.pharos.sh/versions/download/pharos-cluster-linux-amd64-1.3.0 ..
Verifying download SHA256 checksum.. OK
Downloading 'kubectl' (55400930 bytes) from https://storage.googleapis.com/kubernetes-release/release/v1.11.1/bin/linux/amd64/kubectl ..
Verifying download SHA256 checksum.. OK
Installed version 1.3.0. To set as current, use: chpharos use 1.3.0
vagrant@ubuntu-bionic:~$ chpharos use 1.3.0
using pharos version 1.3.0
vagrant@ubuntu-bionic:~$ pharos --version
pharos-cluster 1.3.0
Seems to work fine for me.
Anything special in your box, such as some alternative shell? Or perhaps some other language than English?
What does type _chpharos_subcommand_longdash_version
say?
I switched my box to German and I can reproduce your problem.
$ type _chpharos_subcommand_longdash_version
_chpharos_subcommand_longdash_version ist eine Funktion.
Should work now, use
mkdir -p ~/.pharos/chpharos && \
curl -sL https://raw.githubusercontent.com/kontena/chpharos/master/share/chpharos/chpharos.sh > ~/.pharos/chpharos.sh`
to update.
Now it works, thank you.
Hey,
on ubuntu 16.04 chparos work, but not on 18.04
I've installed it manuelly via:
greetings Sam