1、在容器中安装expect报错

[root@kube-node3 target]# docker exec -it 36563e55c42b sh
$ sudo apt-get install expect
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package expect


解决:更新一下就可以了

sudo apt-get update

sudo apt-get install expect -y

 

 

2、Ubuntu设置su和sudo为不需要密码    https://blog.csdn.net/langb2014/article/details/54646675

 

相关文章:

  • 2022-12-23
  • 2021-08-04
  • 2021-06-14
  • 2021-04-17
  • 2022-12-23
  • 2021-11-25
  • 2021-12-23
  • 2021-12-22
猜你喜欢
  • 2021-12-02
  • 2021-06-17
  • 2021-07-23
  • 2021-12-07
  • 2021-08-28
  • 2022-01-24
  • 2021-08-30
相关资源
相似解决方案