惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
H
Help Net Security
GbyAI
GbyAI
博客园_首页
G
Google Developers Blog
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
月光博客
月光博客
美团技术团队
B
Blog RSS Feed
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
博客园 - 叶小钗
有赞技术团队
有赞技术团队
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Proofpoint News Feed

轶哥博客

blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog blog
blog
2016-04-13 · via 轶哥博客

  如果在安装Bash on Ubuntu on Windows的时候没有以管理员方式运行“bash”命令,那么可能导致安装报“Failed to create shortcut to bash.exe”的错误。出现这个错误,说明Bash on Ubuntu on Windows的快捷方式没有被正确安装。此时会导致“开始->bash”无法正常找到如下图标:

Bash on Ubuntu on Windows

  如果没有这个快捷方式, 最大的影响是每次通过“bash.exe”运行Bash on Ubuntu on Windows需要增加“cd ~”命令。出现这个问题,如果通过“启用或关闭Windows功能”来重装是没有用的。

  解决方案如下:

  在左下角开始图标处右键,选择“命令提示符(管理员)”。运行lxrun /uninstall来卸载Bash on Ubuntu on Windows。卸载完毕后运行bashlxrun /instal来安装Bash on Ubuntu on Windows。第一条命令执行的时候,会判断Bash on Ubuntu on Windows是否已经安装,没有安装则自动执行“lxrun /install”。所以本质上是一样的。

  在管理员权限下重新安装后,则不会再出现“Failed to create shortcut to bash.exe”的报错,快捷方式也可以正常运行。把它拖动到桌面将会非常方便。