Could not update ICEauthority file /usr/bin/.ICEauthority

本文详细记录了解决使用鱼shell作为默认shell时遇到的问题,包括删除鱼shell失败的原因,修改passwd文件成功解决问题的过程,以及最终发现错误在于误改登录用户配置的教训。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


网上查了很多办法,很多都不适用。描述如下:
Could not update ICEauthority file /usr/bin/fish/.ICEauthority


第一步:我怀疑我上次为这个用户配置默认shell为fish导致的错误,用sudo apt-get remove fish命令把它删掉,但没用
额,应该是配置文件的错误?
第二步:进入/etc/目录 ,编辑passwd文件 ,把这个登录用户的配置改成
$USER:x:1000:1000::/home/$USER:/usr/bin/fish
执行sudo reboot后,问题消失了
原来上次改错了,把$USER的登录用户改成了其它的了!!
root@user:~# git clone https://github.com/rbenv/rbenv.git ~/.rbenv Cloning into '/root/.rbenv'... remote: Enumerating objects: 3395, done. remote: Counting objects: 100% (289/289), done. remote: Compressing objects: 100% (123/123), done. remote: Total 3395 (delta 228), reused 166 (delta 166), pack-reused 3106 (from 4) Receiving objects: 100% (3395/3395), 723.62 KiB | 1.69 MiB/s, done. Resolving deltas: 100% (2086/2086), done. root@user:~# echo 'export PATH="$ HOME/.rbenv/bin:$ PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc source ~/.bashrc git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build -bash: /etc/profile.d/rvm.sh: No such file or directory -bash: /usr/local/rvm/scripts/rvm: No such file or directory Command 'rbenv' is available in the following places * /bin/rbenv * /usr/bin/rbenv The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable. rbenv: command not found Command 'git' is available in the following places * /bin/git * /usr/bin/git The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable. git: command not found root@user:~# rbenv install 3.1.0 Command 'rbenv' is available in the following places * /bin/rbenv * /usr/bin/rbenv The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable. rbenv: command not found root@user:~# rbenv global 3.1.0 Command 'rbenv' is available in the following places * /bin/rbenv * /usr/bin/rbenv The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable. rbenv: command not found root@user:~#
07-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值