首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >软件安装成功后未安装apt-在windows 10上的ubuntu子系统中安装

软件安装成功后未安装apt-在windows 10上的ubuntu子系统中安装
EN

Ask Ubuntu用户
提问于 2018-06-21 16:25:47
回答 1查看 507关注 0票数 2

我已经通过sudo apt install golang-1.10-go安装了go,但是之后我无法执行go,因为shell告诉我go没有安装。我试着重新安装go。这告诉我,它是安装的,因为最初的安装没有给我任何错误。我在过去十年里一直在使用linux,并且不得不使用ms系统,并且想在ubuntu子系统中四处游玩,行为是否像预期的和正常的?

代码语言:javascript
复制
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  
EN

回答 1

Ask Ubuntu用户

发布于 2018-06-21 18:44:31

美洲豹说:“来自https://serverfault.com/questions/894500/program-go-is-currently-not-installed-on-ubuntu-16-04的模仿”

安装到/usr/lib目录下。所以在我的电脑上,这个sym链接解决了这个问题

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

票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1048580

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档