温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Ubuntu常见错误问题如何解决

发布时间:2022-10-20 11:04:13 来源:亿速云 阅读:100 作者:iii 栏目:服务器

这篇“Ubuntu常见错误问题如何解决”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“Ubuntu常见错误问题如何解决”文章吧。

一、下载libcap-1.8.1.tar.gz, 解压缩之后

错误1: ./configure

checking for getifaddrs... yes 
checking ifaddrs.h usability... yes 
checking ifaddrs.h presence... yes 
checking for ifaddrs.h... yes 
checking for socklen_t... yes 
checking for getaddrinfo... yes 
checking whether to build optimizer debugging code... no 
checking whether to build parser debugging code... no 
checking whether we have dag api headers... no 
checking whether we have septel api headers... no 
checking whether we have myricom sniffer api... no 
checking whether turbocap is supported... no 
checking for flex... no 
checking for lex... no 
configure: error: neither flex nor lex was found.

核心错误信息为: 

error: neither flex nor lex was found.

解决办法: sudo apt-get install flex bison

reading package lists... done 
building dependency tree     
reading state information... done 
the following package was automatically installed and is no longer required: 
 linux-image-extra-4.4.0-34-generic 
use 'sudo apt autoremove' to remove it. 
the following additional packages will be installed: 
 libbison-dev libfl-dev 
suggested packages: 
 bison-doc 
the following new packages will be installed: 
 bison flex libbison-dev libfl-dev 
0 upgraded, 4 newly installed, 0 to remove and 7 not upgraded. 
need to get 900 kb of archives. 
after this operation, 2,692 kb of additional disk space will be used. 
do you want to continue? [y/n] y 
get:1 http://mirrors.aliyun.com/ubuntu xenial/main amd64 libfl-dev amd64 2.6.0-11 [12.5 kb] 
get:2 http://mirrors.aliyun.com/ubuntu xenial/main amd64 flex amd64 2.6.0-11 [290 kb] 
get:3 http://mirrors.aliyun.com/ubuntu xenial/main amd64 libbison-dev amd64 2:3.0.4.dfsg-1 [338 kb] 
get:4 http://mirrors.aliyun.com/ubuntu xenial/main amd64 bison amd64 2:3.0.4.dfsg-1 [259 kb] 
fetched 900 kb in 1s (518 kb/s) 
selecting previously unselected package libfl-dev:amd64.

然后输入==>   sudo make install , 进行安装

错误2:

checking for gcc... gcc 
checking whether the c compiler works... yes 
checking for c compiler default output file name... a.out 
checking for suffix of executables...  
checking whether we are cross compiling... no 
checking for suffix of object files... o 
checking whether we are using the gnu c compiler... yes 
checking whether gcc accepts -g... yes 
checking for gcc option to accept iso c89... none needed 
checking for pcap_open_live in -lpcap... no 
error: pcap library not found!

问题解决:

sudo apt-get install libsqlite3-dev libpcap-dev

然后重新尝试新的命令,即可解决上述错误

二、中文模式下切换回英文模式?

修改/etc/default/locale文件的语言值。

将lang zh_cn.utf-8修改为en_us.utf-8  , language zh_cn:zh修改为en_us:en

三、英文模式下开机自动启动ibus中文输入法。

英文模式下,ibus不能自动启动。每次输入中文都得手动启动。这个让人不能接受。google一下,两种方法。

方法1:system settings->languange-support->keyboard input method system ->ibus 

Ubuntu常见错误问题如何解决

这种方法我没试验成功。如图所示,选择了没有保存按钮。我以为是默认保存的。但是关了在打开发现还是没有选择上。有可能语言包没有按完整的语言,每次进入语言设置,都会提示语言包没有安装完整。

方法2:添加ibus设置为开机启动的应用               

system->preferences->startup application

Ubuntu常见错误问题如何解决    

-d 的意思是让ibus在后台运行

以上就是关于“Ubuntu常见错误问题如何解决”这篇文章的内容,相信大家都有了一定的了解,希望小编分享的内容对大家有帮助,若想了解更多相关的知识内容,请关注亿速云行业资讯频道。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI