您现在的位置是:网站首页> 编程资料编程资料
Ubuntu sudo报错command not found的解决方法_Ubuntu/Debian_操作系统_
2023-03-27
907人已围观
简介 Ubuntu sudo报错command not found的解决方法_Ubuntu/Debian_操作系统_
Ubuntu系统操作中,在使用sudo的时候出现sudo:source:command not found错误提示,遇到这种问题要如何处理呢?下面小编就给大家介绍下Ubuntu系统中报错sudo:source:command not found的解决方法。
Ubuntu Server上执行以下命令,可以看到默认打开的文件数限制为1024个。
$ ulimit -n
1024
编辑/etc/profile配置文件,在最后添加一行:
ulimit -SHn 65535
要让配置生效:
$ sudo source /etc/profile
sudo: source: command not found
我们直接执行ulimit -SHn 65535命令又会怎么样呢?
$ ulimit -SHn 65535
-bash: ulimit: open files: cannot modify limit: Operation not permitted
$ sudo ulimit -SHn 65535
sudo: ulimit: command not found
普通用户获得root权限后反而提示找不到命令了,该如何解决这个问题呢?
$ sudo -s
# source /etc/profile
再次执行ulimit,可以看到打开文件的限制数已改为65535了。
# ulimit -n
65535
上面就是Ubuntu解决sudo:source:command not found错误的方法介绍了,如果你碰到这个问题,可是尝试使用本文介绍的方法进行处理,希望对你有所帮助。
相关内容
- Ubuntu无法安装vim文本编辑器的解决方法_Ubuntu/Debian_操作系统_
- 如何备份Ubuntu系统以在电脑出问题时及时恢复_Ubuntu/Debian_操作系统_
- Ubuntu 14.04安装Wine以便使用Windows应用_Ubuntu/Debian_操作系统_
- Ubuntu使用集成开发环境QT无法输入中文的解决方法_Ubuntu/Debian_操作系统_
- Ubuntu 14.10上安装新的字体图文教程 _Ubuntu/Debian_操作系统_
- Ubuntu系统无法衔接网络 该怎样安装无线网卡驱动?_Ubuntu/Debian_操作系统_
- ubuntu14.04打开个几个应用窗口最小化后怎么切换呢?_Ubuntu/Debian_操作系统_
- Ubuntu中使用脚本创建桌面快捷方式例子_Ubuntu/Debian_操作系统_
- Ubuntu如何安装PlayOnLinux以便玩Windows游戏_Ubuntu/Debian_操作系统_
- Ubuntu 14.04安装java的方法以Ubuntu14.04为例_Ubuntu/Debian_操作系统_
