質問編集履歴

3

情報を追加しました

2020/09/21 08:26

投稿

ryo_o
ryo_o

スコア12

test CHANGED
File without changes
test CHANGED
@@ -78,7 +78,7 @@
78
78
 
79
79
 
80
80
 
81
- ### 追加情報
81
+ ### 追加情報1
82
82
 
83
83
  Ubuntu(No such...が出るほう)とvscode のターミナルのそれぞれで、「echo $PATH」を実行した結果です。
84
84
 
@@ -99,3 +99,17 @@
99
99
  /home/boko/.yarn/bin:/home/boko/.config/yarn/global/node_modules/.bin:/home/boko/.rbenv/shims:/home/boko/.rbenv/bin:/home/boko/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_2004.2020.812.0_x64__79rhkp1fndgsc:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files (x86)/Symantec/VIP Access Client/:/mnt/c/Program Files/Intel/WiFi/bin/:/mnt/c/Program Files/Common Files/Intel/WirelessCommon/:/mnt/c/HashiCorp/Vagrant/bin:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files (x86)/Yarn/bin/:/mnt/c/Users/matsu/AppData/Local/Microsoft/WindowsApps:/mnt/c/ProgramFiles/Java/jdk-13/bin:/mnt/c/Users/matsu/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Users/matsu/AppData/Roaming/npm:/mnt/c/Users/matsu/AppData/Local/Yarn/bin:/snap/bin
100
100
 
101
101
  ```
102
+
103
+
104
+
105
+ ### 追加情報2
106
+
107
+ シェルは以下のようにbashから変更していないです。
108
+
109
+ ```ubuntu
110
+
111
+ boko@DESKTOP-FS4FC62:~/Code/taskleaf2$ echo $SHELL
112
+
113
+ /bin/bash
114
+
115
+ ```

2

情報を追加しました

2020/09/21 08:26

投稿

ryo_o
ryo_o

スコア12

test CHANGED
File without changes
test CHANGED
@@ -72,8 +72,30 @@
72
72
 
73
73
  ### 補足情報(FW/ツールのバージョンなど)
74
74
 
75
-
76
-
77
75
  [環境]
78
76
 
79
77
  ・ubuntu 20.04
78
+
79
+
80
+
81
+ ### 追加情報
82
+
83
+ Ubuntu(No such...が出るほう)とvscode のターミナルのそれぞれで、「echo $PATH」を実行した結果です。
84
+
85
+ ```ubuntu
86
+
87
+ boko@DESKTOP-FS4FC62:~/Code/taskleaf2$ echo $PATH
88
+
89
+ /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_2004.2020.812.0_x64__79rhkp1fndgsc:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files (x86)/Symantec/VIP Access Client/:/mnt/c/Program Files/Intel/WiFi/bin/:/mnt/c/Program Files/Common Files/Intel/WirelessCommon/:/mnt/c/HashiCorp/Vagrant/bin:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files (x86)/Yarn/bin/:/mnt/c/Users/matsu/AppData/Local/Microsoft/WindowsApps:/mnt/c/ProgramFiles/Java/jdk-13/bin:/mnt/c/Users/matsu/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Users/matsu/AppData/Roaming/npm:/mnt/c/Users/matsu/AppData/Local/Yarn/bin:/snap/bin
90
+
91
+ ```
92
+
93
+
94
+
95
+ ```vscode
96
+
97
+ boko@DESKTOP-FS4FC62:~/Code/taskleaf2$ echo $PATH
98
+
99
+ /home/boko/.yarn/bin:/home/boko/.config/yarn/global/node_modules/.bin:/home/boko/.rbenv/shims:/home/boko/.rbenv/bin:/home/boko/.vscode-server/bin/58bb7b2331731bf72587010e943852e13e6fd3cf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_2004.2020.812.0_x64__79rhkp1fndgsc:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files (x86)/Symantec/VIP Access Client/:/mnt/c/Program Files/Intel/WiFi/bin/:/mnt/c/Program Files/Common Files/Intel/WirelessCommon/:/mnt/c/HashiCorp/Vagrant/bin:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files (x86)/Yarn/bin/:/mnt/c/Users/matsu/AppData/Local/Microsoft/WindowsApps:/mnt/c/ProgramFiles/Java/jdk-13/bin:/mnt/c/Users/matsu/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Users/matsu/AppData/Roaming/npm:/mnt/c/Users/matsu/AppData/Local/Yarn/bin:/snap/bin
100
+
101
+ ```

1

コードの追加

2020/09/21 07:29

投稿

ryo_o
ryo_o

スコア12

test CHANGED
@@ -1 +1 @@
1
- ubuntuでコマンドが使えなくなった
1
+ ubuntuでコマンドが使えなくなった[/usr/bin/env: ‘ruby’: No such file or directory]
test CHANGED
@@ -34,13 +34,19 @@
34
34
 
35
35
  ```vscode
36
36
 
37
+ boko@DESKTOP-FS4FC62:~/Code$ which ruby
38
+
39
+ /home/boko/.rbenv/shims/ruby
40
+
41
+
42
+
37
- ~/Code/taskleaf2$ bin/rails c
43
+ boko@DESKTOP-FS4FC62:~/Code/taskleaf2$ bin/rails c
38
44
 
39
45
  Running via Spring preloader in process 15723
40
46
 
41
47
  Loading development environment (Rails 5.2.4.4)
42
48
 
43
- irb(main):001:0>
49
+ irb(main):001:0> exit
44
50
 
45
51
  ```
46
52
 
@@ -56,7 +62,11 @@
56
62
 
57
63
 
58
64
 
59
- vscodeで'remote-WSL'を実行したせいでエラーが生じたと推測して調べてみましたが特に解決に役立つサイトをみつけることはで
65
+ vscodeで'remote-WSL'を実行したせいでエラーが生じたと推測して調べてみましたが特に解決に役立つサイトをみつけることはできませんでした。
66
+
67
+
68
+
69
+ また'/usr/bin/env'と'/home/boko/.rbenv/shims/ruby'が関係していると思い調べてみましたが解決できませんでした。
60
70
 
61
71
 
62
72