服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Ubuntu - Ubuntu常见错误问题的解决方法小结

Ubuntu常见错误问题的解决方法小结

2021-11-26 16:30bladestone Ubuntu

最近经常使用ubuntu,难免会遇到各种各样的问题。所以想着记录下来,方便自己和大家以后需要的时候查看参考,文中介绍的很详细,相信对大家学习或者使用Ubuntu能有一定的参考借鉴价值,感兴趣的朋友们下面来一起看看吧。

一、下载 http://www.tcpdump.org/#latest-release,下载libcap-1.8.1.tar.gz, 解压缩之后

错误1: ./configure

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.

核心错误信息为: 

?
1
error: neither flex nor lex was found.

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

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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:

?
1
2
3
4
5
6
7
8
9
10
11
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!

问题解决:

?
1
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在后台运行

总结

以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作能带来一定的帮助,如果有疑问大家可以留言交流。

延伸 · 阅读

精彩推荐
  • UbuntuUbuntu Gnome下如何修改应用图标icon?

    Ubuntu Gnome下如何修改应用图标icon?

    最近有些朋友问小编Ubuntu Gnome下如何修改应用图标icon?今天小编要为大家分享的是Ubuntu Gnome下修改应用图标icon的方法;有需要的朋友一起去看看吧...

    服务器之家6412019-06-01
  • UbuntuUbuntu 15.04升级到Ubuntu 15.10的详细教程

    Ubuntu 15.04升级到Ubuntu 15.10的详细教程

    ubuntu15.04怎么升级到ubuntu15.10?又该升级系统了,但是很多人对ubuntu系统很不熟悉,下面我们一起来看看ubuntu15.04升级ubuntu15.10的详细教程,需要的朋友可以...

    服务器之家4562019-07-02
  • UbuntuUbuntu17.10怎么添加日历事项? Ubuntu添加行程提醒的教程

    Ubuntu17.10怎么添加日历事项? Ubuntu添加行程提醒的教程

    Ubuntu17.10怎么添加日历事项?Ubuntu17.10系统中有一个日程管理功能,可以在日历中添加行程提醒,下面我们就来看看Ubuntu添加行程提醒的教程,需要的朋友可...

    服务器之家2812019-06-19
  • UbuntuUbuntu下安装Chrome的方法分享

    Ubuntu下安装Chrome的方法分享

    本文给大家分享的是Ubuntu下安装Chrome的方法,安装的过程中发现还是挺麻烦的,就记录下来推荐给大家,有需要的小伙伴可以参考下。...

    Ubuntu教程网3862021-10-25
  • Ubuntu如何在ubuntu系统中安装pycharm工具并运行

    如何在ubuntu系统中安装pycharm工具并运行

    在Windows系统中安装pycharm,只需要下载安装包,然后根据指令一步一步操作;而在Linux系统中的Ubuntu中安装pycharm,需要下载安装包,还有安装相关的其他软件...

    百度经验12082019-10-21
  • UbuntuUbuntu安装和卸载CUDA和CUDNN的实现

    Ubuntu安装和卸载CUDA和CUDNN的实现

    这篇文章主要介绍了Ubuntu安装和卸载CUDA和CUDNN的实现,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们...

    夜雨飘零14632020-08-04
  • UbuntuWSL、WSL2与Ubuntu性能大PK

    WSL、WSL2与Ubuntu性能大PK

    科技媒体 Phoronix 对 Windows 10 May 2020 中 WSL 和 WSL 2 的性能进行了测试,参与测试的发行版为 Ubuntu 20.04 on WSL/WSL2 ,以及 Ubuntu 20.04 LTS,均被安装在除 Windows 之...

    开源中国29412020-06-23
  • UbuntuUbuntu20.04开启root账户的方法步骤

    Ubuntu20.04开启root账户的方法步骤

    这篇文章主要介绍了Ubuntu20.04开启root账户的方法步骤,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们...

    缀梦13002020-08-01