錯誤提示:
manpath: 無法設置語言環境變量;請確保 $LC_* 和 $LANG 正確
解決:
1、分別執行 locale
和 localectl list-locales
查看輸出:
locale
# locale: 無法設置 LC_CTYPE 為預設語言環境變量:找不到檔案或目錄
# locale: 無法設置 LC_MESSAGES 為預設語言環境變量:找不到檔案或目錄
# locale: 無法設置 LC_ALL 為預設語言環境變量:找不到檔案或目錄
# LANG=en_US.UTF-8
# LANGUAGE=
# LC_CTYPE="en_US.UTF-8"
# LC_NUMERIC="en_US.UTF-8"
# LC_TIME="en_US.UTF-8"
# LC_COLLATE="en_US.UTF-8"
# LC_MONETARY="en_US.UTF-8"
# LC_MESSAGES="en_US.UTF-8"
# LC_PAPER="en_US.UTF-8"
# LC_NAME="en_US.UTF-8"
# LC_ADDRESS="en_US.UTF-8"
# LC_TELEPHONE="en_US.UTF-8"
# LC_MEASUREMENT="en_US.UTF-8"
# LC_IDENTIFICATION="en_US.UTF-8"
# LC_ALL=
localectl list-locales
# C.UTF-8
2、修改檔案/etc/locale.gen
,在其中搜尋en_US.UTF-8
對應的項目,移除前面的#
註釋;
# 編輯如下檔案
code /etc/locale.gen
# —— # en_US.UTF-8 UTF-8 修改為 en_US.UTF-8 UTF-8
3、執行 locale-gen
;
# locale-gen
locale-gen
# 重新執行查看命令驗證效果
localectl list-locales
# C.UTF-8
# en_US.utf8
locale
# LANG=en_US.UTF-8
# LANGUAGE=
# …………
-----
錯誤提示:
Package docker-ce is not available, but is referred to by another package.
解決方法:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
sudo apt install docker-ce
-----
錯誤提示:
Failed to execute child process "dbus-launch" (No such file or directory)
解決方法:
apt-get remove golang-docker-credential-helpers
-----
錯誤提示:
sudo: unable to resolve host localhost.localdomain
解決方法:
編輯 /etc/hosts,將
127.0.0.1 localhost
修改為:
127.0.0.1 localhost localhost.localdomain
// 也可以加上你的域名,如
127.0.0.1 localhost localhost.localdomain vps.wdssmq.com
-----
錯誤提示:
Missing: Digest::SHA1
解決方法:
cd /tmp
wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-2.13.tar.gz
tar -zxvf Digest*.tar.gz
cd Digest*
perl Makefile.PL
make
make test
make install
-----
錯誤提示:
requires either NcursesW or Ncurses library
Could not build sigc++-2.0
解決方法:
// 在安裝 rtorrent + rutorrent 時遇到的兩種錯誤提示,,精簡版系統少太多東西,,統一安裝一下
sudo apt-get install libtool automake build-essential libssl-dev libsigc++-2.0-dev libc6-dev libncurses5-dev subversion libcppunit-dev unzip unrar-free curl
-----
錯誤提示:
WARNING: failed to autodetect C++ compiler version (CXX=g++)
WARNING: failed to autodetect C compiler version (CC=gcc)
ERROR: No acceptable C compiler found!
Please make sure you have a C compiler installed on your system and/or
consider adjusting the CC environment variable if you installed
it in a non-standard prefix.
解決:
sudo apt-get install gcc
sudo apt-get install build-essential