1,sudo时出现unable to resolve host 的解决方法
vi /etc/hosts 第一行信息如下:
127.0.0.1 localhost
127.0.0.1 hostname
2,ubuntu apt 更换为国内的源
备份原来的源:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
更换源:
sudo vim /etc/apt/sources.list
#deb包
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# Canonical 合作伙伴和附加
deb http://archive.canonical.com/ubuntu/ xenial partner
deb http://extras.ubuntu.com/ubuntu/ xenial main
执行更新:
sudo apt-get update
复损坏的软件包,尝试卸载出错的包,重新安装正确版本的:
sudo apt-get -f install
更新软件:
sudo apt-get upgrade
3,解决 “git Problem with the SSL CA cert (path? access rights?)” 办法
sudo apt remove ca-certificates
sudo apt install ca-certificates
安装PKS问题
Failed Jobs: pks-nsx-t-prepare-master-vm
参考:https://community.pivotal.io/s/question/0D50e00005880UyCAI/failed-jobs-pksnsxtpreparemastervm-ncp
bosh查看日志,导致问题的原因dns解析不到组件域名
解决:
1,先确认dns的访问是否可达
2,dns中是否配置组件域名,ops-man、bosh、pks-api、registry。