小编rev*_*van的帖子

如何重置之前编辑的 .bashrc 文件以设置 PATH ANDROID sdk?

 bash: export: `/home/entw/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier
 bash: /home/entw/.bashrc: line 111: unexpected EOF while looking for matching `"'
 bash: /home/entw/.bashrc: line 112: syntax error: unexpected end of file
 entw@entw-desktop:~$ 
Run Code Online (Sandbox Code Playgroud)

这是我经常在终端中遇到的错误,在终端打开时显示。

我在终端中应用的以下命令,

sudo gedit $HOME/.bashrc
Run Code Online (Sandbox Code Playgroud)

并添加了一些路径变量,如android SDK,并运行以下命令

source ~/.bashrc
Run Code Online (Sandbox Code Playgroud)

然后我在终端中收到错误

bash: export: `/home/entw/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local  /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier
bash: /home/entw/.basrc: line 111: unexpected EOF while looking for matching `"'
bash: /home/entw/.bashrc: line 112: syntax error: unexpected end of file
entw@entw-desktop:~$ 
Run Code Online (Sandbox Code Playgroud)

但是如果我尝试再次打开该文件会显示错误file or directory not found。我该怎么做才能设置正确?

我试过的这个论坛: …

command-line android bashrc

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

android ×1

bashrc ×1

command-line ×1