1.安装ubantu系统的集群,安装报错如下:
gbase@ubuntu2204-0:~/gcinstall$ python2 gcinstall.py --silent=demo.options -a
invalid literal for int() with base 10: ‘\x1b[?2004l\r0’
Error: gcinstall.py(line 3191) – check dba password failed on [‘10.10.11.234’]
gbase@ubuntu2204-0:~/gcinstall$ tail -n 2 -f gcinstall.log
2023-05-24 15:46:08,005-DEBUG chmod 766 /home/gbase/gcinstall/gcinstall.log
2023-05-24 15:46:12,232-ERROR invalid literal for int() with base 10: ‘\x1b[?2004l\r0’
解决办法:root用户添加如下内容
gbase@ubuntu2204-0:~/gcinstall$ tail -n 3 /etc/inputrc
$endif
set enable-bracketed-paste off====》增加即可
gbase@ubuntu2204-0:~/gcinstall$
2.系统存在python2和python3,执行安装时,使用如下命令报错
python2 gcinstall.py --silent=demo.options
报错python 命令不存在
解决办法:目前安装脚本使用的命令是python,不是python2,需要
把python软连接python2.7*
gbase@ubuntu2204-0:~/gcinstall$ which python2
/usr/bin/python2
root@ubuntu2204-0:/usr/bin# ll python
python python2 python2.7 python3 python3.10
root@ubuntu2204-0:/usr/bin# ln -snf python2.7* python
root@ubuntu2204-0:/usr/bin# ll python
lrwxrwxrwx 1 root root 9 May 24 16:21 python -> python2.7*