熱搜:win11繞過(guò)硬件限制安裝 一鍵重裝Win10系統(tǒng) 最干凈的u盤(pán)啟動(dòng)盤(pán) 真正純凈版的win7系統(tǒng)
時(shí)間:2015-02-04 13:57:48 作者:qipeng 來(lái)源:系統(tǒng)之家 1. 掃描二維碼隨時(shí)看資訊 2. 請(qǐng)使用手機(jī)瀏覽器訪問(wèn): https://m.xitongzhijia.net/xtjc/20150204/37015.html 手機(jī)查看 評(píng)論 反饋
Ubuntu系統(tǒng)操作中,在使用sudo的時(shí)候出現(xiàn)sudo:source:command not found錯(cuò)誤提示,遇到這種問(wèn)題要如何處理呢?下面小編就給大家介紹下Ubuntu系統(tǒng)中報(bào)錯(cuò)sudo:source:command not found的解決方法。
Ubuntu Server上執(zhí)行以下命令,可以看到默認(rèn)打開(kāi)的文件數(shù)限制為1024個(gè)。
$ ulimit -n
1024
編輯/etc/profile配置文件,在最后添加一行:
ulimit -SHn 65535
要讓配置生效:
$ sudo source /etc/profile
sudo: source: command not found
我們直接執(zhí)行ulimit -SHn 65535命令又會(huì)怎么樣呢?
$ ulimit -SHn 65535
-bash: ulimit: open files: cannot modify limit: Operation not permitted
$ sudo ulimit -SHn 65535
sudo: ulimit: command not found
普通用戶獲得root權(quán)限后反而提示找不到命令了,該如何解決這個(gè)問(wèn)題呢?
$ sudo -s
# source /etc/profile
再次執(zhí)行ulimit,可以看到打開(kāi)文件的限制數(shù)已改為65535了。
# ulimit -n
65535
上面就是Ubuntu解決sudo:source:command not found錯(cuò)誤的方法介紹了,如果你碰到這個(gè)問(wèn)題,可是嘗試使用本文介紹的方法進(jìn)行處理,希望對(duì)你有所幫助。
發(fā)表評(píng)論
共0條
評(píng)論就這些咯,讓大家也知道你的獨(dú)特見(jiàn)解
立即評(píng)論以上留言僅代表用戶個(gè)人觀點(diǎn),不代表系統(tǒng)之家立場(chǎng)