Vagrant安装Oracle数据库错误的解决

最近笔记本升级到Windows 11后,利用Oralce Vagrant项目安装19.3.0企业版总是出错,错误为:

复制代码
...
    oracle-19c-vagrant:   Installing : 2:ethtool-4.8-10.el7.x86_64                                54/55
    oracle-19c-vagrant:   Installing : oracle-database-preinstall-19c-1.0-3.el7.x86_64            55/55
The SSH connection was unexpectedly closed by the remote end. This
usually indicates that SSH within the guest machine was unable to
properly start up. Please boot the VM in GUI mode to check whether
it is booting properly.

目前没有找到原因,但有一个临时解决方法。

首先,修改scripts目录下的install.sh文件,将yum install -y oracle-database-preinstall-19c openssl语句移动到前面,即注释# get up to date的下方:

bash 复制代码
# get up to date
# 新的位置
yum install -y oracle-database-preinstall-19c openssl
yum upgrade -y

echo 'INSTALLER: System updated'

# fix locale warning
yum reinstall -y glibc-common
echo LANG=en_US.utf-8 >> /etc/environment
echo LC_ALL=en_US.utf-8 >> /etc/environment

echo 'INSTALLER: Locale set'

# set system time zone
sudo timedatectl set-timezone $SYSTEM_TIMEZONE
echo "INSTALLER: System time zone set to $SYSTEM_TIMEZONE"
# 原来的位置
# yum install -y oracle-database-preinstall-19c openssl
...

然后,可以开始安装。在进行到以下界面时,界面会停住:

bash 复制代码
...
    oracle-19c-vagrant-ok:   Verifying  : psmisc-22.20-17.el7.x86_64                                 55/59
    oracle-19c-vagrant-ok:   Verifying  : libX11-common-1.6.7-4.el7_9.noarch                         56/59
    oracle-19c-vagrant-ok:   Verifying  : 1:quota-nls-4.01-19.el7.noarch                             57/59
    oracle-19c-vagrant-ok:   Verifying  : 1:openssl-1.0.2k-25.el7_9.x86_64                           58/59
    oracle-19c-vagrant-ok:   Verifying  : 1:openssl-libs-1.0.2k-25.el7_9.x86_64                      59/59
    oracle-19c-vagrant-ok:
    oracle-19c-vagrant-ok: Installed:
    oracle-19c-vagrant-ok:   oracle-database-preinstall-19c.x86_64 0:1.0-3.el7
...

此时只需要另起一个窗口,进入vagrant项目的目录,执行vagrant ssh或vagrant putty命令登录虚机,然后上面停顿的命令就可以继续了。接下来就正常安装了。

所以还是很怀疑是ssh的问题。

相关推荐
wd5i8kA8i8 小时前
自研多线程 SSH 极速文件传输助手(附 GitHub 源码)
运维·ssh·github
Dxy12393102168 小时前
MySQL 如何高效删除大量数据:策略与最佳实践
数据库·mysql·oracle
杨云龙UP11 小时前
Oracle Data Pump实战:expdp/impdp常用参数与导入导出命令整理_20260406
linux·运维·服务器·数据库·oracle
DoUfp0bgq13 小时前
解决RDK X5(ARM64架构)板卡Remote-SSH运行Antigravity AI崩溃(SIGILL):Samba网络盘本地挂载方案
人工智能·架构·ssh
splage15 小时前
Oracle分页sql
数据库·sql·oracle
程序猿编码17 小时前
eBPF代理:让SSH进程“溯源”,找到背后的客户端IP
linux·tcp/ip·ssh·ebpf
Learn-Share_HY19 小时前
[IT Network]如何在cisco packet tracer建立ssh的連線?
ubuntu·ssh·switch·cisco·networking·packettracer·networktutorial
数据知道19 小时前
claw-code 源码详细分析:Remote / SSH / Teleport / Deep Link——运行时分支爆炸怎样用「模拟模式」先收束状态机?
运维·ai·ssh·claude code
hello_fengfeng21 小时前
VSCode Remote-SSH 连接失败修复(权限问题)
ide·vscode·ssh
m0_738120721 天前
网络安全编程——如何用Python实现SSH 服务端和SSH 反向 Shell(突破内网)
python·web安全·ssh