「Ubuntu 笔记」常见错误提示整理

吐槽/反馈/建议:我的咸鱼心  爱发电-@wdssmq  FeedsPub-wdssmq

错误提示:

manpath: can't set the locale; make sure $LC_* and $LANG are correct

解决:

1、分别执行 localelocalectl list-locales 查看数输出:

locale
# locale: Cannot set LC_CTYPE to default locale: No such file or directory
# locale: Cannot set LC_MESSAGES to default locale: No such file or directory
# locale: Cannot set LC_ALL to default locale: No such file or directory
# 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

错误提示:

error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory

error while loading shared libraries: libunwind.so.1: cannot open shared object file: No such file or directory

解决:

sudo apt-get update
sudo apt-get install -y libc++1 libunwind-dev


爱发电

本文标题:《「Ubuntu 笔记」常见错误提示整理》作者:沉冰浮水
原文链接:https://www.wdssmq.com/post/20131101035.html
特别注明外均为原创,转载请注明。

分享到微信

扫描二维码

可在微信查看或分享至朋友圈。

相关文章

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

网站分类

搜索

本周旧文

2024 年了,姑且备份下嘟特存档。。

……,一个不知名的小众样式库 + 内联样式混写这种入坑姿势确实很有槽点,但是,「已经开始学」并且能够持续是绝对值得肯定的。。

在贴吧看过很多提问了,就有种错觉:好多人为了提一个问题专门注册了贴吧,问题本身可能得到有效回答,也可能没有(和提问的点及具体姿势有关。。但无论如何,之后就和注销了账号一样没有然后了,好像之后永远不用学相应的东西一样。。

《恶魔娃娃》

- 他们正研究你究竟是真正的大人,还是伪装成大人的小孩

- 我自己都研究很久了

乐高 DC 里,(基本就蝙蝠侠家,,年龄最小的那个无论是谁感觉人设都会变得一样 - -

所以,就感觉和祥林嫂一样,每天都需要向外「签到」自己的情绪感受,然而又并没有什么「需要」我这样的签到……

只要梦里出现学校的概念,形式和反抗好像也都不重要了,,天还没亮,骑自行车去上学,没走多远「想起来」并不需要上学的,下来搬起车原地调头然后推回家。。

《K 星异客》里,「青鸟」真的是等来的,或者说是突然出现然后引发改变的外部因素。。。

梦的最后也是又一次意识到教室里的同学只是幻境中的投影,被困住的只有我;虽然也终于总结出,在梦里从来没有和同学的投影有过冲突和争执,甚至还附和我反驳「管理者」身份被进一步放大并不特指某一个人的老师。。

就和大脑会突然播放某一首歌一样,「讨厌自己」这句话也是自己突然就会播放一次,然后频率更高。。

学校,学校,学校,总是梦到学校,,就好像灵魂被诅咒禁固一样。。

爱发电支持者

最新留言

友情链接

  • 订阅本站的 RSS 2.0 新闻聚合
召唤伊斯特瓦尔