web-dev-qa-db-fra.com

logiciel non installé après l'installation réussie d'apt-get dans le sous-système Ubuntu sous Windows 10

J'ai installé go via Sudo apt install golang-1.10-go mais je ne peux pas exécuter go par la suite, car le shell m'indique que go n'est pas installé. J'ai essayé d'installer go again. qui me dit qu'il est installé et que l'installation d'origine ne m'a pas donné d'erreurs. J'utilise linux depuis 10 ans et je dois utiliser un système ms. Je voulais jouer avec le sous-système Ubuntu. Un comportement comme celui-ci est-il normal et normal?

rpickhardt@DESKTOP-RQQSLJR:~$ Sudo apt install golang-1.10-go
Reading package lists... Done
Building dependency tree     
Reading state information... Done
golang-1.10-go is already the newest version (1.10-1ubuntu1~16.04.1).
The following package was automatically installed and is no longer required: libfreetype6
Use 'Sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
rpickhardt@DESKTOP-RQQSLJR:~$ go 
The program 'go' is currently not installed. You can install it by typing: Sudo apt install golang-go  
2
Rene Pickhardt

copié de https://serverfault.com/questions/894500/program-go-is-currently-not-installed-on-ubuntu-16-04 comme @Panther a déclaré:

Allez installé dans le répertoire/usr/lib. Donc, sur mon ordinateur, ce lien sym a résolu le problème

Sudo ln -s /usr/lib/go-1.9/bin/go /usr/bin/go

3
Rene Pickhardt