一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

服務器之家:專注于服務器技術及軟件下載分享
分類導航

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在后臺運行

總結

以上就是這篇文章的全部內容了,希望本文的內容對大家的學習或者工作能帶來一定的幫助,如果有疑問大家可以留言交流。

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 精品精品国产自在现拍 | 久久黄色录像 | 欧美成人另类人妖 | 日韩欧美一区二区三区视频 | 滑进了柔佳火热紧夹的 | 国产一区二区三区四 | 亚洲国产第一区二区三区 | 99久久精品无码一区二区毛片 | 肥胖女性大bbbbbb视频女厕 | 青青草精品在线 | 亚洲欧美久久久久久久久久爽网站 | 亚洲 国产精品 日韩 | 亚洲成人第一页 | 边摸边吃奶玩乳尖视频 | 超大阿力gaysex| 久久青青草原 | 欧美黑大吊 | 男女全黄h全肉细节文 | 色综合视频一区二区观看 | 男人使劲躁女人小视频 | 天天干狠狠操 | 亚洲天堂视频在线观看免费 | 免费的毛片视频 | 日日摸日日碰夜夜爽97纠 | 久久久精品3d动漫一区二区三区 | 99精品全国免费7观看视频 | ak福利午夜在线观看 | 久久久精品3d动漫一区二区三区 | 美女被到爽流动漫 | 午夜福利自怕 | futa百合高肉全h| 美女毛片在线 | 成人免费在线视频网 | 国产一区二区不卡 | 欧美日韩国产成人精品 | 精品suv一区二区三区 | 91视频夜色| 朝鲜女人free性hu | 糖心视频在线观看 | 欧美日韩亚洲一区二区三区在线观看 | 男男羞羞视频网站国产 |