2018年8月30日 星期四

ubuntu 安裝完kubernetes後做apt-get update會出現錯誤

root@k8s02:~# sudo apt-get update
已有:1 http://tw.archive.ubuntu.com/ubuntu xenial InRelease
已有:2 http://tw.archive.ubuntu.com/ubuntu xenial-updates InRelease
已有:3 http://tw.archive.ubuntu.com/ubuntu xenial-backports InRelease
已有:4 https://download.docker.com/linux/ubuntu xenial InRelease
下載:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
已有:5 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
取得 107 kB 用了 1s (68.6 kB/s)
正在讀取套件清單... 完成
N: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'https://download.docker.com/linux/ubuntu xenial InRelease' doesn't support architecture 'i386'

解決方式:
root@k8s01:/etc/apt# vi /etc/apt/sources.list

deb https://download.docker.com/linux/ubuntu xenial stable
改成
deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable

沒有留言:

ubuntu 安裝完kubernetes後做apt-get update會出現錯誤

root@k8s02:~# sudo apt-get update 已有:1 http://tw.archive.ubuntu.com/ubuntu xenial InRelease 已有:2 http://tw.archive.ubuntu.com/ubuntu xenia...