
ubuntu
凯文的内存
日就月将,学有缉熙于光明。
展开
-
Ubuntu 误修改sudoers 导致 无法使用sudo的解决办法
我们在使用ubuntu时,经常会使用sudo命令,但是使用ubuntu用户登录,使用sudo命令时,经常会要求输入密码,为了方便,我们可能会修改root用户下 /etc/sudoers 文件,使sudo命令不需要输入密码,这个时候就不可避免的会输入错误,导致sudo命令无法使用,出现类似如下错误>>> /etc/sudoers: syntax error near line 22 <<<sudo: parse error in /etc/sudoers near l转载 2021-06-15 15:28:29 · 1725 阅读 · 2 评论 -
Ubuntu命令行使用sz/rz命令
默认的情况下,Ubuntu的终端是不支持zmodem的,也就无法使用sz/rz命令进行文件的下载和上传。通过安装 lrzsz 和 zssh 之后就支持了。源主机A在不安装zssh的时候,使用ssh登录目标主机B,执行rz操作:意为从A主机copy文件到B在终端执行rz时候,会有如下提示:synative@synative:/export/tftp/rom$ ...原创 2018-10-18 10:44:54 · 8055 阅读 · 0 评论 -
ubuntu16.04网络图标消失,不能上网
十月节回来,本来打算大干一场,结果ubuntu静默升级之后,再加上节日断电,结果开机不能上网了。太苦逼了。 折腾了大半天未果,试过各种服务的重启,或者网络配置之类。我得问题的直接表现就是ifconfig只有lo没有eth,另外就是eth连接指示灯常亮,但是ack不闪,执行命令lspci | grep Eth输出如下:02:00.0 Ethernet controlle...原创 2018-10-09 14:46:27 · 3577 阅读 · 0 评论 -
Ubuntu16.04安装软件提示E: Encountered a section with no Package: header错误
ubuntu16.04用sudo apt-get XXX 结果提示如下错误:kaka@world-cup:~/bin$ sudo apt-get install lrzsz[sudo] password for kaka:Reading package lists... Error!E: Encountered a section with no Package: headerE: P...原创 2018-10-17 16:21:31 · 727 阅读 · 0 评论 -
解决Ubuntu下出现“TeamViewer: Not ready. Check your connection”的问题
解决方法:重启TeamViewer 服务:sudo teamviewer daemon stopsudo teamviewer daemon start当然你也可以使用该命令来重启它:sudo teamviewer daemon restart再检查是否重启成功:sudo teamviewer daemon status如果还未解决问题,则需要考虑是否是被路由器的...转载 2018-10-31 10:13:12 · 4456 阅读 · 0 评论 -
Temporary failure in name resolution 错误解决方法 运行sudo 命令 can not resovle host xxx
Temporary failure in name resolution 错误解决方法:vim /etc/resolv.confnameserver 114.114.114.114nameserver 8.8.8.8运行sudo 命令 can not resovle host xxx 错误解决方法:vim /etc/hosts127.0.0.1 localhost1...转载 2018-11-13 11:09:35 · 1171 阅读 · 0 评论 -
xrandr: Failed to get size of gamma for output default
ubuntu16.04自动下载的更新,结果重启后,屏幕分辨率只能是640*480,不能修改,按照这个系列的命令:xrandr --newmode。。。但是一直不成功,报错:xrandr: Failed to get size of gamma for output defaultX Error of failed request: BadName (named color or f...原创 2018-11-08 11:53:48 · 14472 阅读 · 1 评论