当我在 linux cmd 中键入 "sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl" 时,它 returns 为空
when I type "sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl" in linux cmd, it returns empty
我执行了 https://minikube.sigs.k8s.io/docs/start/ 中的步骤以在我的 ubuntu 运行 本地正确安装 minikube 在我的虚拟机上:
pcname@ubuntu:~$curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
还有
pcname@ubuntu:~$sudo install minikube-linux-amd64 /usr/local/bin/minikube
返回一个空的 cmd 行。当我键入 minikube start
时,就好像它已正确安装一样,我收到以下错误:
minikube v1.22.0 on Ubuntu 20.04 Unable to pick a default
driver. Here is what was considered, in preference order:
▪ docker: Not installed: exec: "docker": executable file not found in $PATH
▪ kvm2: Not installed: exec: "virsh": executable file not found in $PATH
▪ podman: Not installed: exec: "podman": executable file not found in $PATH
▪ vmware: Not installed: exec: "docker-machine-driver-vmware": executable file not found in $PATH
▪ virtualbox: Not installed: unable to find VBoxManage in $PATH
❌ Exiting due to DRV_NOT_DETECTED: No possible driver was detected.
Try specifying --driver, or see
https://minikube.sigs.k8s.io/docs/start/
注意:在此之前,我按照 https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/ 中的所有步骤安装了 kubectl 并通过以下方式验证了它的安装:
pcname@ubuntu:kubectl version --client
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe3***************", GitTreeState:"clean", BuildDate:"2021-07-15T21:04:39Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}
even if the 3 step failed.
怎么了?我只是想安装 kubectl,然后安装 minikube。我是否必须按照输入“minikube start”时的建议安装 Docker?
解决方案
-sudo chmod 755 /usr/local/bin/minikube 给 minikube 执行权限
-minikube 版本 => 它给出了版本
-minikube start => 它没有用。
- 发现我必须安装 Virtual Box 所以我输入:
sudo apt install virtualbox virtualbox-ext-pack
-minikube [再次] 启动,安装开始并顺利进行。
我执行了 https://minikube.sigs.k8s.io/docs/start/ 中的步骤以在我的 ubuntu 运行 本地正确安装 minikube 在我的虚拟机上:
pcname@ubuntu:~$curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
还有
pcname@ubuntu:~$sudo install minikube-linux-amd64 /usr/local/bin/minikube
返回一个空的 cmd 行。当我键入 minikube start
时,就好像它已正确安装一样,我收到以下错误:
minikube v1.22.0 on Ubuntu 20.04 Unable to pick a default driver. Here is what was considered, in preference order: ▪ docker: Not installed: exec: "docker": executable file not found in $PATH ▪ kvm2: Not installed: exec: "virsh": executable file not found in $PATH ▪ podman: Not installed: exec: "podman": executable file not found in $PATH ▪ vmware: Not installed: exec: "docker-machine-driver-vmware": executable file not found in $PATH ▪ virtualbox: Not installed: unable to find VBoxManage in $PATH
❌ Exiting due to DRV_NOT_DETECTED: No possible driver was detected. Try specifying --driver, or see https://minikube.sigs.k8s.io/docs/start/
注意:在此之前,我按照 https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/ 中的所有步骤安装了 kubectl 并通过以下方式验证了它的安装:
pcname@ubuntu:kubectl version --client
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe3***************", GitTreeState:"clean", BuildDate:"2021-07-15T21:04:39Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}
even if the 3 step failed.
怎么了?我只是想安装 kubectl,然后安装 minikube。我是否必须按照输入“minikube start”时的建议安装 Docker?
解决方案 -sudo chmod 755 /usr/local/bin/minikube 给 minikube 执行权限 -minikube 版本 => 它给出了版本 -minikube start => 它没有用。 - 发现我必须安装 Virtual Box 所以我输入:
sudo apt install virtualbox virtualbox-ext-pack
-minikube [再次] 启动,安装开始并顺利进行。