其实很简单,但因为网上有流传很广的教程并不适用于最新的 ubuntu 20.04,造成我也走了一点弯路。
certbot-auto 官方已停止维护,但网上广为流传的教程仍然推荐使用 certbot-auto 来生成证书。这是问题的根源。正确的姿势是这样的
sudo apt install certbot
sudo certbot certonly --manual -d *.yourdomain.com -d youdomain.com --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory
照提示一步一步来就好了。是不是超级简单?
I originally thought the later should be used. I was wrong.
这都是为了看《非正常人类异闻录》
iconv -c -f gbk -t utf-8 待转文件名 > target.txt
-c 的意思是在输出文本中忽略非法的字符序列
Reference
然而都弄好了,即没有认真看那本书。不喜欢那种风格,没办法
package name for common used Linux util in Debian/Ubuntu
ps
apt install -y procps
ping
apt install -y iputils-ping
telnet
apt install -y telnet
general solution for apt get/apt upgrade similiar issues
first,
sudo dpkg --configure -a
followed by:
sudo apt --fix-broken install