ubantu系统的8a集群安装

文章讲述了在Ubuntu22.04上安装集群时遇到的错误,涉及Python2和Python3版本问题以及解决方法,包括修复`invalidliteralforint()`错误和创建python2.7软链接。
摘要由CSDN通过智能技术生成

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*

  • 7
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值